What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-08 01:19:02
super.so notion to website github
## Loconotion Site Configuration File ## # full .toml configuration example file to showcase all of Loconotion's available settings # check out https://github.com/toml-lang/toml for more info on the toml format # name of the folder that the site will be ... Add solution -
Python 2021-09-07 13:44:01
converts the input array of strings into an array of n-grams
# converts the input array of strings into an array of n-grams df = spark.createDataFrame([Row(inputTokens=[ "a", "b", "c", "d", "e"])]) ngram = NGram(n=2, inputCol="inputTokens", outputCol=&q... Add solution -
TypeScript 2021-09-06 16:35:03
concurrent requests guzzle
use GuzzleHttp\Client; use GuzzleHttp\Promise; $client = new Client(['base_uri' => 'http://httpbin.org/']); // Initiate each request but do not block $promises = [ 'image' => $client->getAsync('/image'), 'png' => $client->getAsy... Add solution -
C++ 2021-09-05 11:52:02
c++ forbids comparison between pointer and integer
char a[2] defines an array of char's. a is a pointer to the memory at the beginning of the array and using == won't actually compare the contents of a with 'ab' because they aren't actually the same types, 'ab' is integer type. Also 'ab' should be... Add solution -
Other 2021-09-05 09:17:02
pointer help
ptr++; // Pointer moves to the next int position (as if it was an array) ++ptr; // Pointer moves to the next int position (as if it was an array) ++*ptr; // The value of ptr is incremented ++(*ptr); // The value of ptr is incremented ++*(ptr); // ... Add solution -
Javascript 2021-09-04 00:59:01
javascript ellipsis
function sum(x, y, z) { return x + y + z; } const numbers = [1, 2, 3]; console.log(sum(...numbers)); // expected output: 6 console.log(sum.apply(null, numbers)); // expected output: 6 /* Spread syntax (...) allows an iterable such as an array expres... Add solution
Best helpers
Ranking is empty