Skip to content

Instantly share code, notes, and snippets.

@MariusAlch
Last active October 5, 2016 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MariusAlch/844dec46e6e1584c199956c736a49b3c to your computer and use it in GitHub Desktop.
Save MariusAlch/844dec46e6e1584c199956c736a49b3c to your computer and use it in GitHub Desktop.
# 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()}"
'atom-workspace':
'ctrl-alt-`': 'atom-terminal:open-project-root'
'atom-text-editor:not([mini])':
'ctrl-e' : 'emmet:expand-abbreviation'
'ctrl-alt-r': 'emmet:remove-tag'
[
{
"name": "about",
"version": "1.5.3"
},
{
"name": "angularjs",
"version": "0.3.5"
},
{
"name": "angularjs-styleguide-snippets",
"version": "0.9.0"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-beautify",
"version": "0.29.13"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.52.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.44.0",
"theme": "ui"
},
{
"name": "atom-terminal",
"version": "0.8.0"
},
{
"name": "atom-ternjs",
"version": "0.15.0"
},
{
"name": "atom-typescript",
"version": "10.1.7"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.0"
},
{
"name": "autocomplete-css",
"version": "0.11.2"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-modules",
"version": "1.6.7"
},
{
"name": "autocomplete-plus",
"version": "2.31.1"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "blame",
"version": "0.10.0"
},
{
"name": "bookmarks",
"version": "0.41.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "color-picker",
"version": "2.2.2"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "deprecation-cop",
"version": "0.54.1"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "docblockr",
"version": "0.8.5"
},
{
"name": "editor-stats",
"version": "0.17.0"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "file-icons",
"version": "1.7.20"
},
{
"name": "find-and-replace",
"version": "0.201.0"
},
{
"name": "fuzzy-finder",
"version": "1.3.0"
},
{
"name": "git-control",
"version": "0.8.2"
},
{
"name": "git-diff",
"version": "1.1.0"
},
{
"name": "git-plus",
"version": "5.18.0"
},
{
"name": "git-time-machine",
"version": "1.5.3"
},
{
"name": "go-to-line",
"version": "0.31.0"
},
{
"name": "grammar-selector",
"version": "0.48.1"
},
{
"name": "highlight-line",
"version": "0.11.1"
},
{
"name": "highlight-selected",
"version": "0.11.2"
},
{
"name": "image-view",
"version": "0.58.2"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "indent-guide-improved",
"version": "1.4.10"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "language-babel",
"version": "2.43.0"
},
{
"name": "language-c",
"version": "0.52.1"
},
{
"name": "language-clojure",
"version": "0.21.0"
},
{
"name": "language-coffee-script",
"version": "0.47.2"
},
{
"name": "language-csharp",
"version": "0.12.1"
},
{
"name": "language-css",
"version": "0.37.1"
},
{
"name": "language-gfm",
"version": "0.88.0"
},
{
"name": "language-git",
"version": "0.15.0"
},
{
"name": "language-go",
"version": "0.42.1"
},
{
"name": "language-html",
"version": "0.45.1"
},
{
"name": "language-hyperlink",
"version": "0.16.0"
},
{
"name": "language-java",
"version": "0.23.0"
},
{
"name": "language-javascript",
"version": "0.119.0"
},
{
"name": "language-json",
"version": "0.18.2"
},
{
"name": "language-less",
"version": "0.29.5"
},
{
"name": "language-make",
"version": "0.22.2"
},
{
"name": "language-mustache",
"version": "0.13.0"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.35.0"
},
{
"name": "language-php",
"version": "0.37.2"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.45.0"
},
{
"name": "language-ruby",
"version": "0.69.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.0"
},
{
"name": "language-sass",
"version": "0.56.0"
},
{
"name": "language-shellscript",
"version": "0.22.4"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.23.0"
},
{
"name": "language-text",
"version": "0.7.1"
},
{
"name": "language-todo",
"version": "0.28.0"
},
{
"name": "language-toml",
"version": "0.18.0"
},
{
"name": "language-xml",
"version": "0.34.9"
},
{
"name": "language-yaml",
"version": "0.26.0"
},
{
"name": "line-ending-selector",
"version": "0.5.0"
},
{
"name": "link",
"version": "0.31.1"
},
{
"name": "linter",
"version": "1.11.18"
},
{
"name": "linter-eslint",
"version": "7.3.2"
},
{
"name": "linter-htmlhint",
"version": "1.3.0"
},
{
"name": "markdown-preview",
"version": "0.158.0"
},
{
"name": "merge-conflicts",
"version": "1.4.4"
},
{
"name": "minimap",
"version": "4.25.0"
},
{
"name": "notifications",
"version": "0.65.0"
},
{
"name": "npm-install",
"version": "4.0.3"
},
{
"name": "one-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.0"
},
{
"name": "pigments",
"version": "0.37.0"
},
{
"name": "rest-client",
"version": "1.2.5"
},
{
"name": "seti-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "settings-view",
"version": "0.242.2"
},
{
"name": "snippets",
"version": "1.0.2"
},
{
"name": "solarized-dark-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.67.1"
},
{
"name": "status-bar",
"version": "1.4.1"
},
{
"name": "symbols-view",
"version": "0.113.0"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "tabs",
"version": "0.100.2"
},
{
"name": "todo-show",
"version": "1.7.0"
},
{
"name": "tree-view",
"version": "0.208.2"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.34.0"
},
{
"name": "whitespace",
"version": "0.33.0"
},
{
"name": "wrap-guide",
"version": "0.38.1"
}
]
{
"atom-beautify": {
"general": {
"analytics": false,
"beautifyEntireFileOnSave": false
},
"html": {
"indent_size": 2
},
"js": {
"default_beautifier": "Pretty Diff",
"indent_size": 2
},
"json": {
"indent_size": 2
},
"scss": {
"indent_size": 2
}
},
"atom-ternjs": {
"snippetsFirst": true,
"useSnippets": true
},
"atom-typescript": {},
"autocomplete-modules": {
"webpack": true
},
"core": {
"customFileTypes": {
"source.ini": [
".buckconfig",
".hgrc"
],
"source.json": [
".arcconfig",
"BUCK.autodeps"
],
"source.python": [
"BUCK"
]
},
"disabledPackages": [
"atom-grails",
"language-groovy",
"meteor-api",
"autocomplete-python",
"python-tools",
"styleguide",
"timecop",
"package-generator",
"react"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"node_modules",
"client/vendor/semantic",
"semantic"
],
"packagesWithKeymapsDisabled": [
"atom-terminal"
]
},
"docblockr": {
"deep_indent": true,
"param_description": false,
"return_description": false
},
"editor": {
"fontSize": 12
},
"exception-reporting": {
"userId": "7597e3cd-106f-a85e-10e9-287004c782a2"
},
"find-and-replace": {
"focusEditorAfterSearch": true,
"openProjectFindResultsInRightPane": true,
"scrollToResultOnLiveSearch": true
},
"flow-ide": {
"executablePath": "flow",
"onlyIfAppropriate": false
},
"js-autoimport": {
"spaceForNamedImports": false
},
"linter": {
"errorPanelHeight": 26
},
"linter-eslint": {
"disableWhenNoEslintConfig": false,
"fixOnSave": true,
"globalNodePath": "/usr"
},
"linter-flow": {},
"linter-jshint": {},
"linter-python": {
"executablePath": "/usr/local/bin/pylama"
},
"linter-sass-lint": {
"configFile": "~/.sass-lint.yml",
"globalNodePath": "/usr"
},
"meteor-assist": {
"scriptFormat": "javascript"
},
"minimap": {
"absoluteMode": true
},
"npm-install": {},
"script": {
"stopOnRerun": true
},
"split-diff": {
"diffWords": true,
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"syncHorizontalScroll": true
},
"sync-settings": {},
"terminal-panel": {
"overrideLs": false
},
"welcome": {
"showOnStartup": false
}
}
'.source.js':
'container':
'prefix': '_cont'
'body': '''
import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
class ${1:ContainerName} extends Component {
// static propTypes = {
// count: React.PropTypes.number.isRequired
// }
render () {
return (
<div className="${2:container-name}">
$3
</div>
)
}
}
function mapStateToProps (state) {
return {
// language: state.language
}
}
function mapDispatchToProps (dispatch) {
return {
// actions: bindActionCreators(TodoActions, dispatch)
}
}
export default connect(
mapStateToProps,
mapDispatchToProps
)(${1:ContainerName})
'''
'lean_container':
'prefix': '_cont_lean'
'body': '''
import React, { Component } from 'react'
export default class ${1:ContainerName} extends Component {
// static propTypes = {
// count: React.PropTypes.number.isRequired
// }
render () {
return (
<div className="${2:container-name}">
${3:Hello world}
</div>
)
}
}
'''
'component':
'prefix': '_comp'
'body': '''
import React from 'react'
import './style.scss'
export default function ${1:ComponentName} () {
return (
<div className="${2:component-name}">
${3:Hello world}
</div>
)
}
// ${1:ComponentName}.propTypes = {
// state: React.PropTypes.object,
// actions: React.PropTypes.object,
// submit: React.PropTypes.func
// }
'''
'import comp':
'prefix': '_im_comp'
'body': '''
import ${1:Component} from 'components/${1:Component}'
'''
'import cont':
'prefix': '_im_cont'
'body': '''
import ${1:Container} from 'containers/${1:Container}'
'''
'controller':
'prefix': '_ngctrl'
'body': '''
(function() {
'use strict';
angular
.module('${1:moduleName}')
.controller('${2:Name}Controller', ${2:Name}Controller);
${2:Name}Controller.$inject = [
];
function ${2:Name}Controller(
) {
var vm = this;
activate();
function activate() {
${3}
}
}
})();
'''
'import':
'prefix': '_impo'
'body': '''
import ${1:Thing} from '${2:alias}/${1:Thing}'
'''
'module':
'prefix': '_ngmodule'
'body': '''
(function() {
'use strict';
angular
.module('${1:coponent}', [])
.config(function ($stateProvider) {
$stateProvider
.state('app.${1:coponent}', {
url: '/${1:coponent}',
views: {
'menuContent': {
templateUrl: 'components/${1:coponent}/${1:coponent}.tmpl.html',
controller: '${2:Controller}',
controllerAs: 'vm'
}
}
})
})
})();
'''
'.source.scss':
'variables':
'prefix': '_vars'
'body': '''
@import "~assets/scss/variables.scss";
'''
// styles file (not found)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment