Skip to content

Instantly share code, notes, and snippets.

View geramirez's full-sized avatar
:octocat:

Gabriel Ramírez geramirez

:octocat:
  • Amsterdam
  • 18:27 (UTC +02:00)
View GitHub Profile

Architecture

A set of decisions made that are difficult to reverse.

Types

  • Request/Response: APIs, Web Apps, CLIs
  • Event Driven: Games, Diego
  • Batch: scheduled jobs

Outside-In

Doesn’t mean start at the UI, it means start at the point you want to discover.

@geramirez
geramirez / date-output.txt
Last active March 17, 2017 02:32
Test File
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"},
@geramirez
geramirez / CM.md
Last active November 13, 2019 07:36
Compliance Repos

General command line

Change a directory

cd NameofDirectory/NameofSubdirectory

List the files in the current directory

ls

Get the current location from home folder

@geramirez
geramirez / transformation.py
Created March 25, 2016 17:09
transformation script
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

  1. Minimize data stored and written by developer
  2. Allow the inclusion of individual components for CI pipeline use
  3. Organize everything by components to make it less complex for system devs, but force more structure for devs and reviewers.
# opencontrols.yaml
system_name: Cloud.Gov # Name of system
system_key: CloudGov
markdown_docs: markdowns # Path to markdown docs
@geramirez
geramirez / auditor.js
Created February 8, 2016 18:51
AnalyticsCheckerScript
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')
})