Skip to content

Instantly share code, notes, and snippets.

View retornam's full-sized avatar
🎯
Focusing

retornam retornam

🎯
Focusing
View GitHub Profile
(-> "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"]
#include<iostream>
#include<cstdlib>
#include<cmath>
using namespace std;
int main()
{
##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
@echo off
setlocal
set APP_NAME="name of app"
set CHROME_PROVIDERS="content"
set ROOT_DIR=%CD%
set TMP_DIR="build"
ipconfig /flushdns
ipconfig /displaydns
dscacheutil -flushcache
/etc/init.d/nscd restart
sudo easy_install yolk
yolk -U | cut -d ' ' -f 2 | xargs easy_install
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 ...'