Skip to content

Instantly share code, notes, and snippets.

@irwansyahwii
irwansyahwii / PlantUMLGrammar.md
Last active November 14, 2021 10:20
PlantUML Grammar
statement -> element_expr:*  {% id %}
	| null {% id %}

element_expr -> actor_expr {% id %}
	| boundary_expr  {% id %}
	| call_expr {% id %}
	| participant_expr {% id %}
@irwansyahwii
irwansyahwii / traveloka-bus.ts
Created October 7, 2017 14:43
Traveloka Bus Riddle
import * as Rx from 'rxjs/Rx';
let currentBus:string = "";
let Bus106Interval = Rx.Observable.interval(3000).map(() => currentBus = ('106'));
let Bus77Interval = Rx.Observable.interval(3000).map(() => currentBus = ('77'));
Bus77Interval.toPromise();
@irwansyahwii
irwansyahwii / index.coffee
Created October 16, 2015 09:52
Electron Most Basic App
app = require("app")
BrowserWindow = require("browser-window")
Path = require("path")
require("crash-reporter").start()
mainWindow = null
app.on("window-all-closed", ->
@irwansyahwii
irwansyahwii / pizza-anim.coffee
Created September 14, 2015 09:10
Back and Forth Pizza Animation With SimpleLayer
require("./Framer")
containerLayer = new Layer
width: Screen.width
height: Screen.height
backgroundColor: "black"
layer1 = new Layer
image: "http://www.pizzeriatrapanese.it/wp-content/uploads/2015/03/pizza-1.jpg"