What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-25 13:01:03
animate time series python
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation dt = 0.01 tfinal = 1 x0 = 0 sqrtdt = np.sqrt(dt) n = int(tfinal/dt) xtraj = np.zeros(n+1, float) trange = np.linspace(start=0,stop=tfinal ,num=n+1) xtraj[0] = x0 for i ... Add solution -
Other 2021-09-23 07:44:03
hjjkh
import SwordRPC /// Additional arguments: /// handlerInterval: Int = 1000 (decides how fast to check discord for updates, 1000ms = 1s) /// autoRegister: Bool = true (automatically registers your application to discord's url scheme (discord-appid://)) ///... Add solution -
Other 2021-09-22 21:56:02
use case of modulo operator
// given a list of widgets, files, people, etc. longList = 10000; feedbackInterval = 100; // to be used as the modulus // loop over the list to process each item for( i=1; i <= longList; i++ ) { // perform some operation // mod operation give... Add solution -
Javascript 2021-09-22 16:22:05
setInterval issue, if i turn on new tap, that can be slower
var rollImg = ["https://media.istockphoto.com/photos/fire-letter-a-of-burning-flame-picture-id844027508?k=6&m=844027508&s=170667a&w=0&h=dt0qXfyejRq_kjs5PqXcMf7Fij_opW7w1kfhfmH6dyQ=", "https://cdn.leroymerlin.com.br/products/... Add solution -
Javascript 2021-09-22 05:01:04
jquery progress bar
<!DOCTYPE html> <html> <style> #myProgress { width: 100%; background-color: #ddd; } #myBar { width: 1%; height: 30px; background-color: #4CAF50; } </style> <body> <h1>JavaScript Progress Bar</h1> <... Add solution -
PHP 2021-09-21 07:39:05
php get screen width
//Save in cookie to access with $_COOKIE["screenXYZ"]; //SetScreenResToCookie.php <?php if (isset($_POST)) { echo "success"; setcookie("screenW", $_POST["screenWidth"], time() + (86400 * 30), '/'); s... Add solution
Best helpers
Ranking is empty