Skip to content

Instantly share code, notes, and snippets.

@scien
scien / gist:54694d0e0180b9ac9b91
Created September 10, 2014 05:22
prune a file from git history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch target_file.ext’ --prune-empty --tag-name-filter cat -- --all
@scien
scien / gist:ea853fe6d08d36d99af8
Created February 19, 2015 18:02
open github issues
$('.issue-title-link').each(function(i, el) {
window.open($(el).attr('href'), '_blank')
});
@scien
scien / gist:1aa67fc1e45de313d05c
Last active October 24, 2015 01:19
twitch player - 2015-10-23
We couldn’t find that file to show.
@scien
scien / gist:a1dd2656043ede6c383c
Created December 28, 2015 19:01
ballet songs
# dependencies
fs = require 'fs'
http = require 'http'
path = require 'path'
Crawler = require 'crawler'
# script
crawled = {}
c = new Crawler {
;
(function() {
function q(f, g) {
if (!(f instanceof g)) throw new TypeError("Cannot call a class as a function");
}
function r(f, g) {
if (!f) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !g || "object" !== typeof g && "function" !== typeof g ? f : g
}
@scien
scien / gist:5b94fcd18a4885dcabdf
Created March 24, 2016 11:34
twitch player embed.js
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.video = t() : (e.Twitch = e.Twitch || {}, e.Twitch.video = t())
}(this, function() {
return function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var i = n[r] = {
exports: {},
id: r,
loaded: !1