- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
// ==UserScript== | |
// @name Mike's timesheet improvements | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Add plus time buttons to the new GetMyTime | |
// @author Michael Maurizi | |
// @match https://app.getmytime.com/timesheet.aspx | |
// @grant none | |
// ==/UserScript== |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
from slacker import Slacker | |
import itertools | |
slack = Slacker('<API TOKEN>') | |
pages = slack.files.list(page=1).body['paging']['pages'] | |
all_the_files = list(itertools.chain(*[slack.files.list(page=i).body['files'] for i in range(1,pages + 1)])) | |
biggest_first = sorted(all_the_files, key=lambda f: f['size'], reverse=True) |
//When I wrote this, only God and I understood what I was doing | |
//Now, God only knows | |
var fibonacci = function (_) { | |
for(_=[+[],++[[]][+[]],+[],_],_[++[++[++[[]][+[]]][+[]]][+[]]]=(((_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]]))&(((--[[]][+[]])>>>(++[[]][+[]]))))===(_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])))?(_[++[++[[]][+[]]][+[]]]=++[[]][+[]],_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])):+[]; _[++[++[++[[]][+[]]][+[]]][+[]]]--; _[+[]]=(_[++[[]][+[]]]=_[++[++[[]][+[]]][+[]]]=_[+[]]+_[++[[]][+[]]])-_[+[]]); | |
return _[++[++[[]][+[]]][+[]]]; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Torque runtime example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
# rpm | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
-O jdk-7-linux-x64.rpm | |
# ubuntu |
/* | |
Sample use: | |
var loc = new LocationFinder(-41.29247, 174.7732); | |
$.when(loc.findUserLocationAsync()).then(function (lat, lng) { | |
// console.log("Lat & lng set as: ", loc.usersPosition()) | |
}); | |
*/ |
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
#!/bin/bash | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat |