This file contains 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
tell application "iTerm" | |
activate | |
tell the current terminal | |
activate current session | |
-- launch dailygraphics tab | |
launch session "Default Session" | |
tell the last session | |
set name to "dailygraphics" |
This file contains 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
/* | |
* Wrap a block of text to a given width | |
* via http://bl.ocks.org/mbostock/7555321 | |
*/ | |
var wrapText = function(texts, width, lineHeight) { | |
texts.each(function() { | |
var text = d3.select(this); | |
var words = text.text().split(/\s+/).reverse(); | |
var word = null; |
This file contains 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
tell application "iTerm" | |
tell current window | |
tell current session | |
-- dailygraphics-next tool pane | |
set name to "dailygraphics-next" | |
set webserver to (split vertically with default profile) | |
-- CHANGE path to your needs | |
write text "cd ~/src/dailygraphics-templates/" | |
write text "git pull" | |
-- CHANGE path to your needs |
OlderNewer