Skip to content

Instantly share code, notes, and snippets.

View rchowe's full-sized avatar

RC Howe rchowe

View GitHub Profile
@rchowe
rchowe / load_prices.m
Created November 27, 2013 21:19
Loads prices from blockchain.info's CSV of market prices.
function [ dates, prices, changes ] = load_prices( filename )
% LOAD_PRICES Loads prices from a blockchain.info market-price.txt
% Loads prices from the CSV file provided by blockchain.info at
% http://blockchain.info/charts/market-price
fid = fopen( filename );
raw = textscan( fid, '%s %f', 'delimiter', ',' );
fclose( fid );
#!/usr/bin/env python
#
# Run the program, then type this in when it asks for your name:
#
# os.system('say hello')
#
import os
name = eval(input('Enter your name: '))
print('Hello, {}'.format(name))
#!/usr/bin/env python
import math
import sys
if len(sys.argv) < 2:
sys.stderr.write('USAGE: {} <number>\n'.format(sys.argv[0]))
sys.exit(1)
N = int(sys.argv[1])

Keybase proof

I hereby claim:

  • I am rchowe on github.
  • I am rchowe (https://keybase.io/rchowe) on keybase.
  • I have a public key whose fingerprint is 4035 6EF9 A5C7 B19B BA6B A139 320F C984 0C5F 311A

To claim this, I am signing this object:

import bot
@bot.reply(r'alot')
def alot(message):
message.reply("I'll allot you a lot of alots.")
if __name__ == '__main__':
bot.setup(host='irc.foonetic.net', user='DasBot', channel='#bloopy')
#!/usr/bin/env python
#
# markov.py
# Generates a Markov chain from a body of text.
#
from __future__ import print_function
import sys
import random
#!/usr/bin/env python
from __future__ import print_function
import numpy as np
import time
def clear():
print(chr(27) + "[2J")
<form method = 'post' action = '/songs' enc = 'multipart/form-data'>
<input type = 'file', name = 'upload_songs' />
</form>
$('#song-upload').css('opacity', '0')
$('#song-upload').parent().prepend('<a id = "upload-button" class = "btn btn-default" href = "#">Upload from Computer</a>')
$('#upload-button').click (e) ->
e.preventDefault()
$('#song-upload').trigger('click')
dropZone.addEventListener 'dragover', ->
event.stopPropagation()
event.preventDefault()
event.dataTransfer.dropEffect = 'copy'
$('#drag-coverall').show()