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
#!/bin/bash | |
# IPv6 Tunnel setup of an sixxs.net tunnel on Linux using the configuration file `/etc/network/interfaces` | |
# (needs the `ip` tool from the iproute suite, Ubuntu package: <http://packages.ubuntu.com/iproute>) | |
# | |
# Run like this: | |
# ./setup_etc-network-interfaces_static-ipv6-tunnel-via-sixxs.sh | |
# | |
# 2011 by Philipp Klaus | |
# Published on <http://blog.philippklaus.de/2011/05/sixxs-static-6in4-ipv6-tunnel-on-ubuntu-debian/> |
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
require 'chunky_png' | |
class ChunkyPNG::Image | |
def at(x,y) | |
ChunkyPNG::Color.to_grayscale_bytes(self[x,y]).first | |
end | |
end | |
img = ChunkyPNG::Image.from_file('engine.png') |
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
acpi-support | |
acpid | |
adduser | |
adium-theme-ubuntu | |
aisleriot | |
alacarte | |
alsa-base | |
alsa-utils | |
anacron | |
app-install-data |
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
j--r.info/gn Bosch WVH 28420 Front Loading Washing Machine *£636 j--r.info/gv [appliancedeals.co.uk] (free delivery) | |
j--r.info/go BOSCH SMS69L12GB Dishwasher *£476.99 j--r.info/gw [electrical123.com] | |
j--r.info/gp Bosch KGV36V10GB Fridge Freezer £456.88, *£358.99 #amazon j--r.info/gx [iguanadirect.co.uk] | |
j--r.info/gs Breville JK147-01 Cordless Jug Kettle £42.00 #amazon | |
j--r.info/gr Breville VST004 Silver 2 Slice Sandwich Toaster Easy Clean £24.29 #amazon | |
j--r.info/gq Kenwood JK455 Energy Saving Kettle, Stainless Steel *£44.95 j--r.info/gz [johnlewis.com] | |
j--r.info/gt Kenwood TTM405 Toaster Polished Steel £56.30 #amazon | |
* - price from buycentral.co.uk |
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
<tests> | |
<summary/> | |
<records> | |
<test> | |
<summary> | |
<path>1</path> | |
<description>return the element which matches @colour="red"</description> | |
</summary> | |
<records> | |
<io> |
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
require 'hashcache' | |
require 'rscript' | |
require 'rexml/document' | |
include REXML | |
@@get_routes = {}; @@post_routes = {} | |
@@services = {} | |
@@templates = {} | |
@content_type = 'text/html' | |
@rsf_cache = HashCache.new(cache: 5) |
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
# converted from JavaScript; source: http://blog.jgc.org/2010/06/1010-code.html | |
def calculate_tt(lat, lon) | |
alphabet = "ABCDEFGHJKMNPQRVWXY0123456789".split(//) | |
base = alphabet.length | |
lat += 90.0 | |
lon += 180.0 | |
lat *= 10000.0 |
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
puts 'Hello World' |