Skip to content

Instantly share code, notes, and snippets.

@ruzz311
ruzz311 / Moiré-pattern-1.markdown
Last active August 29, 2015 14:02
A Pen by Russell.
@ruzz311
ruzz311 / Orbital.markdown
Created November 6, 2014 15:38
A Pen by Russell.
@ruzz311
ruzz311 / grunt-waitfor.js
Created January 14, 2015 19:27
A grunt task to wait for a given amount of time
"use strict";
function formatDuration(duration) {
var resultType = 'ms';
var resultVal = duration;
if (duration > 999 && duration < 60000) {
resultType = 'sec';
resultVal = duration / 1000;
} else if (duration > 59999 && duration < 3600000) {
resultType = 'min';
@ruzz311
ruzz311 / oldSchoolJS.js
Last active March 4, 2017 18:34
An old-school mindset actually showed me this once and asked how node is not blocking. If you say "callback hell" is a reason you don't adopt node at this point(2015) you should probably sit with in the corner with the cobol engineers. (you guys make great money and there's still demand, but who wants to work with that?)
OH_SHIT_I_NEED_GLOBALS = 100001;
function iWantThis () {
while (count < window.OH_SHIT_I_NEED_GLOBALS) {
count = Math.random()*100000;
}
return "I haven't googled node yet. How does threads happen? So blocking, much crap."
}
iWantThis();
@ruzz311
ruzz311 / _ALL.js
Last active January 13, 2020 05:55
Chrome Dev Tools snippets
// most snippets found at
// https://github.com/bahmutov/code-snippets for most snippets
// https://github.com/bgrins/devtools-snippets/
(function loadAllSnippets(window) {
var keyname = 'snippets',
templates = {
bgrinsImg:'https://rawgit.com/bgrins/devtools-snippets/master/snippets/$s/$s.png',
},
remoteSnippet = {
@ruzz311
ruzz311 / crome-angular-tools.js
Created December 1, 2015 20:55
A Tampermonkey script for developing angular.
// ==UserScript==
// @name angular tools
// @namespace http://madsendev.com
// @version 0.1
// @description remove ads on speedtest.net
// @author You
// @match *://*/*
// @grant none
// @run-at document-idle
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am ruzz311 on github.
  • I am ruzz311 (https://keybase.io/ruzz311) on keybase.
  • I have a public key whose fingerprint is 600E C012 5F25 0818 0492 35FC 8785 FB8B D929 AFCF

To claim this, I am signing this object:

@ruzz311
ruzz311 / hipchat-themes.js
Last active May 10, 2016 17:21
tampermonkey script for hipchat
// ==UserScript==
// @name Hipchat Themes
// @namespace http://madsendev.com/
// @version 0.2
// @description Style hipchat web app.
// @author [email protected]
// @match *.hipchat.com/chat/*
// @grant none
// ==/UserScript==
@ruzz311
ruzz311 / README.md
Last active January 12, 2017 21:24
F Words

A

B

C

D

E

F

Five French-Fried Fatties Following Four Fantastic Fire Fighters Fell Face-Forward.

G

H

I