Top-level and nested subcommands.
$ welp login --username aanand -p s3cr3t
$ welp things
Say I have two properties, a
and b
. If I want a stream that combines their values, I can use a.combine(b, <fn>)
. Abstractly, this gets me the following:
a: 0 1 2
b: 0 1 2 3
a,b: 0,0 1,0 1,1 1,2 2,2 2,3
But what I need is a stream that only updates when a
updates, but uses the most up-to-date value of b
. That is:
a: 0 1 2
b: 0 1 2 3
$ ghci sieve.hs | |
*Main> take 10 primes | |
[2,3,5,7,11,13,17,19,23,29] |
// var throttled = source.steady(2) | |
// source: asdf------qwerzxcv--------- | |
// throttled: --a-s-d-f---q-w-e-r-z-x-c-v | |
Bacon.EventStream.prototype.steady = function(delay) { | |
var bus = new Bacon.Bus(); | |
var queue = []; | |
var timeout = null; | |
var emit = function() { |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script> | |
$(function() { | |
var a = document.createElement('audio'); | |
if (!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''))) return; | |
$("a").each(function() { | |
if (!this.href.match(/\.(mp3|mp4|m4a)$/)) return; | |
var audio = $('<audio/>').attr({ |
;(function($) { | |
$.fn.sitDownMan = function() { | |
this.click(function(e) { | |
e.preventDefault() | |
window.location = this.href | |
}) | |
} | |
})(jQuery); |
// | |
// STAppDelegate.m | |
// SpotifyTest | |
// | |
// Created by Aanand Prasad on 21/05/2012. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#import "STAppDelegate.h" | |
#import "STViewController.h" |
loading GPX...99 files loaded (total size 7809.02k) | |
Checking correctness | |
-------------------- | |
checking json...ok | |
checking msgpack...ok | |
checking protobuf...ok | |
preparing serialized data...ok |
#!/usr/bin/env ruby | |
require "optparse" | |
default_file_pattern = "png/*.png" | |
default_output_filename = "out.gif" | |
start = nil | |
finish = nil | |
skip = 1 |
if RUBY_VERSION < '1.9' | |
require 'redgreen' | |
else | |
require 'colored' | |
# A poor person's redgreen. | |
class ActiveSupport::TestCase | |
def run(*args, &block) | |
result = super(*args, &block) |