What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 04:35:48
python code for on mouse click release
from pynput.mouse import Button, Controller mouse = Controller() # Read pointer position print('The current pointer position is {0}'.format( mouse.position)) # Set pointer position mouse.position = (10, 20) print('Now we have moved it to {0}'.forma... Add solution -
Other 2022-01-31 12:01:01
gin.logger with formatter
type respBodyWriter struct { gin.ResponseWriter body *bytes.Buffer } func (w respBodyWriter) Write(b []byte) (int, error) { w.body.Write(b) return w.ResponseWriter.Write(b) } // LogRequest is a middleware to log each request func LogRequest(Logger *... Add solution -
Python 2022-01-30 23:45:20
Multiplication table with Python
first_doc = '''it created by iliya zahedi abghari i am the student in iran , alameh tabatabayi school ''' print(first_doc) def jadval_zarb(rows, columns): for i in range(1,rows+1): for j in range(1,columns+1): #print(i*j, end=' ') print('{:>... Add solution -
PHP 2022-01-30 18:01:20
Search or Filter Data in GridView c#
DataTable dtSales = new DataTable(); string filterField = "Country"; private void Form1_Load(object sender, EventArgs e) { dtSales.Columns.Add("Country", typeof(string)); dtSales.Columns.Add("Sales", typeof(int)); ... Add solution -
Other 2022-01-30 13:27:06
format date string in apex
// 2016-02-29 Datetime.now().format('yyyy-MM-dd'); // 2016-02-29T23:50:24Z873 Datetime.now().format('yyyy-MM-dd\'T\'HH:mm:ss\'Z\'SSS'); // 2016.02.29 AD at 23:52:20 EST Datetime.now().format('yyyy.MM.dd G \'at\' HH:mm:ss z'); // Mon, 29 Feb 2016 23:54... Add solution -
Python 2022-01-30 11:21:06
python discord.py whois lookup
@commands.command() @commands.has_guild_permissions(administrator=True) async def whois(self, ctx, ip=None): if ip is None: print('\n[LOGS] Must enter a ip!') await ctx.send('Must enter a ip!') else: print(f'\n[LOGS] Running whoi... Add solution