- GitHub Staff
- https://josh.black
- @josh.black
- @__joshblack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numbers = [0, 1, 2, 3, 4, 5]; | |
const split = (collection, filters) => { | |
const result = []; | |
for (let i = 0; i < filters.length; i++) { | |
result[i] = []; | |
} | |
collection.forEach((element) => { | |
filters.forEach((filter, i) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"S2CellId": { | |
"low": 1073741824, | |
"high": -2040844917, | |
"unsigned": true | |
}, | |
"AsOfTimeMs": { | |
"low": 623625368, | |
"high": 342, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'_plugins', | |
'compiler', | |
'resolvers', | |
'inputFileSystem', | |
'options', | |
'outputOptions', | |
'bail', | |
'profile', | |
'mainTemplate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ id: '841', | |
displayName: 'JOSHUA T. BLACK', | |
username: 'joshblack', | |
profileUrl: 'https://github.ibm.com/joshblack', | |
emails: [ { value: 'joshblack@us.ibm.com' } ], | |
photos: [ { value: 'https://avatars.github.ibm.com/u/841?' } ], | |
provider: 'github', | |
_raw: '{"login":"joshblack","id":841,"avatar_url":"https://avatars.github.ibm.com/u/841?","gravatar_id":"","url":"https://github.ibm.com/api/v3/users/joshblack","html_url":"https://github.ibm.com/joshblack","followers_url":"https://github.ibm.com/api/v3/users/joshblack/followers","following_url":"https://github.ibm.com/api/v3/users/joshblack/following{/other_user}","gists_url":"https://github.ibm.com/api/v3/users/joshblack/gists{/gist_id}","starred_url":"https://github.ibm.com/api/v3/users/joshblack/starred{/owner}{/repo}","subscriptions_url":"https://github.ibm.com/api/v3/users/joshblack/subscriptions","organizations_url":"https://github.ibm.com/api/v3/users/joshblack/orgs","repos_url":"https://github.ibm.com/api/v3/users/joshblack/repos","events_url": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function * Producer() { | |
let number = 0; | |
while (true) { | |
yield number++; | |
} | |
} | |
function * takeWhile(iterator, predicate) { | |
let finished = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function ({ types: t }) { | |
return { | |
visitor: { | |
JSXText(path) { | |
path.replaceWith( | |
t.expressionStatement( | |
t.callExpression( | |
t.identifier('__'), | |
[t.stringLiteral(path.node.value)] | |
) |