This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
- NBC
#!/bin/sh | |
# Usage: . testlib.sh | |
# Simple shell command language test library. | |
# | |
# Tests must follow the basic form: | |
# | |
# begin_test "the thing" | |
# ( | |
# set -e | |
# echo "hello" |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
Generate ctags with `rake ctags` | |
Run snipper.rb | |
Put resulting ruby.snippets file where your snippet plugin can pick it up. (I'm using snipmate) |
#!/usr/bin/env bash | |
for num in {1..30} ; do | |
volume=$(printf %02d ${num%.*}) | |
volumefolder="Mangajin v${volume}" | |
mkdir "${volumefolder}" | |
for i in {0..99} ; do | |
if (("$num" > "21")) && (("$num" < "29")) ; then | |
page=$(printf %03d ${i%.*}) | |
else |
Generated with workflows2md.
#!/bin/bash | |
set -e | |
_xcrun() { | |
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer \ | |
xcrun -sdk iphonesimulator \ | |
"$@" | |
} |
Enable ‘Run’ in the ‘Build’ section of your test bundle’s scheme. (See http://www.raingrove.com/2012/03/28/running-ocunit-and-specta-tests-from-command-line.html)
$ gem install kicker open4 colored xcodebuild-rb
#!/usr/bin/env ruby | |
# Script to generate PDF cards suitable for planning poker | |
# from Pivotal Tracker [http://www.pivotaltracker.com/] CSV export. | |
# Inspired by Bryan Helmkamp's http://github.com/brynary/features2cards/ | |
# Example output: http://img.skitch.com/20100522-d1kkhfu6yub7gpye97ikfuubi2.png | |
require 'rubygems' |
// simple cache implementation provide a key that you're looking for and | |
// a function that will compute the value in case of a cache miss | |
async get (key, expensiveFn) { | |
let result = await storage.get(key) | |
if (result === undefined) { | |
result = await expensiveFn | |
await storage.save(result) | |
} | |
return result | |
} |
import android.util.Base64; | |
import android.util.Log; | |
import com.bugsnag.android.Bugsnag; | |
import com.bugsnag.android.MetaData; | |
import com.bugsnag.android.Severity; | |
import com.facebook.react.bridge.*; | |
import java.io.File; | |
import java.io.InputStream; |