What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-27 06:57:10
set skin minecraft entity player
public static boolean setSkin(GameProfile profile, UUID uuid) { try { HttpsURLConnection connection = (HttpsURLConnection) new URL(String.format("https://sessionserver.mojang.com/session/minecraft/profile/%s?unsigned=false", UUIDType... Add solution -
C# 2021-10-27 04:41:09
if file exist rename c#
int count = 1; string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath); string extension = Path.GetExtension(fullPath); string path = Path.GetDirectoryName(fullPath); string newFullPath = fullPath; while(File.Exists(newFullPath)) { string ... Add solution -
SQL 2021-10-23 03:36:10
generic repository pattern c# entity framework core execute mysql storeprocedure
public class Repository : IRepository where T : class { public DbContext context; public DbSet dbSet; public Repository(DbContext context) { this.context = context; dbSet = context.Set(); ... Add solution -
Python 2021-10-20 01:32:07
python format inverse
>>> import parse >>> format_string = 'PN-{:0>9}' >>> id = 123 >>> pn = format_string.format(id) >>> pn 'PN-000000123' >>> parsed = parse.parse(format_string, pn) >>> parsed <Result ('123... Add solution -
C# 2021-10-19 02:12:09
Reading Excel files from C#
var fileName = string.Format("{0}\\fileNameHere", Directory.GetCurrentDirectory()); var connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=Excel 8.0;", fileName); var adapter = new... Add solution