Inputs:
- State requirements
- Number of clients
- Security classification of data in the API request or response
- Peak volumes
- Service level distinctions for clients
- Availability requirements
- Latency expectations
- Business metrics
- Transactionality
select | |
pcd.push_date, pci.priority, pci.content_automediaid, sum(pcir.started) run_started, sum(pcir.completed) run_completed, | |
pci.max_runs, stats_base, sum(pcir.stats_billed) stats_billed | |
from | |
push_cycle_day pcd inner | |
join push_cycle_item pci on (pcd.id=pci.push_cycle_day_id) | |
left outer join push_cycle_item_run pcir on (pci.id=pcir.push_cycle_item_id) | |
where | |
pcd.push_date=date(now()) | |
group by pci.id |
#!/bin/bash | |
# vim: set ts=4 sw=4 et nu | |
set -e | |
usage="Usage: $0 <name>" | |
name=$1 | |
if [ -z "$name" ]; then | |
echo $usage | |
exit 1; | |
fi |
" ============================================== | |
" Basics | |
set nocompatible " vi compatibility not a priority | |
set encoding=utf8 | |
set fileencoding=utf8 | |
set expandtab " foce convert tabs to spaces | |
set ts=4 " tabs are 4-space aparts |
#!/usr/bin/env php | |
<?php | |
# dependencies: | |
# php curl extension | |
$usage = "USAGE: {$argv[0]} --client_id=... --privkey=... --url=... --method=... --ctype=... --body=...\n"; | |
$options = getopt('', array('client_id:', 'privkey:', 'url:', 'method:', 'ctype:', 'body:')); | |
$timeout = 60; |
@font-face { | |
font-family: 'gibsonregular'; | |
src: url('font/gibson-webfont.eot'); | |
src: url('font/gibson-webfont.eot?#iefix') format('embedded-opentype'), | |
url('font/gibson-webfont.woff') format('woff'), | |
url('font/gibson-webfont.ttf') format('truetype'), | |
url('font/gibson-webfont.svg#gibsonregular') format('svg'); | |
font-weight: normal; | |
font-style: normal; |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.lighttpd</string> | |
<key>ProgramArguments</key> | |
<array> |
#!/usr/bin/env perl | |
use strict; | |
my $chars_str = '3456789ABCDEFGHJKMNPRSTUVWXY'; | |
my @chars = split //, $chars_str; | |
# a b c d | |
my $template = [ 0, 0, 0, 0, 0 ]; | |
my $dead_end = 0; |
Inputs:
#Mobile Development Web Resources
#!/usr/bin/env python | |
import timeit | |
REPEATS= 10 | |
using_forloop_total = timeit.timeit( | |
""" | |
d={} | |
for n in range(1000000): | |
d["%10d" % n] = "%10d" % n | |
""", number=REPEATS) |