use tree-view add file to shortcut as it also creates folders
'atom-workspace':
'ctrl-n': 'tree-view:add-file'
module.exports = pivot | |
function pivot(recordSet) { | |
/* | |
recordSet is an array of records: | |
[{foo: 1311, bar: "cat", zzz: 124.31}, | |
{foo: 41, bar: 11}, | |
{foo: 159, bar: 41, aaa: 12, zzz: 55}] | |
The goal is to pivot this structure: |
function almostIncreasingSequence(sequence) { | |
var found = false; | |
for (var i=0;i<sequence.length;i++) { | |
if(sequence[i] <= sequence[i-1]) { | |
if(found) { | |
return false; | |
} | |
found = true; | |
if(i === 1 || i + 1 === sequence.length) { |
{"version":1.02,"files":[{"file":".DS_Store","content":{"type":"Buffer","data":[0,0,0,1,66,117,100,49,0,0,16,0,0,0,8,0,0,0,16,0,0,0,0,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,1,0,0,16,0,0,97,0,103,0,101,0,115,118,83,114,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,8,0,112,0,97,0,99,0,107,0,97,0,103,0,101,0,115,118,83,114,110,108,111,110,103,0,0,0,1,0,0,0,7,0,115,0,116,0,111,0,114,0,97,0,103,0,101,118,83,114,110,108,111,110,103,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
I hereby claim:
To claim this, I am signing this object: