Skip to content

Instantly share code, notes, and snippets.

Avatar

Tamara Jordan tamj0rd2

  • London
View GitHub Profile
View what.js
// Church numeral encoding
const ZERO = f => x => x
const increment = n => f => x => n(f)(x)
// do not try to understand this. This way madness lies...
const decrement = n => f => x => n(g => h => h(g(f)))(u => x)(u => u)
// we're going to keep this simple for now, but trust me that booleans are also an interface...
View ChrUpdWin.cmd
@echo off
if exist running exit
cd /d "%userprofile%\Downloads\"
set channel=continuous
set url=https://storage.googleapis.com/chromium-browser-%channel%/Win_x64
set wget=wget -N
type nul > running
if "%1" == "" (
%wget% %url%/LAST_CHANGE || goto hell
fc LAST_CHANGE LastVersion && goto hell
@tamj0rd2
tamj0rd2 / subreddit-data-dumper.py
Last active Sep 21, 2016 — forked from quentinms/subreddit-data-dumper
A python script that gets the list of the most popular subreddits
View subreddit-data-dumper.py
import json
import os
import requests
import time
def write_to_file(data, **kwargs):
'''Writes a string to a file'''
global json_file_path
end = kwargs.pop('end', False)
@tamj0rd2
tamj0rd2 / subreddit_array.py
Last active Sep 21, 2016 — forked from sauravtom/subreddit_array.py
Python script to generate a list of subreddits
View subreddit_array.py
import json
import os
import requests
import time
def write_to_file(data, **kwargs):
'''Writes a string to a file'''
global json_file_path
end = kwargs.pop('end', False)
You can’t perform that action at this time.