Skip to content

Instantly share code, notes, and snippets.

View buntine's full-sized avatar
💭
Gringo Starr

Andrew Buntine buntine

💭
Gringo Starr
View GitHub Profile
namespace Structure {
export interface Tab {
preload(callback: () => void): void;
execute(): void;
build(set: Array<Structure.Person>): boolean;
built(): boolean;
}
}
class Impact implements Structure.Tab {
namespace Structure {
export type TabState = "impact" | "timeline" | "geography";
export type OpState = "and" | "or";
export interface AppState {
tab?: TabState,
op: OpState,
tags: Array<string>,
}
}
abstract class Building {
constructor(public stories: number, public size: number) {
}
public height(): number {
return this.stories * this.size;
}
}
class Hardhat extends Building {
@buntine
buntine / Building SSH Key management tool with Elixir.md
Last active November 20, 2015 03:31 — forked from jayzz55/Building SSH Key management tool with Elixir.md
Building SSH Key management tool with Elixir

Building SSH Key management tool with Elixir

Sipping the Elixir

After being inspired by David's talk on Elixir at Hardhat, we decided to try and build our own SSH public key management tool PubKeys in Elixir. We're delighted to report back that Elixir is amazing and we've released the source code to the community at Github.

Things we love about Elixir:

  • Writing code in a functional style encourages us to break the code into small chunks of functions.
  • Through the use of function composition operator |>, this makes the code much more readable, and elegant.
  • Pattern matching is great.
Making directory audio
Compile audio/audio.c -> audio/audio.o
Compile audio/source.c -> audio/source.o
Compile audio/staticbuffer.c -> audio/staticbuffer.o
Compile audio/staticsource.c -> audio/staticsource.o
Compile audio/streamsource.c -> audio/streamsource.o
Compile audio/vorbis_decoder.c -> audio/vorbis_decoder.o
Making directory filesystem
Compile filesystem/filesystem.c -> filesystem/filesystem.o
Making directory graphics
---
- aclit
- adick
- aids
- alabama porch monkey
- anal intruder
- anal invader
- analicker
- anus
- "4r5e"
from Tkinter import *
import tkFont
import subprocess, os, re
BASE = "/home/andrew/Downloads/SNES/ROMS/"
def play(e):
lb = e.widget
text = lb.get(ACTIVE)
filename = lb.data[text]
@buntine
buntine / deploy.rb
Created July 14, 2014 01:36
Rails 4, Capistrano 3.2.1+ local precompilation using rsync
# Clear existing task so we can replace it rather than "add" to it.
Rake::Task["deploy:compile_assets"].clear
desc "Precompile assets locally and then rsync to web servers"
task :compile_assets do
on roles(:web) do
rsync_host = host.to_s
run_locally do
with rails_env: :production do ## Set your env accordingly.
class TestsController < ApplicationController
def index
@callback_url = "http://127.0.0.1:3000/tests/callback"
@consumer = OAuth::Consumer.new("YOUR_APP_KEY","YOUR_APP_SECRET", :authorize_url => "http://www.discogs.com/oauth/authorize", :site => "http://api.discogs.com")
@request_token = @consumer.get_request_token(:oauth_callback => @callback_url)
session[:request_token] = @request_token
redirect_to @request_token.authorize_url(:oauth_callback => @callback_url)
- AGMEN - Damnation - LP - Breath of Night - 99
- ALARM - Rock'n'Roll v patách - LP - Monitor - 90
- ALKEHOL - Alkehol - LP - Monitor - 92
- ALKEHOL - S Úsměvem Se Pije Líp - LP - Monitor - 93
- AMON - Call the Master! - LP - Doomentia - 10
- ANACHRONIC - Lame Gart And... - LP - BestIA - 93
- APOLON - TVÁR SEBCA / ČACHTICKÁ PANI - 7” - Zeras - 92
- ARAKAIN - Black Jack - LP - Monitor - 92
- ARAKAIN - Excalibur / Gladiátor - 7" - Panton - 88
- ARAKAIN - Ku-Klux-Klan / Orion - 7" - Supraphon - 89