I hereby claim:
- I am davea on github.
- I am davea (https://keybase.io/davea) on keybase.
- I have a public key whose fingerprint is E6DC 353E 999A F5B8 F97F E692 3C4A E8FD 700D 8B75
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Copyright 2014 Dan Krause | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| CREATE EXTENSION plperlu; | |
| CREATE OR REPLACE FUNCTION read_rabx(text, text) RETURNS boolean LANGUAGE plperlu IMMUTABLE AS $$ | |
| use IO::String; | |
| use utf8; | |
| my ($extra, $key) = @_; | |
| sub netstring_rd ($) { | |
| my ($h) = @_; |
| #!/bin/bash | |
| set -e | |
| DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd | sed -e 's/\/bin$//' )/.." | |
| FROM="$DIR/fixmystreet/conf/general-$1.yml" | |
| TO="$DIR/fixmystreet/conf/general.yml" | |
| [[ -e $FROM ]] || echo "${FROM} doesn't exist" |
| import argparse | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('args', nargs='*') # from __init__.py execute() | |
| parser.add_argument('args', nargs='+') # from base.py LabelCommand add_arguments | |
| print(parser.parse_args(['foo1', 'foo2', 'foo3', 'foo4'])) | |
| # Outputs Namespace(args=['foo4']) |
| #include <Arduino.h> | |
| #include <ESPiLight.h> | |
| #ifdef ENABLE_WIFI | |
| #include <ESP8266WiFi.h> | |
| #define WIFI_SSID "myssid" | |
| #define WIFI_PSK "mypassphrase" | |
| #endif |
| #!/bin/sh | |
| set -e | |
| osascript<<EOF | |
| tell application "Google Chrome" | |
| set windowList to every window | |
| repeat with aWindow in windowList | |
| set tabList to every tab of aWindow | |
| repeat with atab in tabList |
| /* | |
| OpenLayers.js -- OpenLayers Map Viewer Library | |
| Copyright (c) 2006-2015 by OpenLayers Contributors | |
| Published under the 2-clause BSD license. | |
| See https://raw.githubusercontent.com/openlayers/ol2/master/license.txt for the full text of the license, and https://raw.githubusercontent.com/openlayers/ol2/master/authors.txt for full list of contributors. | |
| Includes compressed code under the following licenses: |
| https://docs.google.com/presentation/d/1LXb3QCVqw7285MVvEig_xoy5YUmsSeJY50eL6IzcJi4/edit?usp=sharing |