Skip to content

Instantly share code, notes, and snippets.

@mangecoeur
Last active July 11, 2017 12:31
Show Gist options
  • Save mangecoeur/d4d6b7c66334bcb8456d5320309fe556 to your computer and use it in GitHub Desktop.
Save mangecoeur/d4d6b7c66334bcb8456d5320309fe556 to your computer and use it in GitHub Desktop.
# # we need a reference to the snippets package
# snippetsPackage = require(atom.packages.getLoadedPackage('autocomplete-snippets').path)
#
# # we need a reference to the original method we'll monkey patch
# __oldGetSnippets = snippetsPackage.getSnippets
#
# snippetsPackage.getSnippets = (editor) ->
# snippets = __oldGetSnippets.call(this, editor)
#
# # we're only concerned by ruby files
# return snippets unless editor.getGrammar().scopeName is 'source.ruby'
#
# # snippets is an object where keys are the snippets's prefixes and the values
# # the snippets objects
# console.log snippets
#
# newSnippets = {}
# excludedPrefixes = ['l']
#
# for prefix, snippet of snippets
# newSippets[prefix] = snippet unless prefix in excludedPrefixes
#
# newSnippets
[
{
"name": "Glitter",
"version": "0.6.0",
"theme": "syntax"
},
{
"name": "Zen",
"version": "0.18.0"
},
{
"name": "about",
"version": "1.7.6"
},
{
"name": "archive-view",
"version": "0.63.2"
},
{
"name": "atom-busy-unifier-sb",
"version": "1.0.3"
},
{
"name": "atom-csv-markdown",
"version": "1.0.2"
},
{
"name": "atom-dark-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "2.0.4",
"theme": "ui"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.1"
},
{
"name": "autocomplete-bibtex",
"version": "0.7.0"
},
{
"name": "autocomplete-css",
"version": "0.16.2"
},
{
"name": "autocomplete-html",
"version": "0.8.0"
},
{
"name": "autocomplete-plus",
"version": "2.35.4"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.3"
},
{
"name": "background-tips",
"version": "0.27.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.85.5"
},
{
"name": "build",
"version": "0.68.0"
},
{
"name": "build-make",
"version": "0.13.0"
},
{
"name": "busy",
"version": "0.7.0"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "command-palette",
"version": "0.40.4"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "deprecation-cop",
"version": "0.56.7"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "document-outline",
"version": "1.6.1"
},
{
"name": "encoding-selector",
"version": "0.23.4"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "file-icons",
"version": "2.1.8"
},
{
"name": "find-and-replace",
"version": "0.208.3"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.3.3"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "image-view",
"version": "0.61.2"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.2"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "language-asciidoc",
"version": "1.10.0"
},
{
"name": "language-c",
"version": "0.58.0"
},
{
"name": "language-clojure",
"version": "0.22.2"
},
{
"name": "language-coffee-script",
"version": "0.48.7"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.2"
},
{
"name": "language-gfm",
"version": "0.89.0"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.0"
},
{
"name": "language-html",
"version": "0.47.2"
},
{
"name": "language-hyperlink",
"version": "0.16.1"
},
{
"name": "language-java",
"version": "0.27.1"
},
{
"name": "language-javascript",
"version": "0.126.1"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-latex",
"version": "1.0.0"
},
{
"name": "language-less",
"version": "0.32.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-markdown",
"version": "0.23.0"
},
{
"name": "language-mustache",
"version": "0.14.1"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.37.0"
},
{
"name": "language-php",
"version": "0.38.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.2"
},
{
"name": "language-restructuredtext",
"version": "1.1.0"
},
{
"name": "language-ruby",
"version": "0.71.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-rust",
"version": "0.4.11"
},
{
"name": "language-sass",
"version": "0.59.0"
},
{
"name": "language-shellscript",
"version": "0.25.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.5"
},
{
"name": "language-text",
"version": "0.7.2"
},
{
"name": "language-todo",
"version": "0.29.1"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-xml",
"version": "0.35.0"
},
{
"name": "language-yaml",
"version": "0.29.0"
},
{
"name": "line-ending-selector",
"version": "0.7.1"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-eslint",
"version": "8.2.1"
},
{
"name": "linter-rust",
"version": "0.8.0"
},
{
"name": "linter-ui-default",
"version": "1.6.2"
},
{
"name": "linter-write-good",
"version": "0.9.0"
},
{
"name": "markdown-preview",
"version": "0.159.12"
},
{
"name": "markdown-preview-plus",
"version": "2.4.10"
},
{
"name": "markdown-table-formatter",
"version": "2.9.0"
},
{
"name": "metrics",
"version": "1.2.5"
},
{
"name": "notifications",
"version": "0.67.2"
},
{
"name": "one-dark-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.4",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.4",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "pen-paper-coffee-syntax",
"version": "0.14.9",
"theme": "syntax"
},
{
"name": "preview-inline",
"version": "1.4.7"
},
{
"name": "project-manager",
"version": "3.3.5"
},
{
"name": "settings-view",
"version": "0.249.4"
},
{
"name": "snippets",
"version": "1.1.4"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.71.4"
},
{
"name": "status-bar",
"version": "1.8.11"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "symbols-view",
"version": "0.116.0"
},
{
"name": "sync-settings",
"version": "0.8.2"
},
{
"name": "tabs",
"version": "0.106.2"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "tree-view",
"version": "0.217.1"
},
{
"name": "typewriter",
"version": "0.7.0"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "welcome",
"version": "0.36.4"
},
{
"name": "whitespace",
"version": "0.36.2"
},
{
"name": "wordcount",
"version": "2.7.0"
},
{
"name": "wrap-guide",
"version": "0.40.2"
}
]
{
"Hydrogen": {
"kernelspec": "{\"kernelspecs\":{\"python3\":{\"resource_dir\":\"/Users/jonathanchambers/anaconda/lib/python3.5/site-packages/ipykernel/resources\",\"spec\":{\"display_name\":\"Python 3\",\"env\":{},\"language\":\"python\",\"argv\":[\"/Users/jonathanchambers/anaconda/bin/python\",\"-m\",\"ipykernel\",\"-f\",\"{connection_file}\"]}},\"xonsh\":{\"resource_dir\":\"/Users/jonathanchambers/anaconda/share/jupyter/kernels/xonsh\",\"spec\":{\"display_name\":\"Xonsh\",\"env\":{},\"language\":\"xonsh\",\"argv\":[\"/Users/jonathanchambers/anaconda/bin/python\",\"-m\",\"xonsh.jupyter_kernel\",\"-f\",\"{connection_file}\"]}}}}"
},
"MarkdownDocument": {
"enableAutoSave": "true",
"markdownScopes": [
"source.gfm",
"text.md",
"text.plain",
"text.plain.null-grammar"
]
},
"Zen": {
"width": 120
},
"atom-beautify": {
"general": {
"_analyticsUserId": "1b438231-b2d5-43ae-9605-72355947a7e7"
},
"json": {
"beautify_on_save": true
},
"markdown": {
"default_beautifier": "Remark",
"disabled": true
}
},
"atom-material-ui": {
"colors": {
"abaseColor": "#008b96",
"genAccent": true
}
},
"autocomplete-bibtex": {
"bibtex": [
"/Users/jonathanchambers/Documents/library.bib"
]
},
"autocomplete-plus": {
"builtinProviderBlacklist": ".source.gfm, .source.gfm .critic.gfm.comment, .critic.gfm.comment, .text.tex.latex, .text.restructuredtext",
"confirmCompletion": "enter",
"includeCompletionsFromAllBuffers": false
},
"autosave": {},
"build": {},
"core": {
"disabledPackages": [
"omnisharp-atom",
"markdown-preview",
"language-gfm",
"autocomplete-snippets",
"busy"
],
"telemetryConsent": "limited",
"themes": [
"one-light-ui",
"pen-paper-coffee-syntax"
]
},
"deprecated": {
"tool": {
"cargo": true,
"make": true,
"npmapm": true
}
},
"document-outline": {
"enable": true,
"maxHeadingDepth": 6
},
"editor": {
"fontFamily": "Source Code Pro",
"invisibles": {},
"preferredLineLength": 108,
"scrollPastEnd": true,
"softWrap": true,
"softWrapAtPreferredLineLength": true
},
"exception-reporting": {
"userId": "acf99f97-8971-9750-aba2-2092052d7a22"
},
"file-icons": {},
"linter": {
"disabledProviders": [
"write-good"
],
"subtleLinterErrors": [
"rust"
]
},
"linter-rust": {
"executablePath": "/usr/local/bin/rustc"
},
"linter-ui-default": {
"panelHeight": 69
},
"linter-write-good": {
"additionalArgs": "tooWordy=false adverb=false",
"severityLevel": "Warning"
},
"markdown-preview": {},
"markdown-preview-plus": {
"enableLatexRenderingByDefault": true,
"enablePandoc": true,
"liveUpdate": false,
"pandocArguments": [
"--filter pandoc-crossref"
],
"pandocBIBFileFallback": "/Users/jonathanchambers/Documents/library.bib",
"pandocMarkdownFlavor": "markdown+raw_tex+tex_math_single_backslash",
"pandocPath": "/Users/jonathanchambers/miniconda3/bin/pandoc",
"pandocRemoveReferences": false
},
"markdown-table-formatter": {
"markdownGrammarScopes": [
"source.gfm",
"text.md"
]
},
"markdown-writer": {
"relativeImagePath": true
},
"minimap": {},
"one-light-ui": {},
"preview-inline": {
"previewMode": "except-inline-math"
},
"racer": {
"racerBinPath": "/Users/jonathanchambers/scripts/racer/target/release/racer",
"rustSrcPath": "/Users/jonathanchambers/Code/rustc-1.0.0"
},
"spell-check": {
"grammars": [
"source.asciidoc",
"source.gfm",
"text.git-commit",
"text.plain",
"text.plain.null-grammar",
"text.md"
]
},
"status-bar": {},
"sync-settings": {
"syncKeymap": false
},
"tabs": {
"usePreviewTabs": true
},
"tasks": {
"attributeMarker": "#",
"baseMarker": "-"
},
"tree-view": {},
"typewriter": {
"scopes": "text.md,source.gfm,text.html.mediawiki,source.todo,text.restructuredtext,text.plain.null-grammar"
},
"welcome": {
"showOnStartup": false
},
"wordcount": {
"ignorecode": true
}
}
'.source.gfm':
'critic comment 1':
'prefix': '{>'
'body': '{>> $1 <<'
'critic comment 2':
'prefix': '{>>'
'body': '{>> $1 <<'
'image insert':
'prefix': '!['
'body': '![$2](../fig/$1){#fig:$1}'
'math block':
'prefix': '$$'
'body': '''$$
$1
$$
'''
'.text.md':
'critic comment 1':
'prefix': '{>'
'body': '{>> $1 <<'
'critic comment 2':
'prefix': '{>>'
'body': '{>> $1 <<'
'image insert':
'prefix': '!['
'body': '![$2](../fig/$1){#fig:$1}'
'math block':
'prefix': '$$'
'body': '''$$
$1
$$
'''
'.markup.math.block.pfm':
# https://github.com/SublimeText/LaTeXTools/blob/master/LaTeX%20math.sublime-completions
'align':
'prefix': 'align'
'body': '\\\\begin{align} $1 \\\\end{align}'
'cases':
'prefix': 'case'
'body': '\\\\begin{cases} $1 \\\\end{cases}'
'alpha':
'prefix': 'a'
'body': '\\\\alpha'
'beta':
'prefix': 'b'
'body': '\\\\beta'
'gamma':
'prefix': 'g'
'body': '\\\\gamma'
'delta':
'prefix': 'd'
'body': '\\\\delta'
'partial':
'prefix': 'delta'
'body': 'partial'
'epsilon':
'prefix': 'e'
'body': '\\\\epsilon'
'varepsilon':
'prefix': 'epsilon'
'body': 'varepsilon'
'epsilon':
'prefix': 'varepsilon'
'body': 'epsilon'
'zeta':
'prefix': 'z'
'body': '\\\\zeta'
'eta':
'prefix': 'h'
'body': '\\\\eta'
'theta':
'prefix': 'q'
'body': '\\\\theta'
'vartheta':
'prefix': '\\\\theta'
'body': '\\\\vartheta'
'theta':
'prefix': '\\\\vartheta'
'body': '\\\\theta'
'iota':
'prefix': 'i'
'body': '\\\\iota'
'kappa':
'prefix': 'k'
'body': '\\\\kappa'
'lambda':
'prefix': 'l'
'body': '\\\\lambda'
'mu':
'prefix': 'm'
'body': '\\\\mu'
'nu':
'prefix': 'n'
'body': '\\\\nu'
'xi':
'prefix': 'x'
'body': '\\\\xi'
'pi':
'prefix': 'p'
'body': '\\\\pi'
'rho':
'prefix': 'r'
'body': '\\\\rho'
'sigma':
'prefix': 's'
'body': '\\\\sigma'
'tau':
'prefix': 't'
'body': '\\\\tau'
'upsilon':
'prefix': 'u'
'body': '\\\\upsilon'
'phi':
'prefix': 'f'
'body': '\\\\phi'
'varphi':
'prefix': '\\\\phi'
'body': '\\\\varphi'
'phi':
'prefix': '\\\\varphi'
'body': '\\\\phi'
'chi':
'prefix': 'c'
'body': '\\\\chi'
'psi':
'prefix': 'y'
'body': '\\\\psi'
'omega':
'prefix': 'w'
'body': '\\\\omega'
'digamma':
'prefix': 'v'
'body': '\\\\digamma'
'Gamma':
'prefix': 'G'
'body': '\\\\Gamma'
'Delta':
'prefix': 'D'
'body': '\\\\Delta'
'Theta':
'prefix': 'Q'
'body': '\\\\Theta'
'Lambda':
'prefix': 'L'
'body': '\\\\Lambda'
'Xi':
'prefix': 'X'
'body': '\\\\Xi'
'Pi':
'prefix': 'P'
'body': '\\\\Pi'
'Sigma':
'prefix': 'S'
'body': '\\\\Sigma'
'Phi':
'prefix': 'F'
'body': '\\\\Phi'
'Psi':
'prefix': 'Y'
'body': '\\\\Psi'
'Omega':
'prefix': 'W'
'body': '\\\\Omega'
'emptyset':
'prefix': '0'
'body': '\\\\emptyset'
'forall':
'prefix': 'V'
'body': '\\\\forall'
'exists':
'prefix': 'E'
'body': '\\\\exists'
'setminus':
'prefix': 'sm'
'body': '\\\\setminus'
'ldots':
'prefix': 'ld'
'body': '\\\\ldots'
'cdot':
'prefix': 'cd'
'body': '\\\\cdot'
'cdots':
'prefix': 'cdot'
'body': 'cdots'
'cdot':
'prefix': 'cdots'
'body': 'cdot'
'langle':
'prefix': 'la'
'body': '\\\\langle'
'rangle':
'prefix': 'ra'
'body': '\\\\rangle'
'cup':
'prefix': 'cu'
'body': '\\\\cup'
'cap':
'prefix': 'ca'
'body': '\\\\cap'
'bigcup':
'prefix': 'bcu'
'body': '\\\\bigcup'
'bigcap':
'prefix': 'bca'
'body': '\\\\bigcap'
'int':
'prefix': 'in'
'body': '\\\\int'
'infty':
'prefix': 'int'
'body': 'infty'
'int':
'prefix': 'infty'
'body': 'int'
'sum':
'prefix': 'su'
'body': '\\\\sum'
'sup':
'prefix': 'sum'
'body': 'sup'
'succ':
'prefix': 'sup'
'body': 'succ'
'succeq':
'prefix': 'succ'
'body': 'succeq'
'succcurlyeq':
'prefix': 'succeq'
'body': 'succcurlyeq'
'sum':
'prefix': 'succcurlyeq'
'body': 'sum'
'quad':
'prefix': 'qd'
'body': '\\\\quad'
'qquad':
'prefix': 'qqd'
'body': '\\\\qquad'
'prod':
'prefix': 'pr'
'body': '\\\\prod'
'prec':
'prefix': 'prod'
'body': 'prec'
'preceq':
'prefix': 'prec'
'body': 'preceq'
'preccurlyeq':
'prefix': 'preceq'
'body': 'preccurlyeq'
'prod':
'prefix': 'preccurlyeq'
'body': 'prod'
'leftarrow':
'prefix': 'lar'
'body': '\\\\leftarrow'
'longleftarrow':
'prefix': 'leftarrow'
'body': 'longleftarrow'
'leftarrow':
'prefix': 'longleftarrow'
'body': 'leftarrow'
'Leftarrow':
'prefix': 'Lar'
'body': '\\\\Leftarrow'
'Longleftarrow':
'prefix': 'Leftarrow'
'body': 'Longleftarrow'
'Leftarrow':
'prefix': 'Longleftarrow'
'body': 'Leftarrow'
'rightarrow':
'prefix': 'rar'
'body': '\\\\rightarrow'
'longrightarrow':
'prefix': 'rightarrow'
'body': 'longrightarrow'
'rightarrow':
'prefix': 'longrightarrow'
'body': 'rightarrow'
'Rightarrow':
'prefix': 'Rar'
'body': '\\\\Rightarrow'
'Longrightarrow':
'prefix': 'Rightarrow'
'body': 'Longrightarrow'
'Rightarrow':
'prefix': 'Longrightarrow'
'body': 'Rightarrow'
'leftrightarrow':
'prefix': 'lr'
'body': '\\\\leftrightarrow'
'Leftrightarrow':
'prefix': 'Lr'
'body': '\\\\Leftrightarrow'
'Leftrightarrow':
'prefix': 'iff'
'body': '\\\\Leftrightarrow'
'Longleftrightarrow':
'prefix': 'Leftrightarrow'
'body': 'Longleftrightarrow'
'Leftrightarrow':
'prefix': 'Longleftrightarrow'
'body': 'Leftrightarrow'
'uparrow':
'prefix': 'up'
'body': '\\\\uparrow'
'downarrow':
'prefix': 'do'
'body': '\\\\downarrow'
'mathit':
'prefix': 'it'
'body': '\\\\mathit{$1}$0'
'mathbf':
'prefix': 'bf'
'body': '\\\\mathbf{$1}$0'
'mathbb':
'prefix': 'bb'
'body': '\\\\mathbb{$1}$0'
'mathrm':
'prefix': 'rm'
'body': '\\\\mathrm{$1}$0'
'mathsf':
'prefix': 'sf'
'body': '\\\\mathsf{$1}$0'
'mathcal':
'prefix': 'cal'
'body': '\\\\mathcal'
'mathcal':
'prefix': 'mathcal'
'body': 'mathcal{$1}$0'
'left( right)':
'prefix': 'lp'
'body': '\\\\left( $1 \\\\right) $0'
'left[ right]':
'prefix': 'lb'
'body': '\\\\left[ $1 \\\\right] $0'
'left{ right}':
'prefix': 'lbr'
'body': '\\\\left\\\\{ $0 \\\\right\\\\}'
# 'frac':
# 'prefix': 'fr'
# 'body': '\\\\frac'
'frac{}{}':
'prefix': 'fr'
'body': '\\\\frac{$1}{$2}$0'
'stackrel{}{}':
'prefix': 'stack'
'body': '\\\\stackrel{$1}{$2}$0'
'split env':
'prefix': 'sp'
'body': '\\\\begin{split}\n$0\n\\\\end{split}\n'
@import "ui-variables";
atom-text-editor,
atom-text-editor.editor {
.syntax--source.syntax--gfm,
.syntax--text.syntax--md,
{
.syntax--heading {
color: rgb(21, 144, 244);
font-family: Source Code Pro;
}
.syntax--heading.syntax--heading-1,
.syntax--heading-1 {
font-weight: 900;
font-size: @font-size * 1.3;
}
.syntax--heading.syntax--heading-2,
.syntax--heading-2 {
font-weight: 700;
}
.syntax--heading.syntax--heading-3,
.syntax--heading-3 {
font-weight: 600;
font-style: italic;
}
.syntax--heading.syntax--heading-4,
.syntax--heading-4 {
font-weight: 500;
font-style: italic ;
}
.strike {
text-decoration: line-through
}
.syntax--critic.syntax--comment,
.syntax--critic.syntax--gfm.syntax--comment,
.syntax--critic.syntax--gfm.comment.marker,
.syntax--comment.syntax--md
{
color: @background-color-error;
}
.syntax--table.syntax--gfm,
.syntax--table.syntax--storage {
font-family: Source Code Pro;
font-weight: bold;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment