For use on:
https://console.aws.amazon.com/s3/home
Only tested in Chrome.
Installation instructions:
- View > Always Show Bookmarks Bar.
<!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%; |
#!/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 |
//When I wrote this, only God and I understood what I was doing | |
//Now, God only knows | |
var fibonacci = function (_) { | |
for(_=[+[],++[[]][+[]],+[],_],_[++[++[++[[]][+[]]][+[]]][+[]]]=(((_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]]))&(((--[[]][+[]])>>>(++[[]][+[]]))))===(_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])))?(_[++[++[[]][+[]]][+[]]]=++[[]][+[]],_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])):+[]; _[++[++[++[[]][+[]]][+[]]][+[]]]--; _[+[]]=(_[++[[]][+[]]]=_[++[++[[]][+[]]][+[]]]=_[+[]]+_[++[[]][+[]]])-_[+[]]); | |
return _[++[++[[]][+[]]][+[]]]; | |
} |
For use on:
https://console.aws.amazon.com/s3/home
Only tested in Chrome.
Installation instructions:
// ==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== |
/* | |
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()) | |
}); | |
*/ |
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) |
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:
''' quick example showing how to attach a pdf to multipart messages | |
and then send them from SES via boto | |
''' | |
from email.mime.text import MIMEText | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
import boto |
colors = ['Red', 'Blue', 'Green', 'Yellow', 'Black'] | |
states = ['Andhra', 'Karnataka', 'TamilNadu', 'Kerala'] | |
neighbors = {} | |
neighbors['Andhra'] = ['Karnataka', 'TamilNadu'] | |
neighbors['Karnataka'] = ['Andhra', 'TamilNadu', 'Kerala'] | |
neighbors['TamilNadu'] = ['Andhra', 'Karnataka', 'Kerala'] | |
neighbors['Kerala'] = ['Karnataka', 'TamilNadu'] |