Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ICEDLEE337

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Created Apr 5, 2019 — forked from JamesMGreene/
A comparison of using `git flow` commands versus raw `git` commands.


gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

View load-gist.js
url = '';
.then(r => r.text())
function inject (text) {
var script = Object.assign(document.createElement('script'), {innerText: text});
View togglii.js
javascript: (() => {
var $http = $('body').injector().get('$http');
var url = 'proxy/authpermissions-v2-server/toggles/';
const GREEN = 'green';
const RED = 'black';
function render() {
const scrollPos = window.scrollY;
$http.get(url).then(res =>, b) => sorter(a, b))).then(toggles => {
const ul = convertTogglesToUl(toggles);
ICEDLEE337 / lodash-throttle.js
Created Nov 16, 2017
example of using lodash's `throttle`
View lodash-throttle.js
(() => {
// in this example we invoke a fn for a period of 10 sec, invoking it 10 times a second, but we can perceive that the original function is only invoked at most once per second according to the parameter below
var TOTAL_TIME_TO_RUN = 10000; // 10 sec
var THROTTLE_INTERVAL = 2000; // <= adjust this number to see throttling in action
var INVOCATION_INTERVAL = 100; // 0.1 sec
// regular fn
var punchClock = function punchClock () {
ICEDLEE337 / .jshintrc
Created Feb 1, 2016
.jshintrc to expose console.log statements
View .jshintrc
"bitwise": false,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 4,
"latedef": true,
You can’t perform that action at this time.