What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-24 19:45:12
record and store audio in pythn
import pyaudio import wave chunk = 1024 # Record in chunks of 1024 samples sample_format = pyaudio.paInt16 # 16 bits per sample channels = 2 fs = 44100 # Record at 44100 samples per second seconds = 3 filename = "output.wav" p = pyaudio.PyA... Add solution -
Other 2022-02-18 09:25:20
create random string with numbers dart
import 'dart:math'; void main() { print(getRandomString(5)); // 5GKjb print(getRandomString(10)); // LZrJOTBNGA print(getRandomString(15)); // PqokAO1BQBHyJVK } import 'dart:math'; String generateRandomString(int len) { var r = Random(); con... Add solution -
C# 2022-02-18 01:00:19
c# substring reverse
public static string ToReverseString(this string value) { return string.Join("", value.Reverse()); } public static string SubstringReverse(this string value, int indexFromEnd, int length) { return value.ToReverseString().Substring(indexFrom... Add solution -
-
Javascript 2022-02-17 07:05:02
_.get alternative
//This Is my alternative to (lodash) _.get() method const get = (obj, path, def) => (() => typeof path === 'string' ? path.replace(/\[(\d+)]/g,'.$1') : path.join('.'))() .split('.') .filter(Boolean) .every(step => ((obj = obj[step]) !== u... Add solution
Best helpers
Ranking is empty