September 7, 2012
Neville Li & David Xia
The MIT License (MIT) | |
Copyright (c) 2014 NPR | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#! /usr/bin/ruby | |
require 'iconv' | |
require 'roo' | |
require 'csv' | |
require 'json' | |
begin | |
ARGV.each do |file| | |
file_basename = File.basename(file, ".xlsx") |
// Define those colors. | |
$profiles: ( | |
bandcamp: #4e9bac, | |
delicious: #248cff, | |
facebook: #3b5998, | |
ficly: #b51c2c, | |
flickr: #0063db, | |
github: #4183c4, | |
googleplus: #dd4b39, |
//******************************************* | |
// Level 1, basic API, minimum support | |
//******************************************* | |
/* | |
Modules IDs are strings that follow CommonJS | |
module names. | |
*/ | |
//To load code at the top level JS file, | |
//or inside a module to dynamically fetch |
const pooper = (delay) => { | |
return { | |
lastPoop: null, | |
getPoopDelay () { return delay; }, | |
canPoop: function(now) { | |
return this.lastPoop ? (this.lastPoop + delay) >= now : true | |
}, | |
poop: function(){ | |
if(this.canPoop(new Date())){ | |
//implementation for pooping is omitted |
Preferences > Key Bindings - User | |
Add: | |
[ | |
{ "keys": ["command+shift+r"], "command": "reindent" , "args": { "single_line": false } } | |
] | |
The argument allows the command to also work on the entire file in addition to a selection. |
'use strict'; | |
var React = require('react/addons'); | |
var _ = require('lodash'); | |
var setClass = React.addons.classSet; | |
var MediaObject = React.createClass({ | |
render: function () { | |
var classes = setClass({ | |
'media-left': this.props.horizontalAlignment === 'left', |
#!/bin/sh | |
curl http://cat.www.$1.com.meowbify.com/ > index.html | |
s3cmd put index.html s3://$1.cat/ |