Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View cliffordfajardo's full-sized avatar
🏠
Working from home

Clifford Fajardo cliffordfajardo

🏠
Working from home
View GitHub Profile
@cliffordfajardo
cliffordfajardo / .jshintrc.js
Created November 13, 2015 18:58 — forked from connor/.jshintrc.js
jshintrc example
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
@cliffordfajardo
cliffordfajardo / gist:98e7fac159770a310489
Created December 30, 2015 11:37 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@cliffordfajardo
cliffordfajardo / .editorconfig
Created January 4, 2016 12:24
My editor config file
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
@cliffordfajardo
cliffordfajardo / .gitignore
Created January 4, 2016 12:25
My gitignore file
### node etc ###
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
@cliffordfajardo
cliffordfajardo / .jshintrc
Created January 4, 2016 12:25
my jshintrc config file
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": true,
@cliffordfajardo
cliffordfajardo / .bash_profile
Last active January 26, 2016 21:10
My bash/zshrc profile
# START of ALIASES --------------------------------------------------
alias zshconfig="mate ~/.zshrc"
alias lsa="ls -la"
alias nfiles='echo $(ls -1 | wc -l)'
# Git Aliases
alias gitaa="git add ."
alias cm="git commit"
alias gs="git status"
// Make strings safe for innerHTML and attribute insertion (templates):
var escapeHTML = (function() {
var entityMap = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;'
},
re = /[&<>"']/g;
@cliffordfajardo
cliffordfajardo / .jshintrc
Created January 24, 2016 19:05
My jshintrc file
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
@cliffordfajardo
cliffordfajardo / .editorconfig
Created January 24, 2016 19:08
My editor config
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
@cliffordfajardo
cliffordfajardo / .gitignore
Created January 24, 2016 19:10
My gitignore file
### node etc ###
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed