Skip to content

Instantly share code, notes, and snippets.

@darcyclarke
Last active October 25, 2016 13:23
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 darcyclarke/f023694f6b26207ac7e30141763dc0c6 to your computer and use it in GitHub Desktop.
Save darcyclarke/f023694f6b26207ac7e30141763dc0c6 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 make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
# atom.workspaceView.eachEditorView (editorView) ->
# editor = editorView.getEditor()
# if path.extname(editor.getPath()) is '.md'
# editor.setSoftWrap(true)
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets 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:
#
# '.editor':
# 'enter': 'editor:newline'
#
# 'body':
# 'ctrl-P': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
[
{
"name": "about",
"version": "1.7.0"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-alignment",
"version": "0.12.1"
},
{
"name": "atom-beautify",
"version": "0.29.13"
},
{
"name": "atom-css-comb",
"version": "3.1.0"
},
{
"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-ternjs",
"version": "0.15.0"
},
{
"name": "atom-typescript",
"version": "10.1.9"
},
{
"name": "auto-detect-indentation",
"version": "1.3.0"
},
{
"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-plus",
"version": "2.31.1"
},
{
"name": "autocomplete-sass",
"version": "0.1.0"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autoprefixer",
"version": "3.3.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.42.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "color-picker",
"version": "2.2.2"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "csscomb",
"version": "0.3.1"
},
{
"name": "deprecation-cop",
"version": "0.54.1"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "dracula-theme",
"version": "1.2.8",
"theme": "syntax"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "exception-reporting",
"version": "0.40.0"
},
{
"name": "file-icons",
"version": "1.7.22"
},
{
"name": "find-and-replace",
"version": "0.201.1"
},
{
"name": "fuzzy-finder",
"version": "1.4.0"
},
{
"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.2"
},
{
"name": "hex",
"version": "0.6.2"
},
{
"name": "highlight-selected",
"version": "0.11.2"
},
{
"name": "image-view",
"version": "0.59.0"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "javascript-snippets",
"version": "1.2.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.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-stylus",
"version": "0.2.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-csslint",
"version": "1.3.3"
},
{
"name": "linter-jade",
"version": "0.3.2"
},
{
"name": "linter-js-standard",
"version": "3.4.1"
},
{
"name": "linter-sass-lint",
"version": "1.7.1"
},
{
"name": "markdown-preview",
"version": "0.158.0"
},
{
"name": "merge-conflicts",
"version": "1.4.4"
},
{
"name": "metrics",
"version": "1.0.0"
},
{
"name": "minimap",
"version": "4.25.6"
},
{
"name": "monokai-seti",
"version": "0.7.0",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.65.1"
},
{
"name": "one-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.6.0",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.6.0",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.0"
},
{
"name": "open-recent",
"version": "5.0.0"
},
{
"name": "package-generator",
"version": "1.0.0"
},
{
"name": "pigments",
"version": "0.37.0"
},
{
"name": "react",
"version": "0.16.1"
},
{
"name": "script",
"version": "3.10.1"
},
{
"name": "seti-icons",
"version": "1.3.4"
},
{
"name": "seti-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "seti-ui",
"version": "1.3.2",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.242.2-hotfix1"
},
{
"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.68.2"
},
{
"name": "status-bar",
"version": "1.4.1"
},
{
"name": "styleguide",
"version": "0.47.0"
},
{
"name": "symbols-view",
"version": "0.113.1"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "tabs",
"version": "0.101.0"
},
{
"name": "timecop",
"version": "0.33.2"
},
{
"name": "todo-show",
"version": "1.7.0"
},
{
"name": "tree-view",
"version": "0.209.3"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.35.1"
},
{
"name": "whitespace",
"version": "0.33.0"
},
{
"name": "wrap-guide",
"version": "0.38.2"
}
]
{
"core": {
"disabledPackages": [
"highlight-line",
"minimap-find-and-replace",
"minimap-highlight-selected",
"selection-highlight"
],
"telemetryConsent": "limited",
"themes": [
"one-dark-ui",
"dracula-theme"
]
},
"editor": {
"backUpBeforeSaving": true,
"fontSize": 16,
"invisibles": {},
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true
},
"exception-reporting": {
"userId": "18639111-82ce-60af-39a7-4a69c7a5d54b"
},
"linter-js-standard": {
"checkStyleDevDependencies": true,
"honorStyleSettings": true
},
"metrics": {
"userId": "f6cd9e1e4fc4c4e4eefcc06ee9b2dd4f276867c4"
},
"minimap": {
"plugins": {
"find-and-replace": true,
"highlight-selected": true
}
},
"release-notes": {
"viewedVersion": "0.73.0"
},
"seti-ui": {
"compactView": true,
"displayIgnored": false,
"fileIcons": false,
"themeColor": "Yellow"
},
"sync-settings": {},
"todo-show": {},
"welcome": {
"showOnStartup": false
}
}
# 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'
#
'.source.js':
'Default':
'prefix': 'start'
'body': """
//--------------------------------
// Setup
//--------------------------------
var gulp = require( 'gulp' );
var plugins = require( 'gulp-load-plugins' )();
//--------------------------------
// Defaults
//--------------------------------
gulp.task( 'default', [ 'styles', 'templates' ] );
//--------------------------------
// Styles Task
//--------------------------------
gulp.task( 'styles', function () {
gulp.src( './src/**/*.styl' )
.pipe( plugins.stylus() )
.pipe( plugins.rename( 'main.min.css' ) )
.pipe( gulp.dest( './www/assets/styles/' ) );
});
//--------------------------------
// Templates Task
//--------------------------------
gulp.task( 'templates', function () {
gulp.src( './src/**/*.jade' )
.pipe(plugins.jade( { pretty: true } ) )
.pipe( gulp.dest( './www/') );
});
//--------------------------------
// Watch Task
//--------------------------------
gulp.task( 'watch', function () {
gulp.watch( './src/**/*.styl', [ 'styles' ] );
gulp.watch( './src/**/*.jade', [ 'templates' ] );
});
"""
'.source.json':
'Default':
'prefix': 'start'
'body': """
{
"name": "",
"description": "",
"version": "0.0.1",
"homepage": "http://darcyclarke.me",
"author": "Darcy Clarke",
"main": "",
"engines": {
"node": "*"
},
"scripts": {},
"dependencies": {
"gulp": "*",
"gulp-concat": "*",
"gulp-if": "*",
"gulp-imagemin": "*",
"gulp-jade": "*",
"gulp-load-plugins": "*",
"gulp-rename": "*",
"gulp-stylus": "*",
"gulp-sass": "*",
"main-bower-files": "*",
"nib": "*"
},
"devDependencies": {},
"keywords": [],
"readmeFilename": "README.md",
"license": "BSD"
}
"""
'.source':
'Default':
'prefix': 'start'
'body': """
doctype
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
//[if gt IE 8]><!
html.no-js
//<![endif]
head
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
title!= title
meta(property="og:title", content=title)
meta(property="og:type", content="website")
meta(property="og:site_name", content=title)
meta(property="og:description", content=description)
meta(property="og:image", content="/assets/screenshot.jpg")
meta(property="og:locale", content="en_US")
meta(property="og:url", content=url)
meta(name="twitter:card", content="summary_large_image")
meta(name="twitter:image:src", content="/assets/screenshot.jpg")
meta(name="twitter:site", content=user)
meta(name="twitter:url", content=url)
meta(name="twitter:description", content=description)
meta(name="twitter:title", content=title)
meta(name="description", content=description)
meta(name="viewport", content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, minimal-ui")
link(rel="stylesheet", href="/assets/styles/main.min.css", type="text/css")
link(rel="icon", type="image/jpeg", href="/assets/images/favicon.jpg")
link(rel="apple-touch-icon", type="image/jpeg", href="/assets/images/favicon.jpg")
//if IE
link(rel="shortcut icon", href="/assets/images/favicon.ico")
"""
'.source.sass':
'Default':
'prefix': 'in'
'body': """
//--------------------------------
// Variables
//--------------------------------
// Base Colors
$baseColor = #282828
$bgColor = #ffffff
$accentColor = #ffd200
$borderColor = lighten($baseColor, 90%)
// Base Fonts
$baseFontSize = 16px
$baseLineHeight = 200%
$baseFontFamily = Helvetica, sans-serif
$secondaryFontFamily = 'Helvetica Neue', sans-serif
//--------------------------------
// Mixins
//--------------------------------
// Rem Mixin
rem($property, $value)
{$property}: $value
{$property}: unit(($value / $baseFontSize), 'rem')
// Relative Font-Sizing
font-size($v)
rem('font-size', $v)
// Relative Line-Height
line-height($v)
if unit($v) is 'px'
rem('line-height', $v)
else
line-height: $v
// Relative Letter-Spacing
letter-spacing($v)
rem('letter-spacing', $v)
//--------------------------------
// Reset & Base
//--------------------------------
*, *:before, *:after
box-sizing: inherit
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, del, dfn, em, img,
ins, kbd, q, s, samp, small, strike, strong,
sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video
margin: 0
padding: 0
border: 0
vertical-align: baseline
position: relative
article, aside, details, figcaption,
figure, footer, header, hgroup,
main, nav, section, summary
display: block
audio, canvas, video
display: inline-block
html, body
background: $bgColor
color: $baseColor
font-family: $baseFontFamily
font-size: $baseFontSize
line-height: $baseLineHeight
padding: 0
margin: 0
-webkit-font-smoothing: antialiased
font-smoothing: antialiased
text-size-adjust: 100%
box-sizing: border-box
.ir
font: 0/0 a
text-shadow: none
color: transparent
.cf:before
.cf:after
content: ' '
display: table
.cf:after
clear: both
.cf
*zoom: 1
"""
/*
* 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
*/
.tree-view {
}
.editor {
}
.editor .cursor {
}
atom-workspace:not(.seti-icons) atom-panel-container .entries.list-tree .file.entry.list-item.selected::before {
height: 30px;
}
atom-workspace .entries.list-tree .file .icon::before {
top: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment