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
while true; do | |
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ \ | |
-y "aljazeera_en_veryhigh?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId=" \ | |
-W "http://admin.brightcove.com/viewer/us1.24.04.08.2011-01-14072625/federatedVideoUI/BrightcovePlayer.swf" \ | |
-p "http://english.aljazeera.net/watch_now/" \ | |
-a "aljazeeraflashlive-live?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId=" \ | |
| mplayer - -dumpstream -dumpfile egypt-$(date +%s) | |
done; |
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
def square(x){ | |
(x, x) > mul > return; | |
} | |
def square(x){ | |
|= mul | |
|< (x, x) | |
|> return; | |
} |
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/env python | |
import sys | |
class Mirror(object): | |
def __init__(self): | |
self.mappath = sys.argv[1] | |
self.infile = open(self.mappath) | |
self.outfile = open("tmp-mirror.map", 'w') | |
self.text = self.infile.read() |
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
#!/bin/bash | |
# Please read to make sure you really want to use this program | |
# it hasn't been tested. | |
# Requires lzop | |
mkdir -p ~/.lolcate | |
case "$1" in |
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
$ cat hello.rs | |
fn main() { | |
let temp = 0; | |
io::println(~"Hello world!"); | |
} | |
$ rustc --pretty pos ./hello.rs | typelist.py | |
<intrinsic> 12 8 12 30 fn() -> *() |
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
package main | |
import ( | |
_ "github.com/bmizerany/pq" | |
//"runtime" | |
"database/sql" | |
"log" | |
"math/rand" | |
) |
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
enum Shape { | |
Circle { | |
radius: float | |
}, | |
NoShape, | |
} | |
fn main() { | |
let mut c = Circle{radius: 5.0}; | |
match c { |
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
function _square($0$0, $0$1) { | |
var label = 0; | |
var __stackBase__ = STACKTOP; STACKTOP = (STACKTOP + 32)|0; assert((STACKTOP|0) < (STACK_MAX|0)); | |
var $__make_return_pointer=__stackBase__; | |
var $__llargbundle=(__stackBase__)+(8); | |
var $1=(__stackBase__)+(24); | |
var $2=(($__llargbundle)|0); | |
var $st$0$0=(($2)|0); | |
HEAP32[(($st$0$0)>>2)]=$0$0; | |
var $st$1$1=(($2+4)|0); |
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<link rel="import" href="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../code-mirror/code-mirror.html"> | |
<polymer-element name="my-element"> |
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/env python | |
import argparse | |
URL_TEMPLATE = "http://computationstructures.org/notes/%s/notes.html#TARGET_" | |
# takes a section number like 6.5.4 and converts it to a URL | |
def section_to_url(chapter, section): | |
lookup = { | |
'3': "information", | |
'4': "circuits", |
OlderNewer