Skip to content

Instantly share code, notes, and snippets.

View zeroaltitude's full-sized avatar
🏠
Working from home

Edward Abrams zeroaltitude

🏠
Working from home
View GitHub Profile
// detect whether __proto__ is supported in this browser
var __proto_supported__ = false;
try
{
__proto_supported__ = ({}).__proto__;
} catch (e) { /* failed, so stays false */ }
if (typeof Object.create !== 'function')
{
Object.create = function (o)
...
2) Inject params into scope -- even faster
..
// Create a class method 'process' which accepts params for imag and real
FFT.process(signalData, imag, real) {
// work with real and imag
..
};
@zeroaltitude
zeroaltitude / gist:5853587
Created June 24, 2013 21:03
Hack for portal zap range IITC
var zapTable = {
1: [75, 40],
2: [125, 45],
3: [175, 50],
4: [238, 55],
5: [300, 60],
6: [400, 65],
7: [500, 70],
8: [600, 75]
};
@zeroaltitude
zeroaltitude / Timestamps
Created August 12, 2013 18:19
Timestamp formats for thingy
2007-03-01T13:00:00Z
@zeroaltitude
zeroaltitude / timestamp_cracker
Last active December 21, 2015 01:19
Timestamp cracker, Python, version zeroaltitude
#!/usr/bin/env python -tt -3
# -*- coding: utf-8 -*-
# This code should be python 2 and python 3 safe -- use range() instead of xrange(), though
from __future__ import unicode_literals, print_function
import sys
import hashlib
from itertools import chain, product, permutations
from timeit import default_timer as timer
@zeroaltitude
zeroaltitude / timestamp_cracker
Last active December 21, 2015 03:49
Timestamp cracker, javascript
//
// Cracker for Ingress timestamps. YMMV. BBIAB. KK.
// See this page for example codes to test this with: https://gist.github.com/zeroaltitude/6213498
//
// Usage: main(<cipher> <hour> <trial number> <otp hash>)
//
// E.g.
//
// main('ISGDVWWJXCYSDRXDLSSOVOKIEUJNTVQLJSXQCLCYLRFEFYWVTZILMLACAKVTCCZJNOBYOJ', '2', '2', '7527D47FE0E8F422EE269B666C1A2CA2')
// !!!!!!!!!!! FOUND OTP/TIMESTAMP: WOGLBFSXTPFVKVJGDAVOCRRMQXVQRKCJZVSCIUFMDELLBGZVGWLGYRJJCNILPYCRJMNLLR/MEASUREMENTXTWOXISXATXTWOXOXCLOCKXFOURXMINUTESXANDXFOURTYXNINEXSECONDS
@zeroaltitude
zeroaltitude / js html thing
Created August 16, 2013 04:53
Html for the Js timestamp cracker
<!doctype html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="fun.js"></script>
</head>
<body>
<p>
Hi. Let's solve some timestamps!
</p>
cc;Legal;CTO;dfw;01606;91107
Valerian Zigzag
1 Elliquiy Way
Internet, World 192.150.16.117
To whom it concerns:
It has come to our attention that you have used the trademarked (US Trademark Office, item #012-358-867-5309, 2013) term, "Knismets (tm)" without an appropriate designation of said trademark, or applicable secondary citation of said trademark.
(thalamus-venv)Administrators-MacBook-Pro:thalamus eddie$ run_ml
Starting run
Setting run id to 5
Loading files from S3
File ./Manifest_QC_Clinical_BW_012414.just_metabolon_samples.txt exists, skipping get from s3
File ./Manifest_QC_Clinical_BW_012414.txt exists, skipping get from s3
File ./counts_v2_genes_exons.gc.frozen_ref.txt exists, skipping get from s3
File ./counts_v2_genes_exons.gc.just_genes.frozen_ref.txt exists, skipping get from s3
File ./restricted_features_mx_lx_21Feb14.txt exists, skipping get from s3
File ./scaled_imp_mx_lx_formatted_21Feb14.txt exists, skipping get from s3
@zeroaltitude
zeroaltitude / keybase.md
Created September 2, 2014 17:51
keybase.md

Keybase proof

I hereby claim:

  • I am zeroaltitude on github.
  • I am zeroaltitude (https://keybase.io/zeroaltitude) on keybase.
  • I have a public key whose fingerprint is 2FB4 ED61 E543 F0C3 3E18 0AFF D635 B1DD 503B E2AD

To claim this, I am signing this object: