Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

/*jslint browser: true, indent: 2 */
var Delayed = (function (delay) {
/*! Andrea Giammarchi - Mit Style License */
// https://gist.github.com/WebReflection/7286687
'use strict';
// method shared across all delayed wrappers
function clear() {
@kentaromiura
kentaromiura / index.js
Created April 14, 2015 09:50 — forked from kamicane/.requirebin-equation-stuff-2
requirebin sketch
"use strict";
var COLORS = {
BOX: 'silver',
BEZIER: 'silver',
BACKGROUND : {
COLOR: 'whitesmoke',
TEXT: 'black'
},
POINTS: 'gray',
GRID: 'rgba(80,80,80,0.1)',
@kentaromiura
kentaromiura / mostAnnoyingConsoleFunctionEver.js
Last active August 29, 2015 14:03 — forked from zivc/mostAnnoyingConsoleFunctionEver.js
amend the mostAnnoyingConsoleFunctionEver to use the proper font
console.log = (function(log){
return function(str) {
var css = 'background: linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); color: white; font-weight: bold;font-family:Comic Sans MS;font-size:13pt;';
var args = Array.prototype.slice.call(arguments);
args[0] = '%c' + args[0];
args.splice(1,0,css);
var speech = new SpeechSynthesisUtterance();
speech.text = str;
window.speechSynthesis.speak(speech);