docker pull osgeo/gdal:alpine-small-3.0.2
docker run -it --rm -v /home/jeff/Data:/root/hostData/ osgeo/gdal:alpine-small-3.0.2 /bin/sh
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
div#main { | |
overflow: hidden; | |
position: relative; | |
height: 100%; | |
width: 100%; | |
} | |
div.tile { |
I hereby claim:
- I am miccolis on github.
- I am miccolis (https://keybase.io/miccolis) on keybase.
- I have a public key whose fingerprint is 7E2A 0B70 BFC0 2B04 FCA7 04A9 45B3 552F F64D D041
To claim this, I am signing this object:
This file contains hidden or 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/sh | |
if id -u sumo >/dev/null 2>&1; then | |
echo "User sumo exists..." | |
else | |
groupadd -f sumo && | |
useradd -g sumo sumo | |
echo "Create user sumo..." | |
fi | |
/opt/SumoCollector/collector stop > /dev/null 2>&1 || true |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdint.h> | |
int main() { | |
// B7, G7 & G#7 intentionally differ from the hex values in the data sheet | |
static int octave[12] = {0x892B, 0x9153, 0x99F7, 0xA31F, 0xACD2, 0xB719, 0xC1FC, | |
0xCD85, 0xD9BD, 0xE6B0, 0xF467, 0x102F0}; | |
for (int i = 0; i < 95; i++) { |
This file contains hidden or 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
#!/usr/bin/env node | |
/** | |
* Gets the number of minutes before a bus shows up at a particular bus stop. | |
* | |
* Usage: ./nextbus.js API-KEY STOP-ID | |
*/ | |
// Since WMATA uses Mashery you need to get a Mashery account, and then register | |
// your application. See http://developer.wmata.com/ | |
var apiKey = process.argv[2]; |
This file contains hidden or 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
var assert = require('assert'); | |
var tests = [ | |
{hsl: [0, 0, 0], rgb: [0, 0, 0]}, // black | |
{hsl: [0, 0, 1], rgb: [255, 255, 255]}, // white | |
{hsl: [0, 1, 0.5], rgb: [255, 0, 0]}, // red | |
{hsl: [120, 1, 0.5], rgb: [0, 255, 0]}, // green | |
{hsl: [240, 1, 0.5], rgb: [0, 0, 255]}, // blue | |
// http://www.december.com/html/spec/colorcodes.html |
This file contains hidden or 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/sh | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
FILES=`ls -a $DIR`; | |
for FILENAME in $FILES; do | |
if [ ${FILENAME:0:1} == "." -a ${#FILENAME} -gt "2" ]; then | |
EXT=${FILENAME##*.} |