What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-16 23:45:12
permutaciones con repeticion javascript
function permutator (input) { var set =[]; function permute (arr, data) { var cur, memo = data || []; for (var i = 0; i < arr.length; i++) { cur = arr.splice(i, 1)[0]; if (arr.length === 0) set.push(memo.concat([cur])); ... Add solution -
Other 2022-03-16 21:00:39
insert data at first position in array javascript
// Use unshift method if you don't mind mutating issue // If you want to avoid mutating issue const array = [3, 2, 1] const newFirstElement = 4 const newArray = [newFirstElement].concat(array) // [ 4, 3, 2, 1 ] console.log(newArray); Add solution -
Other 2022-03-16 19:20:03
how to make an opencomputers os
_G _VERSION assert error getmetatable ipairs load next pairs pcall rawequal rawget rawlen rawset select setmetatable tonumber tostring type xpcall bit32.arshift bit32.band bit32.bnot bit32.bor bit32.btest bit32.bxor bit32.extract bit32.lrota... 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 -
Other 2022-03-10 09:05:07
how do you generate test data
When=> sprint planning meeting Who=> Mostly I get test data from PO However in some instances, especially in negative test scenario I may need to generate test data. I use java faker to generate data How => Faker faker=new Fak... Add solution -
Other 2022-03-09 12:40:08
query mriqc api with Python
In [2]: def get_iqms(modality, versions=None, software='mriqc'): """ Grab all iqms for the given modality and the list of versions """ url_root = 'https://mriqc.nimh.nih.gov/api/v1/{modality}?{que... Add solution