Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
| # show top top 10 most consuming processes | |
| ps -A --sort -rss -o comm,pmem,pcpu | head -n 11 | |
| # show total size of folder | |
| du -ch | grep total | |
| # show remaning space left on HD | |
| df -h | |
| # show subfolders of current dir and their size |
| shared_examples_for "driver with javascript support" do | |
| before { @driver.visit('/with_js') } | |
| describe '#find' do | |
| it "should find dynamically changed nodes" do | |
| @driver.find('//p').first.text.should == 'I changed it' | |
| end | |
| end | |
| describe '#drag_to' do |
| # NAT interface routing | |
| *nat | |
| # Setup | |
| :PREROUTING ACCEPT [0:0] | |
| :INPUT ACCEPT [2:128] | |
| :OUTPUT ACCEPT [2:120] | |
| :POSTROUTING ACCEPT [2:120] | |
| # Redirect port 80 to port 8080 |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
| # http://wildfish.com | |
| # add the ubuntu gis ppa | |
| sudo apt-get -y install python-software-properties | |
| sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
| sudo apt-get update |
| /** | |
| * allows you to wrap or insert an html tag over a selection/range using rangy | |
| * @param iframe the CKEditor iframe html element | |
| * @param tagName string representation of the tag, such as 'a' for anchor | |
| * @param withNodeFunc function to allow outside modification of the element before injecting/wrapping | |
| */ | |
| function wrapOrInsert(iframe, tagName, withNodeFunc) { | |
| var iframedoc = iframe.contentDocument || iframe.contentWindow.document, | |
| tag = iframedoc.createElement(tagName), | |
| selection = rangy.getIframeSelection(iframe), |
| """ | |
| jQuery templates use constructs like: | |
| {{if condition}} print something{{/if}} | |
| This, of course, completely screws up Django templates, | |
| because Django thinks {{ and }} mean something. | |
| Wrap {% verbatim %} and {% endverbatim %} around those | |
| blocks of jQuery templates and this will try its best |
Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |