I hereby claim:
- I am toroidal-code on github.
- I am toroidalcode (https://keybase.io/toroidalcode) on keybase.
- I have a public key whose fingerprint is 49F9 C159 4EC7 2DB0 F9DB AD2D 6034 95F2 EEDA 7602
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Background Color</key> | |
<dict> | |
<key>Red Component</key> | |
<real>0.0627450980392157</real> | |
<key>Blue Component</key> | |
<real>0.0627450980392157</real> |
#include <functional> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
struct Runnable { | |
virtual ~Runnable(){}; | |
virtual int operator()() = 0; |
type 'a btree = | |
| Leaf of 'a | |
| Branch of ('a btree) * ('a btree) | |
let rec flatten = function | |
| Leaf(a) -> [a] | |
| Branch(r, l) -> flatten r @ flatten l | |
extern crate sync; | |
use sync::mutex::{Mutex,Guard}; | |
use std::task; | |
fn lock<'a>(l0 : &'a Mutex, l1 : &'a Mutex) -> (Guard<'a>, Guard<'a>) { | |
loop { | |
't0: for _ in range(0u, 1u) { | |
let u0 = l0.lock(); | |
let u1 = match l1.try_lock() { | |
None => { |
require 'octokit' | |
require 'colorize' | |
print 'GitHub username: ' | |
username = $stdin.gets.strip | |
repos = Octokit.repos(username, {type: 'public'}).map { |repo| repo['full_name'] } | |
puts 'Searching for license files...' |
require 'nokogiri' | |
require 'open-uri' | |
def next_node_with(current, attribute, cond) | |
while current && current.send(attribute) != cond | |
current = current.next | |
end | |
current |
#!/usr/bin/env ruby | |
require 'highline/import' | |
require 'colorize' | |
l_tag_regex = /(^\[[\w-]+\]\s*|_-_THORA\s*)/ #/^\[[\w-]+\]\s*/ #Remove sub group tag. THORA gets a special case | |
t_tag_regex = /\s*\[\w{8}\]$/ # match [A71160AA]-formatted trailing tags (CRC32) | |
e_tag_regex = /((\[|\()(?!\d{4}\)).*?(\]|\)))/ # Don't match (year), but match [1080p,etc.] or (1080p, etc.); | |
# will also exclude match of [year) #TODO: Fix this | |
class Rename |
function rand(min, max) { | |
return parseInt(Math.random() * (max-min+1), 10) + min; | |
} | |
function get_random_color() { | |
var h = rand(1, 360); // color hue between 1 and 360 | |
var s = 58; // saturation 30-100% | |
var l = 32; // lightness 30-70% | |
return 'hsl(' + h + ',' + s + '%,' + l + '%)'; | |
} |
### Makefile --- | |
## | |
## Filename: Makefile | |
## Description: A generic C Makefile | |
## Author: Katherine Whitlock - toroidalcode | |
## Created: Tue Jun 24 17:45:43 2014 (-0400) | |
## Version: 0.1 | |
###################################################################### | |
## | |
### Code: |