Skip to content

Instantly share code, notes, and snippets.

View nerdfiles's full-sized avatar
⚕️
bringing about the end-times of the philosophy

aha hah nerdfiles

⚕️
bringing about the end-times of the philosophy
View GitHub Profile
@nerdfiles
nerdfiles / _PromisifedExpress.coffee
Last active February 24, 2016 16:37
A way to organize Express apps. `dev.coffee` (setting up docs routes) and `theme.coffee` (setting up CDN or public assets routes) both should follow the standard set by `interface.coffee`.
Promise = require('bluebird')
express = require('express')
app = 'YourNewApp'
Promise
.resolve(express())
.then(require('../' + app + '/server'))
.then(require('../' + app + '/interface'))
.then(require('../' + app + '/dev'))
postCoringSample = () ->
###*
Register Coring Sample
@name postCoringSample
@function
@memberof external:test/unit/coringsample
###
$(function () {
$('input.field-user').on('blur keyup', function (e) {
var vehicleCostWeight = .1;
var laborCostWeight = .2;
var subtotal = parseFloat($('.element-showing-subtotal').text());
var formulaeForFee = subtotal * vehicleCostWeight * laborCostWeight;
var grandTotal = formulaeForFee + subtotal;
$('input.element-that-displays-total').value(grandTotal);
$('input.element-that-displays-fee').value(formulaeForFee);
});

http://www.ribbonfarm.com/2014/02/07/an-information-age-glossary/

Acting Dead

Pretending the world is less information-rich than it is. (Derived from Bruce Sterling)

Aestheticization

The process of creating a layer of superficial simplicity, harmony and normalcy as an aid to denial of underlying complexity, dissonance and strangeness.

*:not(.fa):not(.icon):not(.ico):not(.iconic):not(pre):not(code) {
font-family:AlphaSymbolic !important;
}
public class Foo {
private String id;
public boolean equals(Foo f) { return id.equals(f.id);}
}
@nerdfiles
nerdfiles / gist:2d2b97414e02a56b9b27
Created March 28, 2016 16:39 — forked from bwhitman/gist:1041662
Echoprint song/identify query example
http://developer.echonest.com/api/v4/song/identify?api_key=N6E4NIOVYMTHNDM8J&code=eJy1mVuSZCkORLcEkgCxHF7a_xLmEPMxNmUWxEdZ9cMts4i4FySXu9OdUtKWHjDlBfsFOc0XmLzA0wv2E2I9QO5nvsMYL-D7D4j2AO3rAZb8Bfk8gBe8ILcX_FX39wN-dF_0BWO-4JQHSI4X6HlBkRfM9YJdH6Ac-wG3nF_B8nyB2gP-JTfyC1Z7wQ_m-AtqfsHsLzj2ANH9gjc3ur1g9AeoP6HPF6z6AEtPaPGAf8icH93vL9D6giov8P2Ct6rYeMG7-1ejv4KaPuBHB0u8wMcL-nnAr-6PF_yNbuz1gF_dfyqDnxf8O92o_QX_jDlvZdCQB1j2B1zTesA1pe_wN9w47QG5jRe8u_-e_Xus72D9BT98YT1AU31BXS_44QvtASmVF7w7eDf-HU59QL4b_w4_JnQ_QKq_4N2j-_iv8CPXvWdwzxdEfsCvDtoLfnRwvOBvOvjDf58dfE_Zu7_P3K63JN_hL9LX33TQrpF-gRkHQzvqq7fky_PYYy7lD4g508_Ke_H3iRRr2ZDWUxt1lSPcrFtva1ibSYTPe_Ex3QtOlWuT1CUV3-5mbdU81snbd6-lnai5yJZ8fIY3DR3ZoseM3UvfJrP2Heiwmo1Wp2WVJVaWsjubY-fI5Yy1Wi82Vs7Dy5giM00eZOxBHVdrkZcdSs8rXEvMms7yZn62n-ll0jKfyfcSlXN2EQxpxGyn8-3tKw7XaRULj1mGpS0zeqFK0c7Y1WduU8M6G0spmle-FUUXNVBV9-rK3nlo99xzC9rcVCoXsdLZWo_NptOxMndZ-ahx4s97_1hl5yO-rnqI5Cn8ARVtrffTOF_10HWblmN1duS7YeQnNT-lm68jlHzVuAXOW6XQEs6YecbsvR4_1jTL3qdNWRyljaalr7lXj7QnP9kOhQNSqD4H6oXP0J1GimVrIWW3rHoqXBla7fDcnj
@nerdfiles
nerdfiles / Gruntfile-for-LoveStamp.coffee
Last active March 29, 2016 18:14
LoveStamp's tasks — recipes are at the bottom of the document!
module.exports = (grunt) ->
fs = require("fs")
try
q = require 'Q'
catch e
q = require 'q'
path = require("path")
gruntConfig = grunt.file.readJSON("Gruntconfig.json")
/**
* Simplifying Facebook with Stylish | WTFPL License
* https://gist.github.com/nerdfiles/3d25e4676203fe3cd237d488798bc2c4
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
/* Find Friends Header Button */
@nerdfiles
nerdfiles / stephen@touset.org
Created April 13, 2016 20:32 — forked from stouset/stephen@touset.org
Generate a rainbow table of all possible SSNs

seq -f “%09.0f” 000000000 999999999 | sed -e ‘s/^\(.\{3\}\)\(.\{2\}\)\(.\{4\}\)/\1-\2-\3/’ | parallel -j16 –pipe ‘ruby -r digest/md5 -n -e “\$_.chomp!; puts "%s %s" % [\$_, Digest::MD5.hexdigest(\$_)]”’ > ssns