Skip to content

Instantly share code, notes, and snippets.

View JacobAMason's full-sized avatar

Jacob Mason JacobAMason

View GitHub Profile
@JacobAMason
JacobAMason / Microservice.Architecture.with.Docker.md
Last active November 30, 2017 04:42
Microservice Architecture with Docker

Microservice Architecture with Docker

Microservice architecture is a good solution for companies trying to maximize their resources, both human and machine, to develop clean, maintainable, scalable, available code. In order to take advantage of this architecture, we must first comprehend it, and then learn how to master it. Microservice Architecture is a solid, modern architecture and Docker is the best way to get started with this architecture.

Microservice Architecture

Microservice Architecture is a modern architecture designed explicitly for independence, scalability, and reliability through system failure. In their definitive expose on microservices [1], James Lewis and Martin Fowler describe the “common characteristics” that such an architecture should possess. They define microservices to be a style of architecture for “developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API” [[1

{
init: function(elevators, floors) {
const TOP_FLOOR = floors.length-1;
var downFloors = [];
var upFloors = [];
function add_to_queue_sorted(elevator, floorNum) {
elevator.destinationQueue.push(floorNum);
elevator.destinationQueue = $.unique(elevator.destinationQueue);
@JacobAMason
JacobAMason / savebook8.sh
Created January 13, 2017 23:12
Grab all savebook8 downloads
wget -r --no-verbose --no-parent --no-host-directories --cut-dirs=1 --header="Referer: http://savebook8.com/download/" -A php http://savebook8.com/download/ -P "savebook8/" && rename php pdf savebook8/*.php
@JacobAMason
JacobAMason / TankDriveOpMode.java
Last active November 25, 2015 23:04 — forked from mdttrump97/TankDriveOpMode.java
Having servo problems.
package com.qualcomm.ftcrobotcontroller.opmodes;
import com.jacobamason.FTCRC_Extensions.Drive;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.GyroSensor;
import com.qualcomm.robotcore.hardware.OpticalDistanceSensor;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.hardware.TouchSensor;
import com.qualcomm.robotcore.util.Range;
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("argc is %d\n", argc);
int i;
for(i = 0; i < argc; i++)
{
printf("argv[%d] is '%s'\n", i, argv[i]);
}