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
Actual dialogue between two characters in MI-5 Volume 9 Episode 1 | |
Boss: You crack the code? | |
"Techie": Not exactly. Each message between Habib and Talwar has a different dynamic signature. | |
I have to trawl the non-indexed deep web to construct a cipher. It requires a lot of | |
computing power; takes time. | |
Boss: And you're waiting for...? |
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 crawler.crawler | |
(:gen-class) | |
(:require [net.cgrand.enlive-html :as html] | |
org.bovinegenius.exploding-fish)) | |
(def crawled (atom #{})) | |
(defn fetch | |
"Retrieve contents of a page at a given url" |
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 palindrome | |
(:use clojure.test)) | |
(with-test | |
(defn is-palindrome? | |
"is true if the given argument is a palindrome" | |
[string] | |
(loop [string string] | |
(cond | |
(= \space (first string)) |
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
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url=/wordpress/" /></head><body></body></html> |
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
curl -s $riak/$bucket?keys=stream | `which ruby` -rubygems -e "gem 'yajl-ruby'; require 'yajl'; Yajl::Parser.parse(STDIN) {|set| set['keys'] && set['keys'].each {|key| puts key } }" | |
# Delete them all: | |
# curl -s $riak/$bucket?keys=stream | `which ruby` -rubygems -e "gem 'yajl-ruby'; require 'riak'; require 'yajl'; riak = Riak::Client.new; bucket = riak.bucket('$bucket'); Yajl::Parser.parse(STDIN) {|set| set['keys'] && set['keys'].each {|key| p bucket.delete(key) } }" |
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
diff --git a/src/profiles.c b/src/profiles.c | |
index 4f16ae7..9410b5e 100644 | |
--- a/src/profiles.c | |
+++ b/src/profiles.c | |
@@ -204,14 +204,14 @@ av_profile_get_codecs (AVFormatContext *ctx) | |
for (i = 0; i < ctx->nb_streams; i++) | |
{ | |
- if (audio_stream == -1 && | |
- ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) |
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
# torture your app directory | |
for source in $*; do | |
score=`flog $source | grep total | cut -d = -f 1` | |
echo "$score : $source" | |
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
# torture your app directory | |
for source in $*; do | |
score=`flay $source | grep Total | cut -d = -f 2` | |
echo "$score : $source" | |
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
alias rtest="ruby -I\"lib:test\" `echo \`gem which rake\` | sed s/.rb$// | awk '{print $1\"/rake_test_loader.rb\"}'`" |