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
(-> "http://clojure-log.n01se.net/" java.net.URL. html-resource | |
(select {[:#main [:p (has [:b])]] [:#main [:p (right (has [:b]))]]}) | |
(let-select [[nick] [:b] | |
says [:p :> (but-node #{whitespace :b [:a first-of-type]})]] | |
[(text nick) (apply str (texts says))])) | |
(comment Sample output | |
(["bradbeveridge: " "is Java's ZipInputStream really slow, or am I using it wrong?\n clojurebot: pastebin?\n"] | |
["clojurebot: " "excusez-moi\n"] | |
["bradbeveridge: " "http://clojure.pastebin.com/zR9di5K0"] |
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> | |
#include<cstdlib> | |
#include<cmath> | |
using namespace std; | |
int main() | |
{ |
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
##replacenameofext with your extension name | |
#!/bin/bash | |
# short-name or xpi files name. | |
EXT_NAME=nameofext | |
## Must be lowercase with no spaces | |
CHROME_PROVIDERS="content" | |
# # which chrome providers we have | |
## (space-separated list) | |
ROOT_DIRS="defaults" | |
# ...and these directories |
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
@echo off | |
setlocal | |
set APP_NAME="name of app" | |
set CHROME_PROVIDERS="content" | |
set ROOT_DIR=%CD% | |
set TMP_DIR="build" |
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
ipconfig /flushdns |
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
ipconfig /displaydns |
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
dscacheutil -flushcache |
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
/etc/init.d/nscd restart |
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
sudo easy_install yolk | |
yolk -U | cut -d ' ' -f 2 | xargs easy_install |
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
echo 'Installing numpy ...' | |
sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/numpy-1.4.0.dev7542_20091216-py2.6-macosx-10.6-universal.egg | |
echo 'Installing matplotlib ...' | |
sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg | |
echo 'Installing scipy ...' | |
sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/scipy-0.7.1_20091217-py2.6-macosx-10.6-universal.egg | |
echo 'Installing pymc ...' |
OlderNewer