What do you want to save?
Add Code snippet
New code examples
-
SQL 2022-01-29 12:00:14
mysql connector/python query example
Press CTRL+C to copy import datetime import mysql.connector cnx = mysql.connector.connect(user='scott', database='employees') cursor = cnx.cursor() query = ("SELECT first_name, last_name, hire_date FROM employees " "WHERE hire_da... Add solution -
Python 2022-01-28 23:22:08
tkinter filedialog filename
from tkinter import filedialog # Where it open to. # What the window is called. # What file types the user can choose between. first one is the defualt. (("what ever", "*.format"), ("what ever 2", "*.format2&q... Add solution -
Html 2022-01-28 23:15:45
Prettier not formatting HTML files in VS Code
{ "editor.formatOnSave": true, "editor.formatOnPaste": true, "editor.formatOnType": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "[html]": { "editor... Add solution -
Other 2022-01-28 19:41:03
Export Sqlite Database as csv in android
public boolean exportDatabase() { DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); /**First of all we check if the external storage of the device is available for writing. * Remember that the ext... Add solution -
C# 2022-01-26 21:35:37
c# udpclient receive buffer size
public static void Main(string[] args) { IPEndPoint remoteEp = null; UdpClient client = new UdpClient(4242); client.Client.ReceiveBufferSize = 4096; Console.Write("Start sending data..."); client.Receive(ref remoteEp); Console.Write... Add solution -
C# 2022-01-26 12:21:19
load information with txt file to uwp c#
private async Task AddTextToFile(String textToSave) { var appFolder = Windows.Storage.ApplicationData.Current.LocalFolder; var file = await appFolder.CreateFileAsync("exposure.txt", Windows.Storage.CreationCollisionOption.OpenIf... Add solution -
C# 2022-01-26 08:40:54
how to calculate ratio in c#
public string GetRatio(int a, int b) { var gcd = GCD(a, b); return string.Format("{0}:{1}", a / gcd, b / gcd); } public int GCD(int a, int b) { return b == 0 ? Math.Abs(a) : GCD(b, a % b); } // Tomas Pajonk's Answer: public int GCD_(int a,... Add solution