Skip to content

Instantly share code, notes, and snippets.

@DanielAndreasen
Last active September 22, 2017 14:25
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 DanielAndreasen/55fc43e64d600e100b3bb9bf727a242e to your computer and use it in GitHub Desktop.
Save DanielAndreasen/55fc43e64d600e100b3bb9bf727a242e 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.
#
# 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:
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'atom-text-editor':
'ctrl-b': 'editor:toggle-line-comments'
'ctrl-d': 'git-diff-details:toggle-git-diff-details'
'alt-f': 'fold-functions:fold'
'f5': 'linter:toggle-active-editor'
'atom-workspace':
'alt-n': 'spotify-remote:next'
'alt-p': 'spotify-remote:previous'
'ctrl-alt-space': 'spotify-remote:toggle'
'ctrl-alt-t': 'git-time-machine:toggle'
'alt-g alt-d': 'split-diff:toggle'
'.platform-linux atom-text-editor':
'ctrl-space': 'spell-check:correct-misspelling'
'body':
'ctrl-tab': 'pane:show-next-item'
'ctrl-tab ^ctrl': 'unset!'
'ctrl-shift-tab': 'pane:show-previous-item'
'ctrl-shift-tab ^ctrl': 'unset!'
[
{
"name": "Chromodynamics",
"version": "0.0.11",
"theme": "syntax"
},
{
"name": "about",
"version": "1.7.6"
},
{
"name": "accents-ui",
"version": "1.3.0",
"theme": "ui"
},
{
"name": "an-old-hope-syntax",
"version": "1.0.4",
"theme": "syntax"
},
{
"name": "archive-view",
"version": "0.63.3"
},
{
"name": "atom-beautify",
"version": "0.30.5"
},
{
"name": "atom-bootstrap3",
"version": "1.2.12"
},
{
"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-ui",
"version": "2.0.4",
"theme": "ui"
},
{
"name": "atom-pair",
"version": "2.0.13"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.2"
},
{
"name": "autocomplete-css",
"version": "0.17.2"
},
{
"name": "autocomplete-html",
"version": "0.8.0"
},
{
"name": "autocomplete-plus",
"version": "2.35.7"
},
{
"name": "autocomplete-python",
"version": "1.10.3"
},
{
"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.1"
},
{
"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.87.3"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "color-picker",
"version": "2.2.5"
},
{
"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": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.23.4"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "file-icons",
"version": "2.1.12"
},
{
"name": "find-and-replace",
"version": "0.209.5"
},
{
"name": "fold-functions",
"version": "0.5.0"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "genesis-ui",
"version": "0.5.0",
"theme": "ui"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "git-plus",
"version": "7.9.3"
},
{
"name": "github",
"version": "0.4.0"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "gruvbox",
"version": "1.0.7",
"theme": "syntax"
},
{
"name": "highlight-selected",
"version": "0.13.1"
},
{
"name": "image-view",
"version": "0.62.3"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "kite",
"version": "0.44.0"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.4"
},
{
"name": "language-coffee-script",
"version": "0.48.9"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.4"
},
{
"name": "language-gfm",
"version": "0.90.0"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.2"
},
{
"name": "language-html",
"version": "0.47.3"
},
{
"name": "language-hyperlink",
"version": "0.16.2"
},
{
"name": "language-java",
"version": "0.27.2"
},
{
"name": "language-javascript",
"version": "0.127.1"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-latex",
"version": "1.1.1"
},
{
"name": "language-less",
"version": "0.33.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"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.41.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.4"
},
{
"name": "language-ruby",
"version": "0.71.3"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-sass",
"version": "0.61.0"
},
{
"name": "language-shellscript",
"version": "0.25.2"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.8"
},
{
"name": "language-text",
"version": "0.7.3"
},
{
"name": "language-todo",
"version": "0.29.2"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.30.1"
},
{
"name": "latexer",
"version": "0.3.0"
},
{
"name": "line-ending-selector",
"version": "0.7.3"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-spell",
"version": "0.15.0"
},
{
"name": "linter-spell-latex",
"version": "0.10.0"
},
{
"name": "linter-ui-default",
"version": "1.6.10"
},
{
"name": "linter-write-good",
"version": "0.9.0"
},
{
"name": "markdown-preview",
"version": "0.159.13"
},
{
"name": "markdown-preview-plus",
"version": "2.4.10"
},
{
"name": "merge-conflicts",
"version": "1.4.5"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "minimap",
"version": "4.29.7"
},
{
"name": "minimap-git-diff",
"version": "4.3.1"
},
{
"name": "minimap-highlight-selected",
"version": "4.6.1"
},
{
"name": "multi-cursor",
"version": "2.1.5"
},
{
"name": "notifications",
"version": "0.69.0"
},
{
"name": "one-dark-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.6",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.6",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "pdf-view",
"version": "0.59.0"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "remote-edit",
"version": "1.9.0"
},
{
"name": "seti-ui",
"version": "1.9.0",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.251.5"
},
{
"name": "single-click-open",
"version": "0.2.2"
},
{
"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.72.1"
},
{
"name": "split-diff",
"version": "1.5.1"
},
{
"name": "spotify-remote",
"version": "1.0.2"
},
{
"name": "status-bar",
"version": "1.8.11"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "symbols-view",
"version": "0.117.0"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.107.1"
},
{
"name": "tabs-to-spaces",
"version": "1.0.3"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "tree-view",
"version": "0.217.7"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "welcome",
"version": "0.36.5"
},
{
"name": "whitespace",
"version": "0.37.2"
},
{
"name": "wrap-guide",
"version": "0.40.2"
}
]
{
"Zen": {
"minimap": true,
"showWordCount": "Right",
"typewriter": true,
"width": 150
},
"accents-ui": {
"accentColor": "#009688",
"fontSize": 10,
"hexColor": "#009688"
},
"activate-power-mode": {
"screenShake": {
"maxIntensity": 10,
"minIntensity": 3
}
},
"atom-autocomplete-php": {
"binComposer": "/usr/bin/composer",
"binPhp": "/usr/bin/php"
},
"atom-beautify": {
"general": {
"_analyticsUserId": "090998b9-d64b-4ca0-bb1a-dc36421dc0b4"
}
},
"atom-css-comb": {
"readyMadeConfigs": "csscomb"
},
"atom-material-ui": {
"colors": {
"paintCursor": true
},
"tabs": {
"compactTabs": true
},
"ui": {
"panelContrast": true
}
},
"autocomplete-plus": {
"backspaceTriggersAutocomplete": true
},
"autocomplete-python": {
"extraPaths": "/home/daniel/Documents/Uni/phdproject/programs/astro_scripts",
"showDescriptions": false,
"useKite": false,
"useSnippets": "all"
},
"autohide-tree-view": {
"pushEditor": true
},
"core": {
"audioBeep": false,
"autoHideMenuBar": true,
"disabledPackages": [
"bookmarks",
"linter-pylint",
"welcome",
"about",
"autosave",
"background-tips",
"go-to-line",
"link",
"open-on-github",
"atom-pair",
"spell-check",
"encoding-selector",
"fuzzy-finder",
"archive-view",
"language-clojure",
"language-csharp",
"language-go",
"language-java",
"language-mustache",
"language-objective-c",
"language-perl",
"language-property-list",
"language-ruby",
"language-ruby-on-rails",
"language-xml",
"language-toml",
"line-ending-selector",
"package-generator",
"styleguide",
"symbols-view",
"kite",
"atom-bootstrap3",
"color-picker",
"autocomplete-python",
"remote-edit",
"image-view",
"language-less",
"language-php",
"language-sass",
"markdown-preview"
],
"excludeVcsIgnoredPaths": false,
"ignoredNames": [
"*.pyc",
"*.png",
"*.avi",
"*.fits",
"*.o",
"*.bbl",
"*.aux",
"*.blg",
"*.fls",
".git",
"*.obj",
"*llt",
"*.fdb_latexmk",
"*.lof",
"*.lot",
"*.toc",
"venv",
"__pycache__"
],
"packagesWithKeymapsDisabled": [
"git-time-machine",
"autocomplete-python",
"spell-check",
"spotify-remote",
"git-diff"
],
"telemetryConsent": "limited",
"themes": [
"accents-ui",
"gruvbox"
],
"warnOnLargeFileLimit": 2
},
"editor": {
"autoIndent": false,
"backUpBeforeSaving": true,
"fontFamily": "mononoki",
"fontSize": 17,
"lineHeight": 1.25,
"scrollPastEnd": true,
"scrollSensitivity": 80,
"softTabs": false
},
"exception-reporting": {
"userId": "1b54f0d0-60e4-3c38-4ab8-7ba139bc58cb"
},
"file-icons": {
"forceShow": true
},
"fold-functions": {
"autofoldIgnoreGrammars": [
"python"
]
},
"git-diff": {
"showIconsInEditorGutter": true
},
"git-diff-details": {
"closeAfterCopy": true,
"keepViewToggled": false
},
"git-plus": {
"general": {
"_analyticsUserId": "004311a8-1fdf-4f21-9db5-70fb646eb17c"
}
},
"github": {
"viewChangesForCurrentFileDiffPaneSplitDirection": "down"
},
"highlight-selected": {
"highlightBackground": true,
"highlightInPanes": false,
"lightTheme": true
},
"kite": {
"showKiteTourOnStatup": false
},
"latexer": {
"parameters_to_search_citations_by": [
"author",
"title"
]
},
"linter": {
"ignoreGlob": "**/*.bib",
"lintOnOpen": false
},
"linter-alex": {
"scopes": [
"source.asciidoc",
"source.gfm",
"source.pfm",
"text.git-commit",
"text.plain",
"text.plain.null-grammar",
"text.tex.latex"
]
},
"linter-chktex": {
"showId": true
},
"linter-flake8": {
"executableDir": "/home/daniel/Software/anaconda3/bin/",
"ignoreErrorCodes": [
"E501",
"D400",
"E226",
"D100"
],
"maxComplexity": 20
},
"linter-pylint": {
"executable": "/home/daniel/Software/anaconda3/bin/pylint",
"rcFile": "/home/daniel/.pylintrc"
},
"linter-python-pep8": {
"executableDir": "/usr/local/bin/"
},
"linter-spell": {
"defaultLanguages": [
"en-gb"
],
"markdownWords": [
"!FASMA",
"tellurics",
"!Marcs",
"loggf",
"!Kurucz",
"!HD",
"bokeh",
"vsini"
],
"personalDictionaryPath": "/home/daniel/.personalDictionary",
"plainTextWords": [
"asteroseismology"
],
"spellPath": "/usr/bin/aspell"
},
"linter-spell-latex": {
"words": [
"htb",
"lrrrr",
"pdf",
"tpb",
"lllll",
"!ArcturusParams",
"syntheticfit",
"documentclass",
"aa",
"!ApJ",
"!ApJS",
"!ApJL",
"!MNRAS",
"!AJ",
"!Lett",
"bothspectra",
"ewcomp",
"metallicity",
"spectrographs",
"!NIR",
"!FGK",
"!LTE",
"characterise",
"exoplanet",
"lightcurve",
"!Interferometry",
"asteroseismology",
"bolometric",
"subgiant",
"priori",
"!IRFM",
"!EW",
"!GIANO",
"spectrograph",
"!TNG",
"!IRD",
"!Silla",
"!ESO",
"!NIRPS",
"!CFHT",
"!Spectropolarimeter",
"!InfraRed",
"!SpectroPolarimètre",
"!CRIRES",
"!CRyogenic",
"!InfraRed",
"!Echelle",
"!Calar",
"!CARMENES",
"!iShell",
"!Exoearths",
"analyse",
"!FTS",
"!Mayall",
"!Kitt",
"!HD",
"!YJHK",
"tellurics",
"!YJ",
"summarise",
"!IRAF",
"splot",
"htpb",
"outliers",
"!GAIA",
"!EWs",
"!FASMA",
"outlier",
"iteratively",
"!Simbad",
"microturbulence",
"dex",
"errorbar",
"errorbars",
"!LeoParams",
"!SIMBAD",
"!CDS",
"!FCT",
"!FEDER",
"!POPH",
"!FSE",
"amidst",
"asteroseismic",
"!FG",
"photometry",
"!eV",
"!McWilliam",
"!Tsantaki",
"!Andreasen",
"priv",
"!EP",
"!Gaia",
"isochrones",
"hydrostatic",
"radiative",
"macroturbulence",
"!Boltzmann's",
"!Balmer",
"!ewTheoretical",
"!ewGravity",
"!RW",
"!FGKM",
"!Saha",
"!Heisenberg's",
"!Planck's",
"!energyLevels",
"!MARCS",
"pre",
"ngstr",
"th",
"!ewTeff",
"!VALD",
"!SME",
"vt",
"deblending",
"!Gaussian's",
"rejt",
"autofixvt",
"ionize",
"ionization",
"!Bohr's",
"minimizing",
"minimized",
"ionized",
"multi",
"hyperfine",
"minimization",
"!Zeeman",
"!Thaagaard",
"!Linnea",
"!Henriette",
"exoplanets",
"scipy",
"griddata",
"!Gaussians",
"!SED",
"!Paschen",
"!CoRoT",
"photometric",
"!Mena",
"!Mucciarelli",
"!Lebzelter",
"rotator",
"!APOKASC",
"!Instituto",
"!Departamento",
"!Osservatorio",
"astronomia",
"universidade",
"universita",
"!Astronomico",
"!INAF",
"!Dipartimento",
"!Rua",
"!Campo",
"!Alegre",
"de",
"!Astrof",
"isica",
"!CAUP",
"das",
"!Estrelas",
"!Faculdade",
"!Espa",
"encias",
"di",
"urkenschanzstrasse",
"degli",
"!Ranzani",
"!Berti",
"!Pichat",
"!Fisica",
"!Studi",
"!Viale",
"!Telescopio",
"!Nazionale",
"!Échelle",
"!VLT",
"!SPIRou",
"un",
"lllllll",
"!Jos",
"!POCI",
"!Tecnologia",
"encia",
"!PTDC",
"!FIS",
"!Funda",
"!AST",
"!Investigador",
"!UID",
"!Programa",
"!Operacional",
"ao",
"!Factores",
"!Competitividade",
"!JJN",
"!CP",
"!BD",
"cclrr",
"llll",
"metallicities",
"cclrrr",
"cclrrrrr",
"!Kurucz",
"!FWHM",
"synth",
"overplotting",
"!CCF",
"!CCFs",
"!EPs",
"!UVES",
"!FIES",
"!ESPaDOnS",
"!giantPopulation",
"jupiters",
"teff",
"arcturus",
"loggf",
"!commonEWS",
"!Scuti",
"!visualSelection",
"lrl",
"!radiusVSradius",
"omi",
"!UMa",
"!Serpentis",
"ome",
"!Ser",
"!CORALIE",
"!NLTE",
"!HET",
"!NAOJ",
"!GJ",
"!KELT",
"lrrr",
"!FEROS",
"smoothes",
"nm",
"eu",
"astro",
"!Cerro",
"!Paranal",
"!Roque",
"los",
"!Muchachos",
"!AQ",
"bo",
"extrasolar",
"astrometry",
"microlensing",
"!transitMethod",
"!RVmethod",
"albedo",
"!TTV",
"microlens",
"!JWST",
"!exoplanetMass",
"photosphere",
"!Sérgio",
"!Vardan",
"!Mahmoud",
"!Guilherme",
"!Giancarlo",
"!Andressa",
"!Solène",
"!Vardan's",
"!João",
"!GTO",
"biosignatures",
"extremophiles",
"exoplanet's",
"occultation",
"!Earthshine",
"!exoplanetDetectionType",
"!opticalVSnir",
"planetesimals",
"scikit",
"!LinearRegression",
"exoplaneotology",
"exoplanetology",
"!Spanos",
"teffrange",
"!FASMAtest",
"!vtRelation",
"gf",
"!NIRspectra",
"gravities",
"!Kolmogorov",
"!Smirnov",
"!fehGiants",
"exoplanetary"
]
},
"linter-ui-default": {
"decorateOnTreeView": "None",
"panelHeight": 161,
"showPanel": true
},
"linter-write-good": {
"severityLevel": "Info"
},
"markdown-preview-plus": {
"enableLatexRenderingByDefault": true,
"useGitHubStyle": true
},
"minimap": {
"absoluteMode": true,
"adjustMinimapWidthToSoftWrap": false,
"minimapScrollIndicator": false,
"plugins": {
"codeglance": false,
"codeglanceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0
},
"scrollAnimation": true
},
"pigments": {
"mergeColorDuplicates": true,
"sortPaletteColors": "by color"
},
"python-indent": {
"hangingIndentTabs": 2
},
"relative-numbers": {
"startAtOne": true
},
"remote-edit": {
"filterHostsUsing": {
"port": true,
"username": true
},
"notifications": false,
"showHiddenFiles": true
},
"seti-ui": {
"compactView": true,
"fileIcons": false,
"themeColor": "Orange"
},
"spell-check": {
"addKnownWords": true,
"grammars": [
"source.gfm",
"text.git-commit",
"text.plain",
"text.tex.latex"
],
"knownWords": [
"exoplanet",
"exoplanets",
"errorbar",
"errorbars",
"NIR",
"metallicity",
"spectrographs",
"LTE",
"asteroseismology",
"lightcurve",
"IRFM",
"bolometric",
"subgiant",
"EW",
"EWs",
"telluric",
"tellurics",
"IRAF",
"FASMA",
"splot",
"outlier",
"microturbulence",
"Simbad",
"dex"
],
"locales": [
"en-US"
]
},
"split-diff": {
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"syncHorizontalScroll": true
},
"spotify-linux": {
"position": "left",
"songFormat": "%c %p %a - %t"
},
"sync-settings": {
"quietUpdateCheck": true
},
"tablr": {
"csvEditor": {
"header": true,
"maximumRowsInPreview": 10,
"skipEmptyLines": true,
"trim": "both"
},
"tableEditor": {
"scrollPastEnd": true
}
},
"tabs-to-spaces": {
"onSave": "untabify"
},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true,
"showOnRightSide": true,
"squashDirectoryNames": true
},
"welcome": {
"showOnStartup": false
},
"wordcount": {
"alwaysOn": true,
"extensions": [
"md",
"markdown",
"readme",
"txt",
"rst",
"adoc",
"log",
"msg",
"tex"
],
"hidechars": true,
"ignorecode": true
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.source.python':
'def with doc':
'prefix': 'def'
'body': """
def ${1:fname}(${2:args}):
\"\"\"${3:doc string}
Input
-----
${2:args} : ${5:type}
Output
------
${4:output} : ${6:type}
\"\"\"
return ${4:output}
"""
'template':
'prefix': 'template'
'body': """
from __future__ import division
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['xtick.direction'] = 'in'
plt.rcParams['ytick.direction'] = 'in'
plt.rcParams['axes.spines.right'] = False
plt.rcParams['axes.spines.top'] = False
plt.rcParams['axes.linewidth'] = 2
plt.rcParams['xtick.major.width'] = 2
plt.rcParams['ytick.major.width'] = 2
if __name__ == '__main__':
${1:pass}
"""
'ifmain':
'prefix': 'ifmain'
'body': """
if __name__ == '__main__':
${1:pass}"""
'self':
'prefix': 'self'
'body': """
self.${1:arg} = ${1:arg}"""
'for loop':
'prefix': 'for'
'body': """
for ${1:item} in ${2:iterable}:
${3:pass}"""
'elif':
'prefix': 'elif'
'body': """
elif ${1:condition}:
${2:pass}"""
'with container':
'prefix': 'with'
'body': """
with open(${1:fname}, '${2:r}') as ${3:f}:
${4:pass}"""
'try/except':
'prefix': 'try'
'body': """
try:
${1:pass}
except ${2:Error}:
raise ${3:Error}('${4:message}')"""
'from ... import ...':
'prefix': 'from'
'body': 'from ${1:module} import ${2:function}'
'import ... as ...':
'prefix': 'import'
'body': 'import ${1:module} as ${2:short name}'
'while condition':
'prefix': 'while'
'body': """
while ${1:condition}:
${2:pass}"""
'.text.tex.latex':
'Effective temperature':
'prefix': 'Teff'
'body': '$T_\\\\mathrm{eff}$'
'logg':
'prefix': 'logg'
'body': '$\\\\log g$'
'Micro turbulence':
'prefix': 'vt'
'body': '$\\\\xi_\\\\mathrm{micro}$'
'[Fe/H]':
'prefix': 'feh'
'body': '$[\\\\ion{Fe}/\\\\ion{H}]$'
'FeI':
'prefix': 'FeI'
'body': '\\\\ion{Fe}{I}'
'FeII':
'prefix': 'FeII'
'body': '\\\\ion{Fe}{II}'
'loggf':
'prefix': 'loggf'
'body': '$\\\\log \\\\mathit{gf}$'
'atmospheric stellar parameters':
'prefix': 'atm'
'body': 'stellar atmospheric parameters'
'atmospheric stellar parameters':
'prefix': 'stellar'
'body': 'stellar atmospheric parameters'
'SWEET-Cat':
'prefix': 'SWEET-Cat'
'body': 'SWEET-Cat'
'Figure env':
'prefix': 'fig'
'body': """
\\\\begin{figure}[htpb!]
\\\\centering
\\\\includegraphics[width=1.0\\\\linewidth]{figures/${1:figure}.pdf}
\\\\caption{${2:caption}}
\\\\label{fig:${3:label}}
\\\\end{figure}"""
'Table env':
'prefix': 'tab'
'body': """
\\\\begin{table}[htb!]
\\\\caption{${1:Caption}}
\\\\label{tab:${2:label}}
\\\\centering
\\\\begin{tabular}{${3:columns}}
\\\\hline\\\\hline
${4:header}
\\\\hline
${5:first line}
\\\\hline
\\\\end{tabular}
\\\\end{table}"""
/*
* 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
*/
// style the background color of the tree view
// .tree-view {
// background-color: smokeygreen;
// }
// 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.editro .cursor {
// border-color: red;
// }
atom-text-editor:not(.mini).editor .cursor {
opacity: 1;
}
atom-text-editor:not(.mini).editor .blink-off .cursor {
opacity: 0;
}
// atom-text-editor {
// &[data-grammar~=latex].editor {
// .lines {
// min-width: 1300px;
// max-width: 1300px;
// margin-left: 100px;
// margin-right: auto;
// }
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment