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/python | |
import datetime | |
import json | |
import os | |
import subprocess | |
import urllib2 | |
""" | |
Sets your mac desktop background to be a recent picture of the earth from space | |
""" |
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> | |
path.sparkfill { | |
fill:#c0d0f0; | |
} | |
path.sparkstroke { | |
stroke:#0000f0; | |
stroke-width:1px; | |
fill:none; |
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 eventSelect = d3.select("body").append("select").attr("name", "event").attr("onchange", "window.selectedEvent = this.value; window.getProperties()"); | |
var prop1Select = d3.select("body").append("select").attr("name", "prop1").attr("onchange", "window.property1 = this.value; window.query()"); | |
var prop2Select = d3.select("body").append("select").attr("name", "prop2").attr("onchange", "window.property2 = this.value; window.query()"); | |
window.selectedEvent = 'Viewed report'; | |
window.property1 = '$os'; | |
window.property2 = 'mp_country_code'; | |
MPAPI.top_events().done(function (results) { |
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/python | |
import subprocess | |
import sys | |
""" | |
Used in a tmux session, connects a synchronized interactive ssh session to all | |
hostnames read from stdin (1 per line). Preserves all ssh arguments. | |
Example usage: | |
tmux |
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/python | |
import subprocess | |
import sys | |
""" | |
Used in a tmux session, connects a synchronized interactive ssh session to all | |
hostnames read from stdin (1 per line). Preserves all ssh arguments. | |
Example usage: | |
tmux |
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
(define (unit-valid unit) | |
(equal? (sort unit <) (list '1 '2 '3 '4 '5 '6 '7 '8 '9))) | |
(define (units-valid func lst n) | |
(if (eqv? n 8) | |
(unit-valid (func lst n 0)) | |
(and (units-valid func lst (+ n 1)) (unit-valid (func lst n 0))))) | |
(define (nth-row lst n i) | |
(let ((cell (list (list-ref lst (+ (* n 9) 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/python | |
import subprocess | |
import sys | |
""" | |
Used in a tmux session, connects a synchronized interactive ssh session to all | |
hostnames read from stdin (1 per line). Preserves all ssh arguments. | |
Example usage: | |
tmux |
NewerOlder