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
#!/usr/bin/ruby | |
# encoding: utf-8 | |
# Grab google web fonts and embed them as base64 data URIs | |
# <http://brettterpstra.com/2015/03/14/embedding-google-web-fonts/> | |
require 'base64' | |
if ARGV.length > 0 | |
input = ARGV | |
elsif STDIN.stat.size > 0 | |
input = STDIN.read.strip.split(/\n+/) |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
// IMPORTANT: Requires one row (atr least?) to be "frozen" as column headers!!!! Fails otherwise! | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; |