Skip to content

Instantly share code, notes, and snippets.

View finitud's full-sized avatar
💭
Not really using this account anymore, find me on the other one!

Alice Wyan finitud

💭
Not really using this account anymore, find me on the other one!
View GitHub Profile
@finitud
finitud / twitter_force_unfollow.py
Created October 8, 2015 10:15 — forked from coilysiren/twitter_force_unfollow.py
A twitter script to force unfollow all the people that follow you, but you don't follow back. Best used with private accounts
# internal
import time
# external
import flask
from twython import Twython
# local
from env import ENV
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://mbostock.github.io/d3/talk/20111018/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.io/d3/talk/20111018/d3/d3.csv.js"></script>
<script type="text/javascript" src="http://mbostock.github.io/d3/talk/20111018/d3/d3.time.js"></script>
<style type="text/css">
svg {
The houses of parliament netblock is publicly listed:
https://apps.db.ripe.net/search/lookup.html?source=ripe&key=194.60.0.0%20-%20194.60.63.255&type=inetnum
Despite their unwillingness to reveal the UK parliament web proxies in an FOI
request, wikipedia allows you to query for /24 blocks. 63 wikipedia queries
later, and here's the list of every IP address that has made a wikipedia edit
from the UK parliament netblock.
194.60.62.36 7 found
@finitud
finitud / README.md
Created October 12, 2013 12:06 — forked from nikcub/README.md
@finitud
finitud / .bashrc
Created March 8, 2013 14:52 — forked from jashkenas/.bashrc
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
;; finitud's solution to A nil key
;; https://4clojure.com/problem/134
(fn [key map] (nil? (get map key ())))
@finitud
finitud / gist:2054209
Created March 17, 2012 01:37
The Zen of R
# I am a scientist who has been using R for about 2 years. Today I achieved a measure of enlightenment into
# the zen of R, and I want to share it with you.
# I was simulating a set of independent random walks, which are formed by a multiplicative process. Here is
# the code I had built up over a few months of working on it and modifying it on and off as research
# questions changed:
TimeSteps <- 1000
Walks <- 100
ErrorMagnitude <- 0.03
(ns boggle
(require [clojure.string :as str]))
(def words
(set (str/split-lines (slurp "brit-a-z.txt"))))
(defn select-words [s])
"Produces a list of words which start with 's'"
(filter #(.startsWith % s) words))
@finitud
finitud / cljdoc.el
Created February 19, 2012 15:09 — forked from tomykaira/cljdoc.el
cljdoc.el --- eldoc mode for clojure
;;; cljdoc.el --- eldoc mode for clojure
;; Copyright (C) 2011 tomykaira
;; Version 0.1.0
;; Keywords: eldoc clojure
;; Author: tomykaira <tomykaira@gmail.com>
;; URL: https://gist.github.com/1386472
;; This file is not part of GNU Emacs.
;; finitud's solution to Reverse a Sequence
;; https://4clojure.com/problem/23
#(if (empty? %2)
%1
(recur (conj %1 (last %2))
(butlast %2)))
[]