What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-24 20:20:01
C printf to string
// int sprintf(char *str, const char *format, ...); char *printf_to_string() { char buffer[128] = {0} //Must be big enough // writing printf output in buffer sprintf(buffer, "some %s here...\n", "text"); // duplicate if needed... Add solution -
Other 2022-03-13 03:20:09
f# syntax
// single line comments use a double slash (* multi line comments use (* . . . *) pair -end of multi line comment- *) // ======== "Variables" (but not really) ========== // The "let" keyword defines an (immutable) value let myInt = 5... Add solution -
Dart 2022-02-19 11:10:13
dart positional arguments vs named arguments
void main(){ var catBob = Cat('Bob', 'Grey'); // display object with positional argument print(catBob.displayCat()); // display object with constructor and named arguments print(Dog(breed: 'Bulldog', name: 'Greg', color: 'Purple').dis... Add solution -
Java 2022-02-18 14:55:08
run code periodically android
/* USING HANDLER METHOD */ Handler myHandler = new Handler(); int delay = 1000; // 1000 milliseconds == 1 second myHandler.postDelayed(new Runnable() { public void run() { System.out.println("myHandler: here!"); // Do your work here... Add solution -
Java 2022-01-31 05:25:04
lightweight java game library
import org.lwjgl.*; import org.lwjgl.glfw.*; import org.lwjgl.opengl.*; import org.lwjgl.system.*; import java.nio.*; import static org.lwjgl.glfw.Callbacks.*; import static org.lwjgl.glfw.GLFW.*; import static org.lwjgl.opengl.GL11.*; import static org... Add solution -
Other 2022-01-30 20:05:58
solidity code for electricity trading transaction programming
pragma solidity ^0.5.10;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@hq20/contracts/contracts/access/Whitelist.sol";/** * @title Energy Market * @notice Implements a simple energy market, using ERC20 and * Whitelist... Add solution -
Other 2022-01-30 19:01:57
call cll to java
package jnahelloworldtest; import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.NativeLong; import com.sun.jna.Platform; import com.sun.jna.*; /** Simple example of native library declaration and usage. */ public class Main { pu... Add solution
Best helpers
Ranking is empty