Skip to content

Instantly share code, notes, and snippets.

@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/
@brettz9
brettz9 / styles.less
Last active April 26, 2023 21:06
Atom stylesheet
/*
* 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
*/
@brettz9
brettz9 / ctags definitions for Javascript
Last active October 26, 2015 23:04 — forked from tim-smart/ctags definitions for Javascript
CTags Definitions for Javascript
--langdef=JavaScript
--langmap=JavaScript:.js
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*\{/\5/,object/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*(\[|(new[ \t]+)?Array\()/\5/,array/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*[^"]'[^']*/\5/,string/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*(true|false)/\5/,boolean/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*[0-9]+/\5/,number/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))[ \t]*([A-Za-z_$][A-Za-z0-9_$.]*)[ \t]*=[ \t]*null/\5/,null/
--regex-JavaScript=/(,|(;|^)[ \t]*(var|let|const|([A-Za-z_$][A-Za-z0-9_$.]*\.)+))
@brettz9
brettz9 / snippets.cson
Last active April 12, 2022 23:33
Atom snippets file
# 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:
#
@brettz9
brettz9 / atom-events
Created October 25, 2015 00:17 — forked from ardcore/atom-events
atom.io events
application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
@brettz9
brettz9 / config.cson
Last active April 5, 2022 06:04
My current Atom config
"*":
Hydrogen:
debug: true
kernelNotifications: true
"atom-easy-jsdoc":
beta: true
useReturns: true
"atom-ide-datatip": {}
"atom-ide-outline":
initialDisplay: false