Skip to content

Instantly share code, notes, and snippets.

View tboydar's full-sized avatar
🎯
Focusing

Dar tboydar

🎯
Focusing
View GitHub Profile
void setup() {
size(400, 300);
background(random(255), random(255), random(255));
}
void draw() {
point(random(400), random(300));
line(width/2, height/2, random(400), random(300));
rect(random(400), random(300), 10, 10);

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@tboydar
tboydar / settings.json
Created August 2, 2018 15:30 — forked from doggy8088/settings.json
Will 保哥的 VSCode 使用者設定檔
{
"explorer.openEditors.visible": 0,
"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.sideBar.location": "right",
"editor.wordWrap": "on",
"editor.fontFamily": "'Microsoft YaHei Mono', Consolas, 'Noto Sans CJK TC Medium', 'Courier New', monospace",
"editor.fontLigatures": true,
@tboydar
tboydar / gist:d46e3f8042b14bb8083123c5c05ae687
Created June 20, 2018 12:53
processing list arduino name
/**
* Simple Read
*
* Read data from the serial port and change the color of a rectangle
* when a switch connected to a Wiring or Arduino board is pressed and released.
* This example works with the Wiring / Arduino program that follows below.
*/
import processing.serial.*;
void setup() {
Serial.begin(115200);
pinMode(9, INPUT_PULLUP);
}
void loop() {
Serial.print("sw:");
Serial.print(digitalRead(9));
Serial.print(",x:");
Serial.print(analogRead(0));
@tboydar
tboydar / gist:f2171d845680aacee3d17c35ffa2b54c
Created June 20, 2018 10:42
processing minim audio in
/**
* This sketch demonstrates how to use the BeatDetect object song SOUND_ENERGY mode.<br />
* You must call <code>detect</code> every frame and then you can use <code>isOnset</code>
* to track the beat of the music.
* <p>
* This sketch plays an entire song, so it may be a little slow to load.
* <p>
* For more information about Minim and additional features,
* visit http://code.compartmental.net/minim/
*/
#include <Keyboard.h>
int val1 = 0;
int val2 = 1;
void setup() {
Serial.begin(9600);
Keyboard.begin();
/*
pin digital 2 input 1 , 0
pin digital 3 ~ led 0 ~ 255
TDD / BDD : Test Driven Design, Behavior
*/
int val = 255;
void setup() {
Serial.begin(9600);
/*
TDD: Test Driven Desgin / BDD
INPUT: 2 => INPUT
LED: 3 pwm
serial: 1: led full, 2: led off
*/
void setup() {
/*
TDD: Test Driven Desgin / BDD
INPUT: 2 => INPUT
LED: 3 pwm
serial: 1: led full, 2: led off
*/
void setup() {