Skip to content

Instantly share code, notes, and snippets.

View cowlicks's full-sized avatar
💭
SEE TRANSLATION

cowlicks

💭
SEE TRANSLATION
View GitHub Profile
This file has been truncated, but you can view the full file.
/*! For license information please see reverb-f71130e851996ce67141.bundle.js.LICENSE */
webpackJsonp([0],[,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r.d(t,"__assign",function(){return o}),t.__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r},t.__decorate=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},t.__param=function(e,t){return function(r
(function(l){function d(k){if(a[k])return a[k].exports;var n=a[k]={exports:{},id:k,loaded:!1};l[k].call(n.exports,n,n.exports,d);n.loaded=!0;return n.exports}var a={};d.m=l;d.c=a;d.p="";return d(0)})([function(l,d,a){d.__esModule=!0;a(1)},function(l,d,a){d.__esModule=!0;l=a(2);Array.prototype.map||(Array.prototype.map=l.arrayMap);var k=a(3);l=a(5);var n=a(6);d=a(4);var g=a(7),h=a(8),p=a(9),q=a(12),u=a(24),r=a(25),t=window;a=t.document;var b=d.getTimeStamp(),c=new n.CookieManager("__cid",a),e=new q.ClientIdManager("__cid",
c,t);n=new g.WhenReady(t);var f=new u.Configuration(a),m=new h.XhrClientIdForwarder(a,function(){return e.getOrCreate()},function(){return c.getCookieDomain()}),v=new r.DataTrackingManager(t),w=new p.TrackRequestSender(t,f,e,v);k=new k.CommandProcessor(t,{getInfo:function(b){void 0===b&&(b=!1);var c={t:v.trackData,i:v.trackInfo};return b?JSON.stringify(c):c},getClientId:function(){return e.getOrCreate()},getVersion:function(){return"1.0.6"},autoForwardClientId:function(b){m.enable(!!b)},auto
try{(function(e,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)})(typeof window!="undefined"?window:this,function(window,noGlobal){function isArraylike(e){var t=e.length,n=jQuery.type(e);return n==="function"||jQuery.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function winnow(e,t,n){if(jQuery.isFunction(t))return jQuery.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return jQuery.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(risSimple.test(t))return jQuery.filter(t,e,n);t=jQuery.filter(t,e)}return jQuery.grep(e,function(e){return indexOf.call(t,e)>=0!==n})}function sibling(e,t){while((e=e[t])&&e.nodeType!==1);return e}function createOptions(e){var t=optionsCache[e]={};return jQuery.each(e.match(rnotwhite)||[],function(e,n){t[n]=!0}),t}function completed(){document.removeEventListene
@cowlicks
cowlicks / d9core.js
Created July 29, 2018 01:16
Fingerprinting script loaded on twitch.tv from https://d9.flashtalking.com/d9core
var D9FP=function(a){var b,c;b=Array.prototype.forEach;c=Array.prototype.map;this.each=function(j,h,g){if(j===null){return}if(b&&j.forEach===b){j.forEach(h,g)}else{if(j.length===+j.length){for(var f=0,d=j.length;f<d;f++){if(h.call(g,j[f],f,j)==={}){return}}}else{for(var e in j){if(j.hasOwnProperty(e)){if(h.call(g,j[e],e,j)==={}){return}}}}}};this.map=function(g,f,e){var d=[];if(g==null){return d}if(c&&g.map===c){return g.map(f,e)}this.each(g,function(j,h,i){d[d.length]=f.call(e,j,h,i)});return d};if(typeof a=="object"){this.hasher=a.hasher;this.screen_resolution=a.screen_resolution;this.canvas=a.canvas;this.ie_activex=a.ie_activex}else{if(typeof a=="function"){this.hasher=a}}};D9FP.prototype={get:function(){var b=navigator.userAgent.toLowerCase();var e=[];var d=navigator.language||navigator.browserLanguage;var c=d.split("-");if(typeof c[0]=="undefined"){d=d}else{d=c[0]}e.push(d);e.push(screen.colorDepth);if(this.screen_resolution){var a=this.getScreenResolution();if(typeof a!=="undefined"){e.push(a.join("x"))
@cowlicks
cowlicks / summary.txt.json
Last active June 7, 2018 07:54
san francisco election data
[
{
"CONTEST_ID": "0",
"CONTEST_ORDER": "-100",
"CANDIDATE_ORDER": "1",
"TOTAL": "0",
"CANDIDATE_PARTY_ID": "",
"CANDIDATE_ID": "1",
"VOTE_FOR": "0",
"CONTEST_TYPE": "-2",
@cowlicks
cowlicks / bootstrap.js
Last active April 30, 2018 20:42
A simple Javascript module system that is compatible with node and the browser, without transpiling
"use strict";
/**
* Simple commonjs-like module system that is compatible with node.
*
* We wrap each module in:
*
* [(function(exports) {
* ...
*
@cowlicks
cowlicks / bart-arrests-data.json
Created April 24, 2018 21:53
Json data for bart arrests from 2013 - 2017 see this gist for script https://gist.github.com/cowlicks/a2b30ed732963ed5f1e5aed03fb9f8bc
This file has been truncated, but you can view the full file.
{
"arrest_array": [
{
"Race:": "B",
"Sex:": "M",
"Primary Location": "M90/DCS - Daly City Station, 500 John Daly Bl, Daly City, CA",
"Case_Number": "1301-0039",
"Date_Arrest": "01/01/13 01:50"
},
{
@cowlicks
cowlicks / bart_arrests.py
Created April 24, 2018 21:51
Updated bart arrest data parsing. This gives data in a more workable format.
'''
Parsing bart arrest data. Fields per arrest are:
['Primary Location', 'Sex', 'Race', 'Case_Number', 'Date_Arrest', 'D.O.B']
To get sex and race I find lines that start with "Sex:" & "Race:" then take the
last character as the sex/race. This works except when there is a line break in
the middle of the field, which is pretty rare.
For primary loc, case number, arrest date, the data was the next line after the
line that had the field name.
@cowlicks
cowlicks / signal.py
Created April 23, 2018 21:29
Using signal-cli for messaging lotsa folks for mobilization/outreach/etc plus notes on difficulties
'''
notes:
Using signal-cli
https://github.com/AsamK/signal-cli
Read the github for a registration how to
You have to register signal-cli with an extra number, because it can't me
registered as a 'slave' device. If you register signal-cli with your normal
number, it will unregister your other devices.
@cowlicks
cowlicks / etag_tracking.py
Created April 22, 2018 22:08
rough mock up of etag tracking with 3rd party etag (like https://lucb1e.com/rp/cookielesscookies/)
from flask import Flask, Response, request
app = Flask(__name__)
@app.route('/')
def hello_world():
return '''
<script type="text/javascript" src="http://le.wtf:5000/tracker.js"></script>
Hello, World!
'''