Last active
August 18, 2017 08:49
-
-
Save coopermaruyama/71afd7a0f830dd753cf8deddde41f07a to your computer and use it in GitHub Desktop.
atom config
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
"*": | |
Zen: | |
showWordCount: true | |
"apathy-theme": | |
contentPaddingLeft: 70 | |
debug: true | |
enableTreeViewStyles: true | |
"atom-beautify": | |
general: | |
_analyticsUserId: "71ca40bc-1dad-4495-97c3-42211656647f" | |
"atom-lint": {} | |
"atom-material-ui": | |
altCmdPalette: true | |
colors: | |
abaseColor: "#5b436f" | |
depth: true | |
treeView: | |
compactList: true | |
"atom-package-deps": | |
ignored: [] | |
"atom-typescript": {} | |
atomatigit: {} | |
"autocomplete-plus": | |
defaultProvider: "Fuzzy" | |
scopeBlacklist: [ | |
".comment" | |
".has-selection" | |
] | |
strictMatching: true | |
"autohide-tree-view": | |
animationSpeed: 2 | |
hiddenWidth: 15 | |
hideDelay: 100 | |
maxWindowWidth: 2000 | |
pushEditor: true | |
showDelay: 100 | |
showOn: "hover + click" | |
touchAreaSize: 400 | |
"base16-syntax": | |
scheme: "Colors" | |
"coffee-compile": | |
focusEditorAfterCompile: true | |
"coffee-refactor": {} | |
coffeedocs: | |
SearchLineBelowInstead: true | |
"color-picker": | |
preferredFormat: "HEX" | |
randomColor: false | |
core: | |
audioBeep: false | |
customFileTypes: | |
"source.ini": [ | |
".buckconfig" | |
".flowconfig" | |
".hgrc" | |
] | |
"source.json": [ | |
".arcconfig" | |
"BUCK.autodeps" | |
] | |
"source.python": [ | |
"BUCK" | |
] | |
destroyEmptyPanes: false | |
disabledPackages: [ | |
"resize-panes" | |
"themed-settings" | |
"tree-view-filter" | |
"letter-spacing" | |
"stacktrace" | |
"save-session" | |
"scope-inspector" | |
"atom-jade" | |
"atom-lint" | |
"atom-angularjs" | |
"atom-coffee-repl" | |
"visual-bell" | |
"view-tail-large-files" | |
"atom-package-blank" | |
"autocomplete-glsl" | |
"coffee-porter" | |
"figlet" | |
"linter-handlebars" | |
"sass-autocompile" | |
"remote-atom" | |
"web-browser" | |
"background-tips" | |
"exception-reporting" | |
"spell-check" | |
"welcome" | |
"autosave" | |
"ever-notedown" | |
"coffee-refactor" | |
"atom-debugger" | |
"Scratchpad" | |
"language-javascript-semantic" | |
"chary-tree-view" | |
"block-comment" | |
"notebook" | |
"blackspace" | |
"tree-view-open-files" | |
"autohide-tree-view" | |
"vim-mode" | |
"angularjs" | |
"syntax-settings" | |
"hide-tree" | |
"archive-view" | |
"metrics" | |
"styleguide" | |
"project-manager" | |
"meteor-helper" | |
"task-list" | |
"git-grep" | |
"vim-mode-plus" | |
"language-python" | |
"linter-tslint" | |
"turbo-javascript" | |
"flow-ide" | |
] | |
ignoredNames: [ | |
".meteor" | |
".git" | |
".DS_Store" | |
".bin" | |
] | |
packagesWithKeymapsDisabled: [ | |
"github" | |
] | |
projectHome: "/Users/cooperm/sites" | |
themes: [ | |
"atom-material-ui" | |
"vivid" | |
] | |
titleBar: "custom" | |
"django-templates": {} | |
docblockr: | |
deep_indent: true | |
extra_tags_go_after: true | |
lower_case_primitives: true | |
per_section_indent: true | |
return_description: false | |
short_primitives: true | |
editor: | |
autoIndentOnPaste: true | |
fontFamily: "Source Code Pro" | |
invisibles: {} | |
normalizeIndentOnPaste: true | |
showIndentGuide: true | |
showInvisibles: true | |
softWrap: true | |
softWrapAtPreferredLineLength: true | |
softWrapHangingIndent: 1 | |
zoomFontWhenCtrlScrolling: true | |
emmet: | |
formatLineBreaks: false | |
useEmmetComments: false | |
"ever-notedown": | |
sortBy: "Modification Time" | |
"exception-reporting": | |
userId: "3f319dcc-a70a-adb5-4fba-4db63e235a6b" | |
figlet: {} | |
"file-icons": | |
onChanges: true | |
"file-types": | |
$debug: true | |
".spec.js$": "source.spec.js" | |
"^[^.]+.js$": "source.js" | |
"flow-ide": | |
hyperclickPriority: 100 | |
"gist-it": | |
newGistsDefaultToPrivate: true | |
userToken: "3d439a960ec641ff8584fef54eaaf357a29f876b" | |
"git-blame": | |
customCommitUrlTemplateString: "https://git.ff.com/projects/<%- project %>/repos/<%- repo %>/commits/<%- revision %>" | |
ignoreWhiteSpaceDiffs: true | |
useCustomUrlTemplateIfStandardRemotesFail: true | |
"git-diff": {} | |
"git-diff-details": | |
closeAfterCopy: true | |
"git-log": {} | |
"git-plus": | |
experimental: | |
diffBranches: true | |
useSplitDiff: true | |
remoteInteractions: | |
pullBeforePush: true | |
pullRebase: true | |
"git-wip": | |
wipOnSave: false | |
"hide-tree": | |
animateTime: 50 | |
timeout: 1000 | |
hyperclick: | |
darwinTriggerKeys: "altKey" | |
"ide-flow": | |
flowPath: "/Users/cooper.maruyama/.nvm/versions/node/v7.2.0/bin/flow" | |
"isotope-ui": | |
backgroundColor: "false" | |
customBackgroundColor: true | |
customBackgroundColorPicker: | |
alpha: 1 | |
blue: 29 | |
green: 29 | |
red: 29 | |
fontWeight: "Regular" | |
spaciousMode: false | |
"jscs-fixer": {} | |
"language-babel": {} | |
"letter-spacing": {} | |
linter: | |
clearOnChange: true | |
defaultErrorTab: "line" | |
lintOnChange: false | |
lintOnChangeInterval: 2000 | |
lintPreviewTabs: false | |
showHighlighting: false | |
showInfoMessages: true | |
"linter-eslint": | |
disableWhenNoEslintrcFileInPath: true | |
eslintPath: "/usr/local/lib/node_modules/eslint" | |
scopes: [ | |
"source.js" | |
"source.jsx" | |
"source.js.jsx" | |
"source.babel" | |
"source.js-semantic" | |
"source.ts" | |
"source.tsx" | |
] | |
"linter-flow": {} | |
"linter-jscs": | |
harmony: true | |
messageType: "warning" | |
onlyConfig: true | |
preset: "google" | |
verbose: true | |
"linter-jshint": {} | |
"linter-pycodestyle": | |
ignoreErrorCodes: [ | |
"E272" | |
] | |
maxLineLength: 80 | |
"linter-scss-lint": | |
scssLintExecutablePath: "/Users/cooperm/.rvm/gems/ruby-2.2.1/bin" | |
"linter-ui-default": | |
decorateOnTreeView: "None" | |
gutterPosition: "Left" | |
hidePanelWhenEmpty: false | |
panelHeight: 81 | |
panelRepresents: "Current Line" | |
showPanel: true | |
showUnderline: false | |
statusBarRepresents: "Current File" | |
tooltipFollows: "Keyboard" | |
useBusySignal: false | |
"markdown-preview": {} | |
"merge-conflicts": {} | |
"meteor-helper": | |
meteorPort: 5555 | |
mongoURL: "mongodb://localhost:3001" | |
minimap: | |
absoluteMode: true | |
interline: 3 | |
minimapScrollIndicator: false | |
scrollAnimation: true | |
"node-debugger": {} | |
notebook: | |
removeNotepadOnSavingToProject: true | |
nuclide: | |
"nuclide-buck": | |
compileErrorDiagnostics: false | |
"nuclide-flow": | |
enableReferencesHighlight: true | |
"nuclide-home": | |
showHome: false | |
"nuclide-working-sets": {} | |
use: | |
"nuclide-adb-logcat": false | |
"nuclide-adb-sdb": false | |
"nuclide-arc-lint": false | |
"nuclide-arcanist": false | |
"nuclide-buck": false | |
"nuclide-buck-ios": false | |
"one-dark-ui": | |
layoutMode: "Spacious" | |
pigments: {} | |
"project-manager": {} | |
"project-manager:showPath": true | |
"remember-session": | |
height: 1573 | |
path: "/Users/cooperm/sites/cfy/app" | |
selectedTab: 2 | |
tabs: "/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/sites/cfy/app/tests/nightwatch/walkthrough/google.js&&/Users/cooperm/sites/cfy/app/convertify/collections/quantify_model.js&&/Users/cooperm/sites/cfy/app/convertify/collections/network_model.coffee&&/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/.atom/init.coffee" | |
treeWidth: 200 | |
width: 2560 | |
x: 0 | |
y: 23 | |
"remote-atom": {} | |
"remote-edit": {} | |
"sass-autocompile": {} | |
"save-session": | |
dataSaveFolder: "/Users/cooperm/.atom/packages/save-session/projects" | |
fullScreen: true | |
projects: [ | |
"/Users/cooperm/.atom/packages/apathy-theme" | |
] | |
treeSize: 279 | |
windowHeight: 1600 | |
windowWidth: 2560 | |
windowX: 0 | |
windowY: 0 | |
"scope-inspector": | |
showBreadcrumbs: false | |
showSidebar: false | |
userId: "9fdc8d9f2e24d92488f4879b3fdae77c1c96a743" | |
"split-diff": | |
ignoreWhitespace: true | |
leftEditorColor: "red" | |
rightEditorColor: "green" | |
scrollSyncType: "Vertical + Horizontal" | |
syncHorizontalScroll: true | |
"status-bar": | |
cursorPositionFormat: "Line %L – Column %C" | |
"sublime-tabs": | |
hideIgnoredNames: true | |
hideVcsIgnoredFiles: true | |
showOnRightSide: true | |
"syntax-settings": | |
source: | |
go: | |
editorSettings: {} | |
python: | |
editorSettings: {} | |
tabs: | |
showIcons: true | |
tabScrolling: true | |
usePreviewTabs: true | |
term2: {} | |
"todo-show": | |
ignoreThesePaths: [ | |
"*/node_modules/" | |
"*/vendor/" | |
"*/bower_components" | |
"run_nightwatch.sh" | |
] | |
"tree-ignore": {} | |
"tree-view": | |
alwaysOpenExisting: true | |
hideIgnoredNames: true | |
hideVcsIgnoredFiles: true | |
showOnRightSide: true | |
squashDirectoryNames: true | |
"tree-view-filter": {} | |
"tree-view-open-files": | |
maxHeight: 0 | |
"unity-ui": | |
showIcons: true | |
"view-tail-large-files": {} | |
"vim-mode": | |
useClipboardAsDefaultRegister: true | |
useSmartcaseForSearch: true | |
welcome: | |
showOnStartup: false | |
whitespace: | |
ignoreWhitespaceOnCurrentLine: false | |
".basic.html.text": | |
editor: | |
softWrapAtPreferredLineLength: false | |
".console.serpent.text": | |
editor: | |
preferredLineLength: 100 | |
".diff": | |
editor: | |
softWrapHangingIndent: 1 | |
".diff.source": | |
editor: | |
softWrapHangingIndent: 1 | |
".django.html.text": | |
editor: | |
softWrapAtPreferredLineLength: false | |
softWrapHangingIndent: 1 | |
".ruby.sql": | |
editor: | |
softWrap: false | |
".solidity.source": | |
editor: | |
softWrapAtPreferredLineLength: true | |
".source.ts": | |
editor: | |
softWrapHangingIndent: 1 | |
".source.tsx": | |
editor: | |
softWrapHangingIndent: 1 |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> | |
# console.log "Saved! #{editor.getPath()}" | |
# pseudo-code | |
# atom.disposables.add atom.commands.add 'atom-text-editor', | |
# 'emmet:expand-abbreviation-with-tab': (e) -> | |
# if e.originalEvent.which is 9 | |
# atom.commands.dispatch editorElement, 'snippets:expand' | |
# atom.commands.dispatch editorElement, 'snippets:next-tab-stop' | |
# e.abortKeyBinding() | |
# Fix PATH | |
process.env.PATH = ['/usr/local/bin', process.env.PATH].join(":") |
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
'body .feedback': | |
'unset': 'feedback:send' | |
'atom-workspace': | |
'shift-cmd-H': 'git-plus:menu' | |
'alt-s enter': 'stacktrace:from-selection' | |
'alt-s p': 'stacktrace:paste' | |
'alt-s up': 'stacktrace:to-caller' | |
'alt-s down': 'stacktrace:follow-call' | |
'alt-c alt-c': 'color-picker:trigger' | |
'atom-text-editor': | |
'ctrl-m': 'bracket-matcher:go-to-matching-bracket' | |
'atom-text-editor:not([mini])': | |
'cmd-/': 'editor:toggle-line-comments' | |
'ctrl-b': 'turbo-javascript:wrap-block' | |
'shift-cmd-R': 'editor:auto-indent' | |
'shift-cmd-C': 'git-plus:commit' | |
'shift-cmd-I shift-cmd-A': 'git-plus:stage-hunk' | |
# Prevent tab from expanding using Emmet when autocomplete is open. | |
# ------------------------------------------------------------------------------ | |
# 'Grammar-Specific' Scopes | |
'atom-text-editor[data-grammar~="js"]:not([mini])': | |
'ctrl-cmd-r':'docblockr:reparse' | |
'ctrl-cmd-w':'docblockr-wrap-lines' | |
'ctrl-,': 'turbo-javascript:end-line-comma' | |
# Stop emmet from hijacking tab from snippet tab stops | |
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])': | |
'tab': 'snippets:next-tab-stop' | |
# ------------------------------------------------------------------------------ | |
# Specialized scopes. General 'conflicts resolutions' should be handled above. | |
# Only when an autocomplete dropdown is showing | |
'atom-text-editor.autocomplete-active:not([mini])': | |
'enter': 'autocomplete-plus:confirm' | |
'tab': 'autocomplete-plus:confirm' | |
# Allow ctrl-space to toggle autocomplete-plus | |
'atom-text-editor.autocomplete-active': | |
'ctrl-space': 'autocomplete-plus:cancel' | |
'atom-text-editor:not(.autocomplete-active)': | |
'ctrl-space': 'autocomplete-plus:activate' | |
'tab': 'snippets:next-tab-stop' | |
# Only inside comment blocks | |
'atom-text-editor:not([mini]) .comment': | |
'tab': 'docblockr:parse-tab' | |
# ------------------------------------------------------------------------------ | |
# ensure useful core movements don't get overwritten | |
'.platform-darwin atom-workspace atom-text-editor:not([mini])': | |
# Default keybindings | |
# 'ctrl-b': 'core:move-left' ------- Given to 'turbo-js:wrap-block' | |
'ctrl-e': 'editor:move-to-end-of-line' | |
'ctrl-f': 'core:move-right' | |
'ctrl-a': 'editor:move-to-first-character-of-line' | |
'cmd-j': 'editor:join-lines' | |
'ctrl-k': 'editor:cut-to-end-of-line' | |
'alt-d': 'editor:delete-to-end-of-word' | |
'ctrl-shift-K': 'editor:delete-line' | |
'ctrl-cmd-up': 'editor:move-line-up' | |
'ctrl-cmd-down': 'editor:move-line-down' | |
'cmd-enter': 'editor:newline-below' | |
'cmd-<': 'editor:scroll-to-cursor' | |
'alt-enter': 'editor:newline' | |
'alt-cmd-]': 'editor:unfold-current-row' | |
'.platform-darwin atom-workspace atom-text-editor': | |
'cmd-l': 'editor:select-line' | |
'cmd-k cmd-u': 'editor:upper-case' | |
'cmd-k cmd-l': 'editor:lower-case' | |
'alt-shift-left': 'editor:select-to-beginning-of-word' | |
'alt-shift-right': 'editor:select-to-end-of-word' | |
'alt-shift-F': 'editor:select-to-end-of-word' | |
'alt-shift-B': 'editor:select-to-beginning-of-word' | |
'alt-h': 'editor:delete-to-beginning-of-word' | |
'alt-delete': 'editor:delete-to-end-of-word' | |
'ctrl-shift-F': 'core:select-right' | |
'ctrl-shift-B': 'core:select-left' | |
'alt-shift-F': 'editor:select-to-end-of-word' | |
'alt-shift-B': 'editor:select-to-beginning-of-word' | |
'ctrl-shift-W': 'editor:select-word' | |
'ctrl-shift-A': 'editor:select-to-first-character-of-line' | |
'ctrl-shift-E': 'editor:select-to-end-of-line' | |
'ctrl-shift-P': 'core:select-up' | |
'ctrl-shift-N': 'core:select-down' | |
'cmd-k cmd-u': 'editor:upper-case' | |
'cmd-k cmd-l': 'editor:lower-case' | |
# core commands with custom keybindings | |
'alt-w': 'editor:toggle-soft-wrap' |
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
'.text.html': | |
'jQuery script': | |
'prefix': 'jquery' | |
'body': '<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>' | |
###============================================================================= | |
= JS = | |
----------------------------------------------------------------------------=### | |
'.source.js, .source.ts, .source.css,.source.scss, .source.less': | |
'Comment - hr': | |
'prefix': 'hr' | |
'body': """ | |
/* ============================================================================= | |
= ${1:Comment Section} | |
============================================================================= */ | |
""" | |
'Comment - Subsection comment': | |
'prefix': 'comm-sub' | |
'body': """ | |
/*------- ${1:Subsection comment block} -------*/$2 | |
""" | |
'Comment - 80 Col Header': | |
'prefix': 'h1' | |
'body': """ | |
/*****************************************************************************/ | |
/* ${1:Section Title} */ | |
/*****************************************************************************/\n$2 | |
""" | |
'Comment - h2': | |
'prefix': 'h2' | |
'body': """ | |
//----------------------------------------------------------------------------- | |
// ${1:Comment Section} | |
//----------------------------------------------------------------------------- | |
""" | |
'React - Stateless Component': | |
'prefix': 'rfunc' | |
'body': """ | |
// @flow | |
import React from 'react'; | |
import injectSheet from 'react-jss'; | |
import cx from 'classnames'; | |
type Props = { | |
classes: Object, | |
className?: string | |
}; | |
function ${1:Component}({ classes: c, className }: Props) { | |
return ( | |
<div className={cx(c.container, className)}> | |
${2:Component} | |
</div> | |
); | |
} | |
const styles = { | |
container: { | |
} | |
}; | |
export default injectSheet(styles)(${1:Component}); | |
""" | |
'React - Class Component': | |
'prefix': 'rclass' | |
'body': """ | |
// @flow | |
import React from 'react'; | |
import injectSheet from 'react-jss'; | |
import cx from 'classnames'; | |
type Props = { | |
classes: Object, | |
className?: string | |
}; | |
class ${1:Component} extends React.Component { | |
props: Props; | |
state = {}; | |
render() { | |
const { classes: c, className } = this.props; | |
return ( | |
<div className={cx(c.container, className)}> | |
${2:Component} | |
</div> | |
); | |
} | |
} | |
const styles = { | |
container: { | |
} | |
}; | |
export default injectSheet(styles)(${1:Component}); | |
""" | |
'Import - React Redux': | |
'prefix': '_iredux' | |
'body': """ | |
import compose from 'lodash/fp/compose'; | |
import { connect } from 'react-redux'; | |
""" | |
'Redux - mapStateToProps': | |
'prefix': 'rms' | |
'body': """ | |
const mapStateToProps = state => ({ | |
${1:key}: state.${2:module}.${1:key} | |
}); | |
""" | |
'Redux - mapDispatchToProps': | |
'prefix': 'rmd' | |
'body': """ | |
const mapDispatchToProps = dispatch => ({ | |
${1:key}: (${2:...args}) => dispatch(${3:action}(${2:...args})) | |
}); | |
""" | |
'GraphQL Query': | |
'prefix': 'gquery' | |
'body': """ | |
const QUERY = gql` | |
query ${1:myQuery} { | |
${1:myQuery} { | |
${2:_id} | |
} | |
} | |
`; | |
const mapQueryToProps = result => ({ | |
isFetching: result.data.loading, | |
${3:items}: result.data.${3:items} | |
}); | |
const withQuery = graphql(QUERY, { | |
props: mapQueryToProps | |
}); | |
const WithQuery = withQuery(${4:Component}); | |
""" | |
'GraphQL Mutation': | |
'prefix': 'gmutation' | |
'body': """ | |
const MUTATION = gql` | |
mutation ${1:myMutation}($2) { | |
${1:myMutation}($3) { | |
$8 | |
} | |
} | |
`; | |
const mapMutationToProps = ({ mutate }) => ({ | |
${4:onClickSubmit}: (${5:...args}) => mutate({ | |
variables: { ${5:...args} }, | |
refetchQueries: ['${6:myQuery}'] | |
}) | |
}); | |
const withMutation = graphql(MUTATION, { | |
props: mapMutationToProps | |
}); | |
const WithMutation = withMutation(${7:Component}); | |
""" | |
# Attribute Module Pattern for CSS | |
'.source.scss,.source.sass,.source.css, .source.less': | |
'Atribute Module Pattern: Define new style': | |
'prefix': 'am' | |
'body': '[am-${1:ModuleName}${2:~="${3:value}"}] {\n $4\n}' | |
###============================================================================= | |
= Jasmine = | |
----------------------------------------------------------------------------=### | |
'.source.spec.js': | |
'spyOn': | |
'prefix': 'spy' | |
'body': 'spyOn(${1:target}, "${2:method}");' | |
'spyOn.and.callThrough': | |
'prefix': 'spyc' | |
'body': 'spyOn(${1:target}, "${2:method}").and.callThrough();' | |
'spyOn.and.returnValue': | |
'prefix': 'spyv' | |
'body': 'spyOn(${1:target}, "${2:method}").and.returnValue(${3:value});' | |
'spyOn.and.callFake': | |
'prefix': 'spyf' | |
'body': 'spyOn(${1:target}, "${2:method}").and.callFake(${3:value});' | |
'spyOn.and.throwError': | |
'prefix': 'spye' | |
'body': 'spyOn(${1:target}, "${2:method}").and.throwError("${3:error}");' | |
'jasmine.createSpy': | |
'prefix': 'cspy' | |
'body': '${1:target} = jasmine.createSpy("${1:target}");' | |
'jasmine.createSpyObj': | |
'prefix': 'spyo' | |
'body': '${1:obj} = jasmine.createSpyObj("${1:obj}", ["${2:method}"]);' | |
'Expect not to be defined': | |
'prefix': 'notd' | |
'body': 'expect($1).not.toBeDefined();' | |
'Expect not to be falsy': | |
'prefix': 'notf' | |
'body': 'expect(${1:target}).not.toBeFalsy();' | |
'Expect not to be null': | |
'prefix': 'notn' | |
'body': 'expect(${1:target}).not.toBeNull();' | |
'Expect not to be truthy': | |
'prefix': 'nott' | |
'body': 'expect(${1:target}).not.toBeTruthy();' | |
'Expect not to contain': | |
'prefix': 'notc' | |
'body': 'expect(${1:target}).not.toContain(${2:value});' | |
'Expect to be defined': | |
'prefix': 'ed' | |
'body': 'expect($1).toBeDefined();' | |
'Expect to be falsy': | |
'prefix': 'ef' | |
'body': 'expect(${1:target}).toBeFalsy();' | |
'Expect to be null': | |
'prefix': 'en' | |
'body': 'expect(${1:target}).toBeNull();' | |
'Expect to be truthy': | |
'prefix': 'et' | |
'body': 'expect(${1:target}).toBeTruthy();' | |
'Expect to contain': | |
'prefix': 'ec' | |
'body': 'expect(${1:target}).toContain(${2:value});' | |
'Expect to equal': | |
'prefix': 'ee' | |
'body': 'expect(${1:target}).toEqual(${2:value});' | |
'Expect to match': | |
'prefix': 'em' | |
'body': 'expect(${1:target}).toMatch(${2:pattern});' | |
'Expect to have been called': | |
'prefix': 'ebc' | |
'body': 'expect(${1:target}).toHaveBeenCalled();' | |
'Expect to have been called with': | |
'prefix': 'ebcw' | |
'body': 'expect(${1:target}).toHaveBeenCalledWith("${2:value}");' | |
'Expect to throw error': | |
'prefix': 'ete' | |
'body': 'expect(${1:target}).toThrowError("${2:error}");' | |
'Expect': | |
'prefix': 'ex' | |
'body': 'expect($1)$2;' | |
'Expect to have any': | |
prefix: 'ethanyk' | |
body: """ | |
expect(${1:target}).to.have.any.keys("${2:key1}", "${3:key2}"); | |
""" | |
'Expect to have all': | |
prefix: 'ethallk' | |
body: 'expect(${1:target}).to.have.all.keys("${2:key1}", "${3:key2}");' | |
'Expect to be at least': | |
prefix: 'ethloal' | |
body: 'expect(${1:target}).to.be.at.least(${2:n});' | |
'Expect to be at most': | |
prefix: 'ethloam' | |
body: 'expect(${1:target}).to.be.at.most(${2:n});' | |
'Describe block': | |
'prefix': 'des' | |
'body': """ | |
describe("${1:description}", function () { | |
$2 | |
}); | |
""" | |
'It block': | |
'prefix': 'it' | |
'body': """ | |
it("${1:description}", function () { | |
$2 | |
}); | |
""" | |
'It Async block': | |
'prefix': 'itA' | |
'body': """ | |
it("${1:description}", function (${2:done}) { | |
$3 | |
${2:done}(); | |
}); | |
""" | |
'After-Each block': | |
'prefix': 'aft' | |
'body': """ | |
afterEach(function () { | |
$1 | |
}); | |
""" | |
'After-Each Async block': | |
'prefix': 'aftA' | |
'body': """ | |
afterEach(function (${1:done}) { | |
$2 | |
${1:done}(); | |
}); | |
""" | |
'Before-Each block': | |
'prefix': 'bef' | |
'body': """ | |
beforeEach(function () { | |
$1 | |
}); | |
""" | |
'Before-Each Async block': | |
'prefix': 'befA' | |
'body': """ | |
beforeEach(function (${1:done}) { | |
$2 | |
${1:done}(); | |
}); | |
""" | |
'Runs': | |
'prefix': 'ru' | |
'body': """ | |
runs(function () { | |
$1 | |
}); | |
""" | |
###============================================================================= | |
= Coffeescript = | |
----------------------------------------------------------------------------=### | |
'.source.coffee': | |
'ViewModel - Collection': | |
'prefix': 'vmc' | |
'body': """ | |
Template.${1:Items}.viewmodel "$1", ${2:${3:viewmodelToExtend},} { | |
$1: -> $1.find() | |
${4:active$1: null | |
}$5 | |
}, "$1" | |
""" | |
'ViewModel - Item': | |
'prefix': 'vmi' | |
'body': """ | |
Template.${1:item}.viewmodel ((data) -> | |
"$1\_\#\{data._id\}" # use as `n`: ViewModel.byId(n) | |
), ${2:${3:viewmodelToExtend},} ((data) -> | |
id: data._id | |
$1: -> $1.findOne @id() | |
${4:activate: -> @parent().active @id() | |
}${5:isActive: -> @parent().active() is @id() | |
}$9 | |
), ["${6:helper1}"${7:, "${8:helper2}"}] | |
""" | |
'Coffeescript Comment - Todo Block': | |
'prefix': 'comm-todo-coffee' | |
'body': """ | |
## | |
## TODO: ${1: Some task} | |
## | |
""" | |
# subection | |
'Coffeescript Comment - Subsection': | |
'prefix': 'cs' | |
# uncomment when substitutions become supported | |
# 'body': '# -${1/(.)/-/ig}\n# ${1:Some Comment}' | |
'body': """ | |
# ------------------------------------------------------------------------------ | |
# ${1: Some comment} | |
""" | |
# header | |
'Coffeescript Comment - Header section': | |
'prefix': 'hr' | |
'body': """ | |
###============================================================================= | |
= ${1:Comment} = | |
----------------------------------------------------------------------------=### | |
$2 | |
""" | |
# block | |
'Coffeescript Comment - Block section': | |
'prefix': 'comm-block' | |
'body': """ | |
### | |
## ${1:Shared Functions: Foobar Widget} | |
## | |
${2:## @${3:description} ${4} | |
}## | |
### | |
${6} | |
""" | |
'Describe block': | |
'prefix': 'des' | |
'body': """ | |
describe "${1:description}", -> | |
$2 | |
""" | |
'It block': | |
'prefix': 'it' | |
'body': """ | |
it "${1:description}", -> | |
$2 | |
""" | |
'It Async block': | |
'prefix': 'itA' | |
'body': """ | |
it "${1:description}", (${2:done}) -> | |
$3 | |
${2:done}(); | |
""" | |
'After-Each block': | |
'prefix': 'aft' | |
'body': """ | |
afterEach -> | |
$1 | |
""" | |
'After-Each block': | |
'prefix': 'aftA' | |
'body': """ | |
afterEach (${1:done}) -> | |
$2 | |
${1:done}(); | |
""" | |
'Before-Each block': | |
'prefix': 'bef' | |
'body': """ | |
beforeEach -> | |
$1 | |
""" | |
'Before-Each Async block': | |
'prefix': 'befA' | |
'body': """ | |
beforeEach (${1:done}) -> | |
$2 | |
${1:done}(); | |
""" | |
'Runs': | |
'prefix': 'ru' | |
'body': """ | |
runs -> | |
$1 | |
""" |
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
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed. | |
* | |
* If you are unfamiliar with LESS, you can read more about it here: | |
* http://www.lesscss.org | |
*/ | |
@purple: hsl(247, 31%, 51%); | |
@purple: hsl(267, 51%, 8%); | |
@purple-dark-1: hsl(247, 28%, 48%); | |
atom-text-editor .line > .syntax--source { | |
// -webkit-filter: saturate(100%) brightness(100%) contrast(100%); | |
-webkit-font-smoothing: subpixel-antialiased !important; | |
} | |
.btn, .btn.icon, | |
.settings-view select.form-control, | |
.settings-view .config-menu .nav > li.active > a { | |
// background-color: @purple; | |
} | |
.tree-view { | |
} | |
.tree-view .list-tree.has-collapsable-children > .list-nested-item > .list-tree > li { | |
padding-left: 5px; | |
} | |
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li { | |
padding-left: 24px; | |
font-weight: 300; | |
font-size: 10px; | |
} | |
.list-group .icon::before, .list-tree .icon::before { | |
margin-right: 0.5em; | |
} | |
.list-tree.has-collapsable-children .list-nested-item > .list-item::before { | |
margin-right: 8px; | |
} | |
.list-tree.has-collapsable-children li.list-item { | |
margin-left: 22px; | |
} | |
.tree-view-open-files { | |
z-index: 2; | |
margin-top: 8px; | |
} | |
/** | |
* Nuclide outlines on scope | |
*/ | |
atom-text-editor .highlight.nuclide-code-highlight-marker > .region { | |
border-color: hsla(222, 10%, 75%, 0.2); | |
} | |
atom-text-editor .ecfg-wrap-guide, | |
atom-text-editor::shadow .ecfg-wrap-guide { | |
height: 100%; | |
width: 1px; | |
z-index: 3; | |
position: absolute; | |
top: 0; | |
background-color: #332f44; | |
transform: translateZ(0); | |
} | |
@font-face { font-family: "SF Mono"; font-weight: 200; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Light.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 200; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-LightItalic.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 400; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Regular.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 400; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-RegularItalic.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 500; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Medium.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 500; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-MediumItalic.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 600; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Semibold.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 600; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-SemiboldItalic.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 700; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Bold.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 700; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-BoldItalic.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 800; font-style: normal; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-Heavy.otf); } | |
@font-face { font-family: "SF Mono"; font-weight: 800; font-style: italic; src: url(file:///Applications/Utilities/Terminal.app/Contents/Resources/Fonts/SFMono-HeavyItalic.otf); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment