This file contains 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/ffmpeg -i "~/Videos/00002.MTS" -vcodec flv -f flv -r 25 -s 800x450 -aspect 16:9 \ | |
-b 2000k -g 160 -cmp 2 -subcmp 2 -mbd 2 -flags +aic+cbp+mv0+mv4 \ | |
-trellis 2 -acodec libmp3lame -ac 2 -ar 44100 -ab 256k \ | |
"~/Videos/00002.flv" |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Insert title here</title> | |
<script type="text/javascript" src="js-libs/jquery-1.7.js"></script> | |
<script type="text/javascript" src="js-libs/jquery.tmpl.min.js"></script> | |
<script type="text/javascript" src="js-libs/underscore.js"></script> | |
</head> |
This file contains 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
// ==UserScript== | |
// @name Hide banner in wikipedia | |
// @namespace wikipedia.org/ | |
// @include http://*.wikipedia.org/* | |
// @match http://*.wikipedia.org/* | |
// ==/UserScript== | |
if (typeof hideBanner == "function") { | |
console.log("hiding banner"); | |
hideBanner(); |
This file contains 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
var fs = require('fs'); | |
var path = require('path'); | |
var cdr_files = process.argv[2]; | |
var bs_station_file = process.argv[3]; | |
if (cdr_files === undefined || bs_station_file === undefined) { | |
console.log("input file expected or bs station file expected"); | |
exit; | |
} |
This file contains 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
// generated by quake, do not modify | |
unbindall | |
bind TAB "+scores" | |
bind ENTER "+button2" | |
bind ESCAPE "togglemenu" | |
bind SPACE "+moveup" | |
bind + "sizeup" | |
bind - "sizedown" | |
bind 0 "weapon 10" | |
bind 1 "weapon 1" |
This file contains 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/ruby -wKU | |
class SimpleCipher | |
attr_accessor :P, :S, :IP | |
CYCLE_NUM = 4 | |
BLOCK_SIZE = 32 | |
SUB_BLOCK_SIZE = 4 | |
SUB_BLOCK_NUM = BLOCK_SIZE/SUB_BLOCK_SIZE |
This file contains 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
struct number_rule { | |
char *before_mask; | |
char *after_mask; | |
char am_len; | |
char bm_len; | |
int amp_len; | |
int bmp_len; | |
}; | |
struct number_rules { |
This file contains 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
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; |
This file contains 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 <iostream> // cout, endl | |
#include <fstream> // fstream | |
#include <vector> | |
#include <string> | |
#include <algorithm> // copy | |
#include <iterator> // ostream_operator | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains 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
(ns wf | |
(:require (clojure.java.io/writer)) | |
(:use [clojure.contrib.seq :only (indexed)]) | |
(:import java.util.concurrent.atomic.AtomicLong)) | |
(set! *warn-on-reflection* true) | |
;;; Big wins: | |
;;; * Use queue instead of pmap. | |
;;; * Overlap chunking with actual runtime |