This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1976 - Taxi Driver | |
1973-2005 - The Exorcist 1-5 - Complete Horror Anthology | |
1988-2012 - Red Dwarf DVD Boxset Season 1-8 + Extras | |
1990 - Misery | |
1995 - Higher Learning | |
2002-2012 - The Bourne Collection | |
2005 - Thank You for Smoking | |
2005 - Meatball Machine | |
2006 - Paprika | |
2006 - Aachi and Ssipak |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate piston; | |
extern crate graphics; | |
extern crate glutin_window; | |
extern crate opengl_graphics; | |
extern crate carboxyl; | |
use std::collections::HashSet; | |
use piston::window::WindowSettings; | |
use piston::event_loop::*; | |
use piston::input::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
def roots(n): | |
for a in range(0, n): | |
if (a*a) % n == 1: | |
yield a | |
def prime(n): | |
for a in range(2, n): | |
if n % a == 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rustc_serialize; | |
extern crate byteorder; | |
use std::io; | |
use std::io::Read; | |
use rustc_serialize::hex::ToHex; | |
use byteorder::{BigEndian, ReadBytesExt}; | |
struct IndexHeader { | |
version : u32, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size_t | |
readlines(FILE* in, char ***items) { | |
char buf[BUFSIZ], *p; | |
size_t i, size = 0; | |
/* read each line from stdin and add it to the item list */ | |
for(i = 0; fgets(buf, sizeof buf, in); i++) { | |
if(i+1 >= size / sizeof **items) | |
if(!(*items = realloc(*items, (size += BUFSIZ)))) | |
die("cannot realloc %u bytes:", size); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cond = -> (b,y,n) { b ? y : n } | |
$any = -> (e) { -> (p) { e.any? &p } } | |
$all = -> (e) { -> (p) { e.all? &p } } | |
$make_value = ->(mho) { ->(obj) { ->(k,v) { $cond[k == :or, mho[v], ->(obj) { obj[k] == v }][obj] } } } | |
$applier = ->(reducer) { ->(mho) { ->(query) { ->(obj) { reducer[query][$make_value[mho][obj]] } } } } | |
$ycombinator = ->(f) { ->(x) { x[x] }[ ->(x) { f[->(y) { x[x][y] } ] } ] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Listing | |
markdown :title, :description | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :po do | |
desc "TODO" | |
task :create, [:name, :path] => :environment do |t, args| | |
r = Repository.create!(name: args[:name], path: File.expand_path(args[:path])) | |
tr_st = ActiveRecord::Base.connection.raw_connection.prepare( | |
"INSERT INTO translations (translation_file_id, msgid, msgstr, created_at, updated_at) VALUES(?, ?, ?, ?, ?);") | |
# 2012-03-19 08:00:16.463415 | |
now = Time.now.strftime("%Y-%m-%d %H:%M:%S.%6N") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <gettext-po.h> | |
#include <string.h> | |
#include <sqlite3.h> | |
#include <time.h> | |
#define ERROR_CHECK_KEEP(code, message) \ | |
{ \ | |
int v = (code); \ | |
if (v != 0) { \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --silent http://www.debian.org/international/l10n/po-debconf/pt | | |
grep 'href="http://i18n.debian.org/material/po/.*.po.gz">pt.po</a>' | | |
sed -e 's/.*name="\([^"]*\)".*href="\([^"]*\)".*/\1 \2/' | | |
while read line | |
do | |
a=( $line ) | |
name="${a[0]}" | |
url="${a[1]}" |