This file contains hidden or 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
Show hidden characters
{ | |
"auto_close_tags": false, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"enable_telemetry": false, | |
"file_exclude_patterns": | |
[ | |
"*.scssc", |
This file contains hidden or 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
[ | |
{ | |
"class": "sidebar_container", | |
"layer0.tint": [60, 60, 60], | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] | |
}, | |
{ |
This file contains hidden or 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
# example user config (see "hg help config" for more info) | |
[ui] | |
# name and email, e.g. | |
username = | |
#username = | |
merge = diffmerge | |
editor = /usr/bin/vim | |
[extensions] | |
# uncomment these lines to enable some popular extensions |
This file contains hidden or 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
[ | |
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar"} | |
] |
This file contains hidden or 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
bz2 | |
Emmet Css Snippets | |
JSHint | |
MacTerminal | |
PyV8 | |
SublimeLinter | |
tern_for_sublime | |
Default (OSX).sublime-keymap | |
Distraction Free.sublime-settings |
This file contains hidden or 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
changeset = '\033[0;31m{rev}:{phase}: \033{node|short} \033[0;34m{author|person}\033[0m {desc|firstline|strip} \033[0;32m({date|age}){branches}{bookmarks}{tags}' | |
changeset_verbose = '\033[0;31m{rev}:{node|short}:{phase} \033[0;34m{author|person}\033[0m {desc|firstline|strip} \033[0;32m({date|age}) {branches}{bookmarks}{tags}' | |
start_branches = ' ' | |
branch = '\033[0;31m{branch}\033[0m' | |
start_bookmarks = ' ' | |
bookmark = '\033[0;31m[{bookmark}]\033[0m ' | |
last_bookmark = '\033[0;31m[{bookmark}]\033[0m' |
This file contains hidden or 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 globby = require("globby"); | |
const { spawn } = require("child_process"); | |
const pattern = [ | |
"node_modules/**/!(*.*)", | |
"!node_modules/**/node_modules/", | |
"!node_modules/wwfeatures-common/node_modules/" | |
]; | |
function startSpawn(ignore) { |
This file contains hidden or 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 DummyComponent = () => <div>Dummy</div>; | |
const Component = getComposedComponent(DummyComponent); | |
const component = mount( | |
shallow(<Component foo={true} />).get(0) | |
); | |
eventMap.resize(); | |
expect(component.state().fooBar).toBe(true); |
This file contains hidden or 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
"1,40-44" | |
.split(',') | |
.map(item => item.trim().split('-') | |
.map(item => parseInt(item.trim()))) // [[1], [40,44]] | |
"2-3,10,12,45,46-59" | |
.split(',') | |
.map(item => item.trim().split('-') | |
.map(item => parseInt(item.trim()))) // [[2,3], [10,12,45], [46,59]] |
This file contains hidden or 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 mapKeys = (collection, rootKey) => { | |
const obj = {}; | |
collection.forEach(item => { | |
obj[item[rootKey]] = item; | |
}); | |
return obj; | |
}; | |
const justins = [{id: 1, name: 'Justin Bieber'},{id: 2, name: 'Justin Timberlake'},{id: 3, name: 'Justin Time'}]; |