Skip to content

Instantly share code, notes, and snippets.

View notthetup's full-sized avatar
🔊

Chinmay Pendharkar notthetup

🔊
View GitHub Profile
"""Attempt to solve the xkcd Alma Mater challenge.
Dependencies:
pyskein
requests
Usage:
python code.py york.ac.uk
"""
@cheeaun
cheeaun / js-error-logging-services.md
Last active September 18, 2025 20:18
JavaScript error logging services
@kirb
kirb / gist:5840276
Last active June 28, 2024 21:16
Download all WWDC videos and PDFs
/**
* Download all WWDC videos and PDFs
* by kirb <http://hbang.ws> / GPLv3 licensed <http://hbang.ws/s/gpl>
*
* Go to <https://developer.apple.com/wwdc/videos> and run this in your JavaScript console
* (option-cmd-i on OS X; F12 on Windows)
*
* Set hd = true if you want HD videos instead of SD (WARNING: will use a large amount of data)
*
* Make sure wget is installed too - it isn't by default for most OSes. You could also change
@0xabad1dea
0xabad1dea / rsa-not-buying-it.md
Last active May 4, 2022 21:59
Sorry, RSA, I'm just not buying it

Sorry, RSA, I'm just not buying it

I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.

RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li

@prantlf
prantlf / jasmine.toBeInstanceOf.js
Last active September 2, 2018 00:12
A Jasmine matcher checking if the actual object is an instance of the expected type
// Checks if the actual object is an instance of the expected type;
// the functional object `expected` can be any ancestor prototype.
//
// Example:
// expects(new Backbone.Model()).toBeInstanceOf(Backbone.Model);
jasmine.Matchers.prototype.toBeInstanceOf = function(expected) {
var actual = this.actual,
notText = this.isNot ? ' not' : '';
this.message = function() {
return 'Expected ' + actual + notText + ' to be an instance of ' + expected;
@jsantell
jsantell / webaudioscratchsheet.md
Last active August 29, 2015 14:01
Firefox Developer Tools' Web Audio Editor scratchpad

Originally from etherpad

The Web Audio Editor in Firefox Developer Tools is still a work in progress. A lot of love is needed in its current state, and once the basic features are working, here are some dream features, and future planning.

Milestones

@whichlight
whichlight / art-demo-links.md
Last active August 29, 2015 14:02
materials for jsconf talk
@jussi-kalliokoski
jussi-kalliokoski / main.js
Created November 9, 2014 13:07
Example of pre-initialized AudioWorker proposal
var context = new AudioContext();
var sineWorker = context.createAudioWorker("worker.js");
function createSineNode (frequency) {
var node = context.createAudioWorkerNode(sineWorker, {
numberOfInputChannels: 0,
numberOfOutputChannels: 1,
parameters: {
frequency: frequency || 440,
},
@porjo
porjo / timelapse.md
Last active May 25, 2023 16:14
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

Simple glob:

ffmpeg -r 24 -i '*.JPG' -s hd1080 -vcodec libx264 timelapse.mp4

Start from DSC_0079.JPG

ffmpeg -r 24 -f image2 -start_number 79 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse2.mp4
@skyl
skyl / install.rb
Last active October 28, 2024 14:17
Homebrew without sudo
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
# SET YOUR_HOME TO THE ABSOLUTE PATH OF YOUR HOME DIRECTORY
# chmod +x install.rb
# ./install.rb
YOUR_HOME = ''
HOMEBREW_PREFIX = "#{YOUR_HOME}/usr/local"
HOMEBREW_CACHE = '/Library/Caches/Homebrew'
HOMEBREW_REPO = 'https://github.com/Homebrew/homebrew'