Skip to content

Instantly share code, notes, and snippets.

View eighteyes's full-sized avatar
💭
Building the Future With Friends

Sean Canton eighteyes

💭
Building the Future With Friends
  • Eight Eyes Creations
  • Earth (Sol)
  • 11:47 (UTC -08:00)
View GitHub Profile
@jbreckmckye
jbreckmckye / gist:4553c47e1b26dbe6130f1d7736f148d9
Last active November 10, 2023 02:07
JSTOR Open Access Book List
Title Subtitle Authors JSTOR Discipline 1
Tracking Rural Change "Community, Policy and Technology in Australia, New Zealand and Europe" Socio
@myshov
myshov / function_invocation.js
Last active August 19, 2024 12:23
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
@eighteyes
eighteyes / Git Sublime Sweetness
Last active December 15, 2015 05:19
Bash scripts to leverage the power of git to open working files. Grep supports line numbers!
# Open log files x number of times back : glo 1
function __glo(){
subl `git log --name-only -n $1 --format=format: | xargs`;
}
alias glo='__glo'
# Open and grep log files x number of times back : glgo 1 query
function __glgo(){
subl `git log --name-only -n $1 --grep '$2' --format=format: | xargs`;
}
@eighteyes
eighteyes / Default (OSX).sublime-mousemap
Created September 18, 2012 17:20
Enable Mouse Wheel Zoom in SublimeText 2 on MacOSX (Place in User Folder)
[
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "increase_font_size" },
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "decrease_font_size" }
]
@gre
gre / easing.js
Last active February 26, 2025 11:46
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {