Skip to content

Instantly share code, notes, and snippets.

View pathologicalhandwaving's full-sized avatar
:shipit:
If you are the smartest person in the room, run TF out of that room

UnMary pathologicalhandwaving

:shipit:
If you are the smartest person in the room, run TF out of that room
View GitHub Profile
@pathologicalhandwaving
pathologicalhandwaving / gdpco2example.ipynb
Created April 4, 2016 09:36
GDP CO2 Example ipynotebook and d3.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pathologicalhandwaving
pathologicalhandwaving / debruijin.ipynb
Created April 4, 2016 09:34
De Bruijin Graph Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pathologicalhandwaving
pathologicalhandwaving / practical.ipynb
Last active April 4, 2016 09:33
Practice with Dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pathologicalhandwaving
pathologicalhandwaving / classicGraphs.ipynb
Last active April 4, 2016 09:25
Classic Graphs in ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env ruby -rjcode -Ku
# TaskPaper to Markdown converter
# Usage: tp2md.rb filename.taskpaper > output.md
require 'ftools'
infile = ARGV[0]
title = File.basename(infile,'.taskpaper').upcase
output = "# #{title} #\n\n"
prevlevel = 0
begin
@pathologicalhandwaving
pathologicalhandwaving / mersenne-twister.js
Last active November 23, 2021 15:48 — forked from robbinhan/mersenne-twister.js
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
(*
http://blog.smilesoftware.com/category/user-tips/textexpander/
Here are a couple of sample scripts to get you started. The first one creates a new group and then creates two snippets within it:
*)
tell application “TextExpander”
–– create a new group
make new group with properties {name:”My New Script Group”}
set newGroup to the result
# Posted at http://n8henrie.com/2013/02/quickly-import-pythonista-scripts-via-textexpander-or-bookmarklet
# Script Name: Import Pythonista Script from Bookmarklet
# I got help from here: http://twolivesleft.com/Codea/Talk/discussion/1652/what-others-do%3A-pythonista/p1
# I got help from here: http://www.macdrifter.com/2012/09/pythonista-trick-url-to-markdown.html
# I got help from here: http://www.macstories.net/tutorials/from-instapaper-and-pythonista-to-dropbox-and-evernote-as-pdf/
import sys
import urllib2
import editor
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.