Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am perryh on github.
  • I am perry (https://keybase.io/perry) on keybase.
  • I have a public key whose fingerprint is 452F 05A6 0455 8950 F732 371E 5831 DF6E A70A 5A74

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am perryh on github.
* I am perry (https://keybase.io/perry) on keybase.
* I have a public key whose fingerprint is 9B65 654C 8359 439A 0E8C DE5B 132C 63A2 3946 8568
To claim this, I am signing this object:
@perryh
perryh / cgminer.conf
Last active January 4, 2016 07:58
2x Radeon 7850 config
{
"pools" : [
{
"url" : "stratum+tcp://middlecoin.com:3333",
"user" : "1HeJLJ9tHdnHncgEcz5eiNXd4FF2es8Nsv",
"pass" : "password"
},
{
"url" : "stratum+tcp://useast.middlecoin.com:3333",
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-0" RightOf "aticonfig-Screen[0]-0"
EndSection
Section "Module"
EndSection
Section "Monitor"
#!/usr/bin/env ruby -wKU
require 'digest/sha1'
require 'base64'
begin
pans_input = File.open("data/pans.txt", "r")
rescue
print "Invalid file"
end
@perryh
perryh / README.md
Created November 12, 2013 20:11
Twitch.tv

How to use

perry@taylorswift:~/git/twitch.tv|⇒  ruby spellchecker.rb
> nouord
nard
> noioiiord
nard
> IIiboreginallyY
aboriginally
> weke

waka

@perryh
perryh / hw3.py
Last active December 24, 2015 00:58
import numpy as numpy
import time as time
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages as pdf
def product(a1, a2):
start = time.clock()
numpy.dot(a1, a2)
end = time.clock() - start
return end
@perryh
perryh / client.cpp
Last active December 16, 2015 16:09
real-time multimedia simulation client & server
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Argument list too long */
@perryh
perryh / disqus.haml
Last active December 16, 2015 10:09
Disqus HAML embed
#disqus_thread
:javascript
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'YOURSITE.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();