I hereby claim:
- I am tjc on github.
- I am tjc (https://keybase.io/tjc) on keybase.
- I have a public key whose fingerprint is 928F E178 7459 A9A5 8D6E 853F 1C1E 2A07 021B 8378
To claim this, I am signing this object:
| lazy val root = (project in file(".")). | |
| settings( | |
| name := "items", | |
| version := "0.1", | |
| scalaVersion := "2.11.7" | |
| ) | |
| libraryDependencies += "org.yaml" % "snakeyaml" % "1.16" | |
| javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint") |
| FROM ubuntu:trusty | |
| MAINTAINER tobyc@strategicdata.com.au | |
| ENV DEBIAN_FRONTEND noninteractive | |
| VOLUME /var/lib/riak | |
| EXPOSE 4369 8080 8087 8098 8099 | |
| COPY 99-http-proxy /etc/apt/apt.conf.d/ | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y curl | |
| RUN curl -s https://packagecloud.io/install/repositories/basho/riak/script.deb.sh | bash |
| // ==UserScript== | |
| // @name OzIsuzu tamper | |
| // @namespace http://your.homepage/ | |
| // @version 0.1 | |
| // @description Tweaks to OzIsuzu forum pages | |
| // @author You | |
| // @match http://www.ozisuzu.com.au/* | |
| // @grant none | |
| // ==/UserScript== |
| /* Taken from https://www.cybercom.net/~dcoffin/dcraw/dcraw.c */ | |
| /* | |
| Adaptive Homogeneity-Directed interpolation is based on | |
| the work of Keigo Hirakawa, Thomas Parks, and Paul Lee. | |
| */ | |
| void CLASS ahd_interpolate() | |
| { | |
| int i, j, top, left, row, col, tr, tc, c, d, val, hm[2]; | |
| static const int dir[4] = { -1, 1, -TS, TS }; |
| /* Taken from https://www.cybercom.net/~dcoffin/dcraw/dcraw.c */ | |
| /* Which itself attributes this algorithm to "Frank Markesteijn" */ | |
| #define TS 512 /* Tile Size */ | |
| #define fcol(row,col) xtrans[(row+6) % 6][(col+6) % 6] | |
| void CLASS xtrans_interpolate (int passes) | |
| { | |
| int c, d, f, g, h, i, v, ng, row, col, top, left, mrow, mcol; | |
| int val, ndir, pass, hm[8], avg[4], color[3][8]; |
| [Unit] | |
| Description=Announce Streuth Service | |
| BindsTo=example.1.service | |
| [Service] | |
| ExecStartPre=/usr/bin/etcdctl set /vulcand/hosts/example.local.net/locations/loc1/path "/.*" | |
| ExecStartPre=/usr/bin/etcdctl set /vulcand/hosts/example.local.net/locations/loc1/upstream example | |
| ExecStart=/bin/sh -c "while true; do etcdctl set /vulcand/upstreams/example/endpoints/ep1 'http://%H:5001' --ttl 60;sleep 45;done" | |
| ExecStop=/usr/bin/etcdctl rm /vulcand/upstreams/example/endpoints/ep1 | |
| Restart=always |
| #!/usr/bin/env perl | |
| use 5.12.0; | |
| use warnings; | |
| use IPC::Run qw(run); | |
| use autodie; | |
| =head1 NAME | |
| convert_flac_to_mp3.pl |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import "fmt" | |
| import "time" | |
| import "github.com/mgutz/ansi" | |
| const ledsAcross = 12 // rows of display | |
| const ledsDown = 16 // columns of display (was 8) | |
| const ledTotal = 12*16 | |
| type Colour struct { |
| // Run with "scala convert.scala" | |
| import scala.xml.XML | |
| import scala.xml.Node | |
| // Given a node, return a trimmed string containing its coordinates | |
| def toCoords(node: Node): String = node match { | |
| case node if ! (node \ "Point").isEmpty => (node \ "Point" \ "coordinates").text.trim | |
| case node if ! (node \ "LineString").isEmpty => (node \ "LineString" \ "coordinates").text.trim | |
| case node if ! (node \ "Polygon").isEmpty => (node \ "Polygon" \ "outerBoundaryIs" \ "LinearRing" \ "coordinates").text.trim | |
| case _ => println(f"node unknown coords: %s", node \ "name"); "unknown" |