A set of decisions made that are difficult to reverse.
- Request/Response: APIs, Web Apps, CLIs
- Event Driven: Games, Diego
- Batch: scheduled jobs
Doesn’t mean start at the UI, it means start at the point you want to discover.
time za |
https://www.wmata.com/components/stations.cfc?method=getNextTrains&StationCode=D05&returnFormat=JSON | |
stations = { | |
{ code: "G03", name: "Addison Road-Seat Pleasant"}, | |
{ code: "F06", name: "Anacostia"}, | |
{ code: "F02", name: "Archives-Navy Memorial-Penn Quarter"}, | |
{ code: "C06", name: "Arlington Cemetery"}, | |
{ code: "K04", name: "Ballston-MU"}, | |
{ code: "G01", name: "Benning Road"}, |
https://docs.cloudfoundry.org/buildpacks/custom.html
mkdir -m 0755 /nix && chown vcap /nix
su vcap
. /home/vcap/.nix-profile/etc/profile.d/nix.sh
nix-env --install darkhttpd
nix-env --install cowsay
import glob | |
import yaml | |
def read_yaml(filename): | |
""" Read yaml file """ | |
with open(filename, 'r') as data: | |
return yaml.load(data) | |
from .newamerica_api_client import NAClient | |
from article.models import Article | |
from django.utils.text import slugify | |
import csv | |
import json | |
def get_programs(program_id): |
Goals
# opencontrols.yaml
system_name: Cloud.Gov # Name of system
system_key: CloudGov
markdown_docs: markdowns # Path to markdown docs
var data = {'UACodes': []}; | |
var gaUniversal = window.ga; | |
if (typeof gaUniversal === "function") { | |
gaUniversal.getAll().map(function (element){ | |
data['UACodes'].push({ | |
version: 'Google Analytics Universal', | |
trackingId: element.get('trackingId'), | |
anonymizeIp: element.get('anonymizeIp'), | |
forceSSL: element.get('forceSSL') | |
}) |