Skip to content

Instantly share code, notes, and snippets.

@hisorange
Last active January 5, 2018 08:47
Show Gist options
  • Save hisorange/e6cb3f019d6798355e31c1c190fcc596 to your computer and use it in GitHub Desktop.
Save hisorange/e6cb3f019d6798355e31c1c190fcc596 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()}"
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on OS X and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'atom-text-editor':
'cmd-alt-/': 'editor:auto-indent'
'atom-workspace':
'cmd-alt-í': 'minimap:toggle'
[
{
"name": "about",
"version": "1.7.8"
},
{
"name": "aligner",
"version": "1.2.4"
},
{
"name": "aligner-css",
"version": "1.2.1"
},
{
"name": "aligner-javascript",
"version": "1.3.0"
},
{
"name": "aligner-php",
"version": "1.2.0"
},
{
"name": "aligner-scss",
"version": "1.3.1"
},
{
"name": "archive-view",
"version": "0.64.1"
},
{
"name": "ariake-dark-syntax",
"version": "0.1.3",
"theme": "syntax"
},
{
"name": "atom-alignment",
"version": "0.13.0"
},
{
"name": "atom-beautify",
"version": "0.30.9"
},
{
"name": "atom-bootstrap3",
"version": "1.2.12"
},
{
"name": "atom-css-clean",
"version": "2.24.1"
},
{
"name": "atom-dark-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.1",
"theme": "ui"
},
{
"name": "atom-html-preview",
"version": "0.2.5"
},
{
"name": "atom-ide-ui",
"version": "0.7.1"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.1",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.8",
"theme": "syntax"
},
{
"name": "atom-material-syntax-dark",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "atom-material-syntax-light",
"version": "0.4.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "2.1.1",
"theme": "ui"
},
{
"name": "atom-monokai",
"version": "0.10.9",
"theme": "syntax"
},
{
"name": "atom-wrap-in-tag",
"version": "0.6.0"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.6"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.4"
},
{
"name": "autocomplete-plus",
"version": "2.39.0"
},
{
"name": "autocomplete-snippets",
"version": "1.11.2"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.27.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "blade-snippets",
"version": "0.2.0"
},
{
"name": "bleen-syntax",
"version": "0.3.1",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.45.0"
},
{
"name": "bootstrap-3-snippetset",
"version": "0.0.6"
},
{
"name": "bracket-matcher",
"version": "0.88.1"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "color-picker",
"version": "2.2.5"
},
{
"name": "command-palette",
"version": "0.43.0"
},
{
"name": "css-snippets",
"version": "1.1.0"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "dash-syntax",
"version": "0.4.1",
"theme": "syntax"
},
{
"name": "dash-ui",
"version": "0.4.4",
"theme": "ui"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "docblockr",
"version": "0.13.4"
},
{
"name": "dracula-syntax",
"version": "2.0.5",
"theme": "syntax"
},
{
"name": "dracula-ui",
"version": "0.6.0",
"theme": "ui"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.23.7"
},
{
"name": "exception-reporting",
"version": "0.42.0"
},
{
"name": "file-icons",
"version": "2.1.15"
},
{
"name": "find-and-replace",
"version": "0.215.0"
},
{
"name": "fonts",
"version": "3.0.3"
},
{
"name": "fuzzy-finder",
"version": "1.7.3"
},
{
"name": "git-blame",
"version": "1.4.0"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "git-time-machine",
"version": "1.5.9"
},
{
"name": "github",
"version": "0.8.3"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.8"
},
{
"name": "graphql-autocomplete",
"version": "1.1.1"
},
{
"name": "hyperclick-php",
"version": "0.2.1"
},
{
"name": "ide-php",
"version": "0.7.4"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "indent-tooltip",
"version": "0.3.1"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "jquery-snippets",
"version": "11.0.0"
},
{
"name": "keybinding-resolver",
"version": "0.38.1"
},
{
"name": "language-blade",
"version": "0.38.0"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.5"
},
{
"name": "language-coffee-script",
"version": "0.49.3"
},
{
"name": "language-csharp",
"version": "0.14.3"
},
{
"name": "language-css",
"version": "0.42.8"
},
{
"name": "language-csv",
"version": "1.1.2"
},
{
"name": "language-diff",
"version": "0.7.0"
},
{
"name": "language-gfm",
"version": "0.90.3"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.4"
},
{
"name": "language-graphql",
"version": "0.9.0"
},
{
"name": "language-htaccess",
"version": "0.2.0"
},
{
"name": "language-html",
"version": "0.48.4"
},
{
"name": "language-hyperlink",
"version": "0.16.3"
},
{
"name": "language-ini",
"version": "1.19.0"
},
{
"name": "language-java",
"version": "0.27.6"
},
{
"name": "language-javascript",
"version": "0.127.7"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.34.1"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.4"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.43.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.6"
},
{
"name": "language-ruby",
"version": "0.71.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust",
"version": "0.4.12"
},
{
"name": "language-sass",
"version": "0.61.3"
},
{
"name": "language-shellscript",
"version": "0.25.4"
},
{
"name": "language-smarty",
"version": "1.8.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.9"
},
{
"name": "language-text",
"version": "0.7.3"
},
{
"name": "language-todo",
"version": "0.29.3"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-typescript",
"version": "0.2.3"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.31.1"
},
{
"name": "laravel",
"version": "0.7.1"
},
{
"name": "laravel-5-snippets",
"version": "0.19.0"
},
{
"name": "laravel-eloquent-snippets",
"version": "2.0.0"
},
{
"name": "line-ending-selector",
"version": "0.7.4"
},
{
"name": "link",
"version": "0.31.4"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-jsonlint",
"version": "1.3.0"
},
{
"name": "linter-php",
"version": "1.5.1"
},
{
"name": "linter-rust",
"version": "0.8.4"
},
{
"name": "linter-ui-default",
"version": "1.6.10"
},
{
"name": "markdown-preview",
"version": "0.159.18"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "minimap",
"version": "4.29.7"
},
{
"name": "minimap-git-diff",
"version": "4.3.1"
},
{
"name": "monokai",
"version": "0.24.0",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.70.2"
},
{
"name": "nucleus-dark-ui",
"version": "0.12.3",
"theme": "ui"
},
{
"name": "one-dark-syntax",
"version": "1.8.1",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.9",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.1",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.9",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "phpunit-snippets",
"version": "0.1.0"
},
{
"name": "platformio-ide-terminal",
"version": "2.8.0"
},
{
"name": "pretty-json",
"version": "1.6.4"
},
{
"name": "pure-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "rain-syntax",
"version": "2.0.2",
"theme": "syntax"
},
{
"name": "rain-ui",
"version": "1.0.1",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.253.0"
},
{
"name": "snippet-generator",
"version": "0.3.2"
},
{
"name": "snippet-manager",
"version": "1.2.0"
},
{
"name": "snippets",
"version": "1.1.9"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.3",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.3",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.72.3"
},
{
"name": "status-bar",
"version": "1.8.15"
},
{
"name": "styleguide",
"version": "0.49.9"
},
{
"name": "symbols-view",
"version": "0.118.1"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.109.1"
},
{
"name": "tester",
"version": "1.4.0"
},
{
"name": "tester-phpunit",
"version": "1.0.6"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "tree-view",
"version": "0.221.3"
},
{
"name": "update-package-dependencies",
"version": "0.13.0"
},
{
"name": "welcome",
"version": "0.36.6"
},
{
"name": "whitespace",
"version": "0.37.5"
},
{
"name": "wrap-guide",
"version": "0.40.3"
},
{
"name": "xatom-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "xatom-ui",
"version": "0.3.0",
"theme": "ui"
},
{
"name": "zephir",
"version": "0.1.0"
}
]
{
"activate-power-mode": {
"autoToggle": false
},
"atom-beautify": {
"general": {
"_analyticsUserId": "a848e332-70b3-4b46-9c5f-c62b81e698a5"
}
},
"atom-ide-ui": {
"hyperclick": {
"linuxTriggerKeys": "ctrlKey,altKey"
}
},
"autocomplete-plus": {
"autoActivationDelay": 10,
"maxVisibleSuggestions": 15
},
"core": {
"disabledPackages": [
"welcome",
"spell-check",
"laravel",
"laravel-5-snippets",
"about",
"archive-view",
"package-generator",
"git-time-machine",
"language-smarty",
"graphql-autocomplete",
"tester-phpunit",
"ide-php",
"hyperclick-php",
"jquery-snippets",
"language-rust",
"language-graphql",
"linter-rust",
"linter-php",
"phpunit-snippets",
"platformio-ide-terminal",
"zephir",
"linter"
],
"openEmptyEditorOnStart": false,
"projectHome": "/home/hisorange/Work/",
"telemetryConsent": "limited",
"themes": [
"dracula-ui",
"dracula-syntax"
],
"warnOnLargeFileLimit": 2
},
"editor": {
"atomicSoftTabs": false,
"fontSize": 22,
"invisibles": {},
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"softTabs": false,
"tabLength": 4,
"tabType": "soft"
},
"exception-reporting": {
"userId": "b599d03b-9427-5af9-f9d8-0aae5e310ac7"
},
"fonts": {
"fontFamily": "Iosevka Medium"
},
"git-blame": {
"ignoreWhiteSpaceDiffs": true
},
"git-diff": {
"showIconsInEditorGutter": true
},
"git-plus": {
"general": {
"splitPane": "Right"
}
},
"github": {
"viewChangesForCurrentFileDiffPaneSplitDirection": "right"
},
"linter": {
"lintOnChange": false
},
"markdown-preview": {
"breakOnSingleNewline": true
},
"minimap": {
"displayMinimapOnLeft": true,
"plugins": {
"git-diff": true,
"git-diffDecorationsZIndex": 0
}
},
"platformio-ide-terminal": {
"core": {
"workingDirectory": "Home"
},
"style": {
"fontSize": "14"
}
},
"snippet-manager": {
"json": true
},
"split-diff": {
"diffWords": true,
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"scrollSyncType": "Vertical + Horizontal"
},
"sync-settings": {},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ensureSingleTrailingNewline": false
}
}
'.text':
'blade-loader':
'prefix': 'loader'
'body': '<div class="overlay"><i class="fa fa-refresh fa-spin"></i></div>'
'blade-can':
'prefix': 'canendcan'
'body': """
@can('${1:permission}')
@endcan
"""
'blade-box':
'prefix': 'bbox'
'body': '<div class="box box-primary">\n\t<div class="box-header with-border">\n\t\t<i class="fa fa-fw fa-${1:reorder}"></i>\n\t\t<h3 class="box-title">${2:Box Title}</h3>\n\t</div>\n\n\t<div class="box-body no-padding with-border">\n\t\t${3: Box content!}\n\t</div>\n\n\t<div class="box-footer">\n\n\t</div>\n</div>'
'blade-table':
'prefix': 'btable'
'body': '<table class="table table-condensed table-hover">\n\t<thead>\n\t\t<tr>\n\t\t\t<th class="col-xs-3 text-center">${1:SampleTitle}</th>\n\t\t\t<th class="col-xs-3 text-center">${1:SampleTitle}</th>\n\t\t\t<th class="col-xs-3 text-center">${1:SampleTitle}</th>\n\t\t\t<th class="col-xs-3 text-center">${1:SampleTitle}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td class="text-center">${2:SampleContent}</td>\n\t\t\t<td class="text-center">${2:SampleContent}</td>\n\t\t\t<td class="text-center">${2:SampleContent}</td>\n\t\t\t<td class="text-center">${2:SampleContent}</td>\n\t\t</tr>\n\t</tbody>\n</table>'
'.source.php':
'simple-action':
'prefix': 'simple'
'body': '->renderSimpleAction(${1:\$title});'
'model-rules':
'prefix': 'rules'
'body': '/**\n * {@inheritdoc}\n */\npublic static $rules\t = [\n\t$1\n];'
'model-transaction':
'prefix': 'transaction'
'body': 'Model::transactionWrapper(function() {\n\treturn $1;\n});'
'presenter-snip':
'prefix': 'presenter'
'body': '// Lume components\nuse Presenter;\n\nclass ${1:C} extends Presenter'
'eloquent-boot':
'prefix': 'boot'
'body': '/**\n * {@inheritdoc}\n */\nprotected static function boot()\n{\n\t// ${1:Code comes here...}\n}'
'docblock-inherit':
'prefix': 'inheritdoc'
'body': '/**\n * {@inheritdoc}\n */'
'eloquent-belongstomany':
'prefix': 'belongstomany'
'body': '/**\n * Belongs to many relation with the ${1:foreign} resource.\n *\n * @return \\\\Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\BelongsToMany\n */\npublic function ${2:belongsToManyReferenceKey}()\n{\n\treturn $this->belongsToMany(${3:ForeignClassName}::class, \'${4:pivot_table}\', \'${5:local_id}\', \'${6:foreign_id}\');\n}'
'eloquent-hasmany':
'prefix': 'hasmany'
'body': '/**\n * Has many relation with the ${1:foreign} resource.\n * \n * @return \\\\Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\n */\npublic function ${2:hasManyReferenceKey}()\n{\n\treturn $this->hasMany(${3:ForeignClassName}::class, \'${4:foreign_id}\', \'${5:id}\');\n}'
'eloquent-hasone':
'prefix': 'hasone'
'body': '/**\n * Has one relation with the ${1:foreign} resource.\n * \n * @return \\\\Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\n */\npublic function ${2:hasOneReferenceKey}()\n{\n\treturn $this->hasOne(${3:ForeignClassName}::class, \'${4:foreign_id}\', \'${5:id}\');\n}'
'eloquent-belongsto':
'prefix': 'belongsto'
'body': '/**\n * Belongs to relation with the ${1:foreign} resource.\n * \n * @return \\\\Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\BelongsTo\n */\npublic function ${2:belongsToReferenceKey}()\n{\n\treturn $this->belongsTo(${3:ForeignClassName}::class, \'${4:foreign_id}\', \'${5:local_id}\');\n}'
'nano-controller':
'prefix': 'controller'
'body': '// Register the module\'s REST controllers.\nRouter::controller([\n\t$1\n]);'
'nano-bind':
'prefix': 'bind'
'body': '// Register the module\'s routed resources.\nRouter::bind([\n\t$1\n]);'
'nano-getviewforaction':
'prefix': 'getviewforaction'
'body': '$this->getViewForAction()'
'sql-ascii-charset':
'prefix': 'ascii'
'body': 'ascii_general_ci'
'nano-breadcrumb':
'prefix': 'breadcrumb'
'body': 'App::breadcrumb(${1:\$title}, [\'${2:this}\']);'
'nano-caught':
'prefix': 'caught'
'body': """App::caught($e);"""
'php-foreign-key':
'prefix': 'unsignedInteger'
'body': """$table->unsignedInteger(\'${1:name}_id\')->comment(\'Foreign key to ${2:table}.\');"""
'php-table-schema':
'prefix': 'schema'
'body': """// Create `${1:table}` table.\n$this->schema->create(\'${1:table}\', function (Blueprint $table) {\n\t// Table engine settings.\n\t$table->engine = \'InnoDB\';\n\n\t// Table character set and collations.\n\t$table->charset = \'utf8mb4\';\n\t$table->collation = \'utf8mb4_hungarian_ci\';\n\n\t// Table fields.\n\t$table->increments(\'id\');\n\t$table->softDeletes();\n\t$table->timestamps();\n});"""
'php-table-alter':
'prefix': 'alter'
'body': """// Alter `${1:table}` table.\n$this->schema->table(\'${1:table}\', function (Blueprint $table) {\n\t// Reference field `${2:local_id}` foreign key.\n\t$table->foreign(\'${2:local_id}\')->references(\'id\')->on(\'${3:remote_table}\')->onDelete(\'cascade\')->onUpdate('no action');\n});"""
'php-func-bacse':
'prefix': 'ff'
'body': """${1:public} $2function ${3:call}(${4:$args})\n{\n\treturn ${4:$args};$5\n}"""
'php-debug-var':
'prefix': 'dd'
'body': 'dump(${1:$var});\nexit;'
'php-prot-var':
'prefix': 'protected'
'body': """
/**
* ${1:Unique database ID}.
*
* @var ${2:integer}
*/
protected $${3:id};
"""
'php-try-catch':
'prefix': 'tryc'
'body': """
try {
// Start a new database transaction.
DB::begin();
// Commit the changes!
DB::commit();
} catch (Exception $e) {
// Rollback the database transaction.
DB::rollback();
// Rethrow the message.
throw $e;
}
"""
'php-backend-menu':
'prefix': 'rbmenu'
'body': """
'' => [
'icon' => 'fa fa-fw fa-${1:}',
'text' => ''
],
"""
'.source.blade.php':
'html-hide':
'prefix': 'hide'
'body': """
style="display:none;"
"""
'html-box':
'prefix': 'boxx'
'body': """
<div class="box box-warning">
<div class="box-header">
<h3 class="box-title"></h3>
</div>
<div class="box-body">
</div>
<div class="box-footer">
</div>
</div>
"""
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment