A timeline of the last four years of detecting good old window.localStorage
.
October 2009: 5059daa
/* Side notes for calling out things | |
-------------------------------------------------- */ | |
/* Base styles (regardless of theme) */ | |
.bs-callout { | |
margin: 20px 0; | |
padding: 15px 30px 15px 15px; | |
border-left: 5px solid #eee; |
;; Tetrahedron intersection based on this paper & algorithm: | |
;; http://vcg.isti.cnr.it/Publications/2003/GPR03/fast_tetrahedron_tetrahedron_overlap_algorithm.pdf | |
;; | |
;; Unlike original algorithm this implementation produces correct | |
;; results regardless of the orientation/ordering of points defining | |
;; the two tetrahedra. This is achieved via the orient-tetra function, | |
;; which ensures the correct ordering of vertices for this algorithm | |
;; to function properly. | |
;; | |
;; Implementation extracted from upcoming geometry library |
A timeline of the last four years of detecting good old window.localStorage
.
October 2009: 5059daa
(ns nested-vector-ops) | |
(def nested-vector [[:salt 0 5 :deviation 5 10] | |
[:milk 5 4 :deviation 1 2] | |
[:cream 0 0 :deviation 0 0]]) | |
(->> | |
nested-vector | |
(remove (fn [[_ _ _ _ a]] (= "N/A" a))) | |
(sort-by (fn [[_ _ _ _ a]] a)) |
; A REPL-based, annotated Seesaw tutorial | |
; Please visit https://github.com/daveray/seesaw for more info | |
; | |
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
; Seesaw's basic features and philosophy, but only scratches the surface | |
; of what's available. It only assumes knowledge of Clojure. No Swing or | |
; Java experience is needed. | |
; | |
; This material was first presented in a talk at @CraftsmanGuild in | |
; Ann Arbor, MI. |
var empty_list = function(selector) { | |
return selector(undefined, undefined, true); | |
}; | |
var prepend = function(el, list) { | |
return function(selector) { | |
return selector(el, list, false); | |
}; | |
}; | |
var head = function(list) { |
rednaxelafx@fx-laptop:/tmp | |
$ gedit xx.cpp | |
rednaxelafx@fx-laptop:/tmp | |
$ g++ -g xx.cpp | |
rednaxelafx@fx-laptop:/tmp | |
$ g++ -v | |
Using built-in specs. | |
Target: x86_64-linux-gnu | |
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5.1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
Thread model: posix |
$ top -H | |
... | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
19115 root 25 0 576m 217m 9432 R 99.7 5.3 1357:12 java | |
28347 root 25 0 576m 217m 9432 R 99.7 5.3 1191:05 java | |
26912 root 25 0 576m 217m 9432 R 99.3 5.3 114:58.57 java | |
5607 root 25 0 576m 217m 9432 R 99.0 5.3 54:49.02 java |
iTerm2 emacs 24.2.1 -nw with paredit on OS X 10.8 Norwegian layout | |
Left Command is my Meta. | |
Left Alt used for inputting special characters. | |
Caps Lock is mapped to Control. | |
> System Preferences > Keyboard > Keyboard > Special: Caps Lock: ^ Control | |
iTerm > Preferences > Keys: Left Command key mapped to Right Option | |
iTerm > Preferences > Profiles > Keys: Right option acts as: +Esc |
#!/bin/bash | |
################################### | |
# $Id: backup 381 2012-04-03 09:49:08Z netkiller $ | |
# Author: [email protected] | |
# Home: http://netkiller.github.com | |
################################### | |
BACKUP_HOST="localhost" | |
BACKUP_USER="root" | |
BACKUP_PASS="" | |
BACKUP_DIR=/opt/backup |