Skip to content

Instantly share code, notes, and snippets.

@brettz9
brettz9 / command-toolbar.json
Last active April 11, 2016 20:57
Backup of command-toolbar buttons ( %userprofile%/.atom/command-toolbar.json )
{"statePath":"C:\\Users\\brett\\.atom/command-toolbar.json","opened":true,"side":"top","buttons":[["packages","settings-view:view-installed-packages"],["install","settings-view:install-packages-and-themes"],["config","file://C:\\Users\\brett\\.atom\\config.cson"],["styles","file://C:\\Users\\brett\\.atom\\styles.less"],["keymap","file://C:\\Users\\brett\\.atom\\keymap.cson"],["toolbar","file://C:\\Users\\brett\\.atom\\command-toolbar.json"],["snippets","file://C:\\Users\\brett\\.atom\\snippets.cson"],["insert snippet","snippets:available"],["palette","command-palette:toggle"],["git-control","git-control:toggle"],["git-history","git-history:show-file-history"],["npm-scripts","os:npm scripts"],["reveal","os:explorer"],["cmd","os:cmd"],["browser","web-browser:toggle"],["symbols","symbols-tree-view:toggle"],["md-preview","markdown-preview:toggle"],["md-heading","markdown-folder:toggle"]]}
@brettz9
brettz9 / init.coffee
Created March 29, 2016 02:29
Just making a place for my Atom init script
# 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 ->
@brettz9
brettz9 / keymap.cson
Last active December 13, 2022 06:52
Keymap.cson config for Atom
# 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.
#
@brettz9
brettz9 / package-list.txt
Last active March 29, 2021 13:43
Atom (and starred) package list generated by `apm list --bare > package-list.txt` adapted from instructions at https://discuss.atom.io/t/installed-packages-list-into-single-file/12227/2 (I removed the --installed flag to be safe though the list with the flag is in the first comment below; also note that after some installs, they didn't show up i…
atom-dark-syntax@0.29.1
atom-dark-ui@0.53.3
atom-light-syntax@0.29.1
atom-light-ui@0.46.3
base16-tomorrow-dark-theme@1.6.0
base16-tomorrow-light-theme@1.6.0
one-dark-ui@1.12.5
one-light-ui@1.12.5
one-dark-syntax@1.8.4
one-light-syntax@1.8.4
@brettz9
brettz9 / jsonschema.json
Created March 19, 2016 09:34
Sample JSON Schema segment for i18n proposal
{
"localePaths": [
{"#/locales": {
"allowedKeywords": ["title", "enum-titles", "default"]
}},
{"#/localePatterns": {
"order": "l-p-k",
"allowedKeywords": ["pattern"]
}}
],
@brettz9
brettz9 / .gitconfig
Last active February 27, 2023 09:44
Gitconfig which adds tools for Git GUI (Rebase, Revert, Stash, Tagging/Describe, (Arbitrary) command/git command, npm view, npm run, Git config, open file (and open this gist); Status for the fun of it)
[user]
name = Brett Zamir
email = brettz9@yahoo.com
[gui]
[gui]
encoding = utf-8
recentrepo = C:/wamp/www/_servers/me-pedia.org/me-pedia.org/extensions/intersection
recentrepo = C:/wamp/www/json-schema-spec
recentrepo = C:/wamp/www/file-type-icons
recentrepo = C:/wamp/www/symbols-tree-view
@brettz9
brettz9 / PropertyEnumerator.js
Created January 11, 2016 21:37
Property utilities
(function () {
// Dependencies: Object.keys, Object.getOwnPropertyNames, Object.hasOwnProperty
/**
// Obtaining Keys/Properties as Array
Object.keys: direct enumerable
getOwnPropertyNames: direct enumerable and nonenumerable
?: direct nonenumerable
@brettz9
brettz9 / nodeunit.js
Last active February 21, 2016 21:25
Moved to https://github.com/brettz9/nodeunit (and avoided hard-coding with configurable options); My own nodeunit copy: Make individual results show, put in textarea so it will wrap, and move click listener so one can click safely on textarea
/*!
* Nodeunit
* https://github.com/caolan/nodeunit
* Copyright (c) 2010 Caolan McMahon
* MIT Licensed
*
* json2.js
* http://www.JSON.org/json2.js
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
@brettz9
brettz9 / .jscsrc
Last active November 2, 2015 22:22
Atom .jscsrc (no "jsDoc" object since can't load plugins apparently in Atom jscs linter)
{
"plugins": [],
"additionalRules": [],
"preset": "jquery",
"excludeFiles": [],
"fileExtensions": [],
"extract": [],
"maxErrors": null,
@brettz9
brettz9 / .ctags
Last active October 29, 2015 16:38
Atom ctags
--langdef=CoffeeScript
--langmap=CoffeeScript:.coffee
--regex-CoffeeScript=/^[ \t]*(@?[a-zA-Z$_\.0-9]+)[ \t]*=[ \t]*.*/\1/v,variable/
--regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z_][A-Za-z0-9_]+\.)*([A-Za-z_][A-Za-z0-9_]+)( extends ([A-Za-z][A-Za-z0-9_.]*)+)?$/\3/c,class/
--regex-CoffeeScript=/^[ \t]*(module\.)?(exports\.)?@?(([A-Za-z][A-Za-z0-9_.]*)+):.*[-=]>.*$/\3/m,method/
--regex-CoffeeScript=/^[ \t]*(module\.)?(exports\.)?(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=.*[-=]>.*$/\3/f,function/
--regex-CoffeeScript=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=[^->\n]*$/\1/f,field/
--regex-CoffeeScript=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,static field/
--regex-CoffeeScript=/^[ \t]*(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,field/