Skip to content

Instantly share code, notes, and snippets.

View broerjuang's full-sized avatar
🏠
Working from home

Juang Wiantoro broerjuang

🏠
Working from home
View GitHub Profile
@broerjuang
broerjuang / routes.js
Last active September 15, 2018 16:35
// @flow
/* eslint-disable */
import * as React from 'react';
import {
EvilIcons as Icon,
MaterialCommunityIcons as MIcon,
} from '@expo/vector-icons';
import {
createStackNavigator,
@broerjuang
broerjuang / navigation.re
Created October 16, 2018 12:36
Experimentation with Navigation
module Navigation = {
type actions = {pop: unit => unit};
[@bs.deriving abstract]
type navigation;
[@bs.send]
external navigate:
(navigation, ~routeName: string, ~params: Js.t({.})=?, unit) => unit =
"navigate";
@broerjuang
broerjuang / reduct.js
Created November 14, 2018 02:54
Reduct (Simple implementation of Redux)
/*
Combine reducers actually a function that takes
an object that has shape
type Reducer = (state, action) => state;
{
[key: string]: Reducer
}
@broerjuang
broerjuang / todolist.re
Created January 5, 2019 10:16
Trying out Revery TodoList
open Revery.UI;
open Revery.UI.Components;
open Revery.Core;
open Revery.Core.Window;
open Revery.Core.Events;
open Revery.Core.Key;
type todo = {
id: int,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<script
crossorigin
src="https://unpkg.com/react@16/umd/react.production.min.js"
@broerjuang
broerjuang / countries.json
Last active May 21, 2019 08:19
Countries
[
{"label": "Afghanistan", "value": "af"},
{"label": "Åland Islands", "value": "ax"},
{"label": "Albania", "value": "al"},
{"label": "Algeria", "value": "dz"},
{"label": "American Samoa", "value": "as"},
{"label": "AndorrA", "value": "ad"},
{"label": "Angola", "value": "ao"},
{"label": "Anguilla", "value": "ai"},
{"label": "Antarctica", "value": "aq"},

Ruangguru Dashboard Plugin

alt text

Rationale

We have bunch of dashboard projects which aim to be a support for our business. The dashboard comes with varied purposes. For example, content designed to upload a video and text content inside ruang belajar. Video Review is design to get fast feedback loop for ruangbelajar video.

We might support another needs. But tracking url can be problematic. First, we need to remember url and sometimes we don't have convention about naming the url. Second, we might end up have dozens of dashboard. Having multiple tabs inside the browser without integration system might also be problematic.

let rubel_apps = {
initial: 'payment_page',
states: {
payment_page: {
on: {
VISIT: 'payment_information_page',
},
},
payment_information_page: {
on: {
module SharedTypes = {
type search = list((string, string));
type path = list(string);
type body = Js.Json.t;
type params = {
search: option(search),
path: option(path),
body: option(body),
@broerjuang
broerjuang / courses.md
Last active August 7, 2019 11:20
research