This file contains hidden or 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
(defun read-system-path () | |
(with-temp-buffer | |
(insert-file-contents "/etc/paths") | |
(goto-char (point-min)) | |
(replace-regexp "\n" ":") | |
(thing-at-point 'line))) | |
(setenv "PATH" (read-system-path)) |
This file contains hidden or 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
[ nova - ~ ] jtj$ sudo brew install couchdb | |
Password: | |
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/nspr/4.8.4 --disable-debug --enable-strip --enable-optimize | |
==> make | |
make -j1 -C config export | |
/usr/bin/cc -o now.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM now.c | |
/usr/bin/cc now.o -o now | |
/usr/bin/cc -o nsinstall.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM nsinstall.c |
This file contains hidden or 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
Last login: Wed Jul 7 21:25:25 on ttys001 | |
[ nova - ~ ] jtj$ sudo brew install couchdb | |
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz | |
File already downloaded and cached to /Library/Caches/Homebrew | |
==> ./configure --prefix=/usr/local/Cellar/nspr/4.8.4 --disable-debug --enable-strip --enable-optimize | |
==> make | |
make -j1 -C config export | |
/usr/bin/cc -o now.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM now.c | |
/usr/bin/cc now.o -o now | |
/usr/bin/cc -o nsinstall.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM nsinstal |
This file contains hidden or 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
[ nova - ~/oss ] jtj$ sudo brew install -v nspr | |
==> Build Environment | |
CC: /usr/bin/cc | |
CXX: /usr/bin/c++ | |
LD: /usr/bin/cc | |
CFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe | |
CXXFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe | |
MAKEFLAGS: -j2 | |
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz | |
File already downloaded and cached to /Library/Caches/Homebrew |
This file contains hidden or 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
require 'rubygems' | |
require 'nokogiri' | |
require 'mechanize' | |
require 'open-uri' | |
url = "http://www.rema1000.dk/Default.aspx?ID=83" | |
doc = Nokogiri::HTML(open(url)) | |
puts "Number of links using Nokogiri: " + doc.search("a").size.to_s |
This file contains hidden or 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
require 'net/http' | |
Net::HTTP.start("multimedia.pol.dk") { |http| | |
resp = http.get("/archive/00493/Greece_Mail_Bombs_493553y.jpg") | |
open("foo.jpg", "wb") { |file| | |
file.write(resp.body) | |
} | |
} |
This file contains hidden or 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
URL: | |
http://avdi.org/devblog/2011/08/18/do-we-need-constants/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+VirtuousCode+%28Virtuous+Code%29 | |
Error: | |
connect() timed out! Fatal error: Cannot use object of type WP_Error as array in /home/avdi/avdi.org/devblog/wp-content/plugins/embed-github-gist/embed-github-gist.php on line 86 |
This file contains hidden or 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
URL: | |
http://avdi.org/devblog/2011/08/18/do-we-need-constants/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+VirtuousCode+%28Virtuous+Code%29 | |
Error: | |
connect() timed out! Fatal error: Cannot use object of type WP_Error as array in /home/avdi/avdi.org/devblog/wp-content/plugins/embed-github-gist/embed-github-gist.php on line 86 |
This file contains hidden or 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
Brio tog-ting | |
Lamaze trekantet spejl | |
Grøn Trip Trap stol | |
Bobles elefant | |
Wheely bug | |
Kalimba |
This file contains hidden or 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
module RCat | |
class LinePrinter | |
def print_line(line) | |
print line | |
end | |
end | |
class PrinterDecorator | |
def initialize(printer) | |
@printer = printer |
OlderNewer