Skip to content

Instantly share code, notes, and snippets.

Avatar
☀️
Enjoying SoCal "Fall"

Jimmy Wilson jimmynotjim

☀️
Enjoying SoCal "Fall"
View GitHub Profile
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active Oct 27, 2021
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
View ultimate-ut-cheat-sheet.md
View osx_setup.md

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@gre
gre / easing.js
Last active Oct 25, 2021
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity
@bomberstudios
bomberstudios / sketch-plugins.md
Last active Oct 17, 2021
A list of Sketch plugins hosted at GitHub, in no particular order.
View sketch-plugins.md
@cferdinandi
cferdinandi / extend.js
Last active Oct 13, 2021
A native JS extend() function.
View extend.js
/**
* Merge defaults with user options
* @private
* @param {Object} defaults Default settings
* @param {Object} options User options
* @returns {Object} Merged values of defaults and options
*/
var extend = function ( defaults, options ) {
var extended = {};
var prop;
@lucasfais
lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@imathis
imathis / tweetbot-mute-regex.md
Created Jun 27, 2012
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.
View tweetbot-mute-regex.md

Hashtag abuse

Three or more hashtags.

#[^#]+#[^#]+#

Long hashtags (15+ characters): #hashtagpunchline

@JamieMason
JamieMason / html-languages.txt
Created Sep 19, 2012
HTML lang attribute / ISO language code reference / Culture names
View html-languages.txt
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@CaptainN
CaptainN / jquery.mobile.just-touch.js
Created Mar 29, 2012
Just touch events for jQuery
View jquery.mobile.just-touch.js
// This is a combination of two modified files from jQuery Mobile,
// jquery.mobile.vmouse.js and jquery.mobile.event.js
// They were modified to only provide the touch event shortcuts, and
// avoid the rest of the jQuery Mobile framework.
// The normal jQuery Mobile license applies. http://jquery.org/license
//
// This plugin is an experiment for abstracting away the touch and mouse
// events so that developers don't have to worry about which method of input
// the device their document is loaded on supports.
//
@frdmn
frdmn / osx-10-10-virtualbox.md
Last active Aug 2, 2021
Install OS X 10.10 Yosemite in VirtualBox
View osx-10-10-virtualbox.md