Skip to content

Instantly share code, notes, and snippets.

View rchasman's full-sized avatar
🥳

Roey D. Chasman rchasman

🥳
View GitHub Profile
@rchasman
rchasman / CSC 352 Prog1
Created August 31, 2012 23:54
This was the first assignment given to us by McCann, it parses passed arguments to be unique, and ordered from largest to smallest.
/*=============================================================================
| Assignment: Program #1: Short to Long Uniques Argument List
| Author: Roey Chasman (rchasman@email.arizona.edu)
| Grader: Sam Martin
|
| Course: 352
| Instructor: L. McCann
| Due Date: 8/30/12 5:00pm
|
| Description: A program that accepts a variety of command-line arguments,
@rchasman
rchasman / thymine.json
Last active December 18, 2015 11:49
Thymine nitrogenous base JSON representation. Made for a d3.js force directed graph.
{
"nodes": [
{"atom": "C", "size": 12},
{"atom": "H", "size": 1},
{"atom": "H", "size": 1},
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "C", "size": 12},
{"atom": "O", "size": 16},
{"atom": "N", "size": 14},
@rchasman
rchasman / cytosine.json
Last active December 18, 2015 11:49
Cytosine nitrogenous base JSON representation. Made for a d3.js force directed graph.
{
"nodes": [
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "O", "size": 16},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
@rchasman
rchasman / adenine.json
Created June 13, 2013 23:19
Adenine nitrogenous base JSON representation. Made for a d3.js force directed graph.
{
"nodes": [
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
@rchasman
rchasman / guanine.json
Created June 13, 2013 23:20
Guanine nitrogenous base JSON representation. Made for a d3.js force directed graph.
{
"nodes": [
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
@rchasman
rchasman / 7850 cgminer kernel optimized
Last active December 29, 2015 18:39
cgminer kernel optimizations for an ATI HD 7850. Optimize arithmetic. Replace variables holding ints with constants. Remove all static length loops. etc.
/*-
* Copyright 2009 Colin Percival, 2011 ArtForz, 2011 pooler, 2012 mtrlt,
* 2012-2013 Con Kolivas.
* 2013 Adam Villena.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
@rchasman
rchasman / cryptsyids.txt
Last active December 30, 2015 21:19
A list of Market IDs from Cryptsy's API which they for some reason don't provide. Provided the script to generate this list. UPDATED: 12/21/2013 If this was helpful to you please consider donating! BTC: 1roeyDz8nU8k8dLXUsvHiPaF6voR4juej LTC: LRoeyxsxi5XiFGJgBnFnJM3rDhrXTzGH28
{
"ADT/LTC": 94,
"ADT/XPM": 113,
"ALF/BTC": 57,
"AMC/BTC": 43,
"ANC/BTC": 66,
"ANC/LTC": 121,
"ARG/BTC": 48,
"ASC/LTC": 111,
"ASC/XPM": 112,
@rchasman
rchasman / sing.sh
Created April 9, 2014 06:55
This script helps you to learn song lyrics!
#!/bin/bash
# requires lolcat
if [ $# -eq 2 ]
then
artist=${1// /%20}
song=${2// /%20}
(curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$song" | say -r 200 &);
@rchasman
rchasman / qatest.py
Created April 15, 2014 00:48
Code to pass the RainforestQA application challenge.
import requests
import urlparse
def getid(id):
url = "http://letsrevolutionizetesting.com/challenge.json?"
r = requests.get(url + id)
return urlparse.urlsplit(r.json()['follow'])[3]
seed = ""
@rchasman
rchasman / -
Created April 29, 2014 00:14
Deserialize/Serialize a Binary Tree structure from/into a String.
/** SIG FIG INTERVIEW **/
var node = function(value, left, right) {
this.value = value;
this.left = left;
this.right = right;
};
/**
n - current node