Skip to content

Instantly share code, notes, and snippets.

@dikyarga
dikyarga / machine.js
Created May 30, 2021 15:49
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@dikyarga
dikyarga / machine.js
Created December 18, 2020 01:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@dikyarga
dikyarga / index.html
Created November 19, 2016 19:32
Original file index.html Atom Quick Start
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@dikyarga
dikyarga / main.js
Created November 19, 2016 19:08
Original file dari Electron Quick Start
const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window will
@dikyarga
dikyarga / index.html
Created November 19, 2016 14:30
File HTML yang dipanggil dari main.js
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePolitan</title>
<style media="screen">
</style>
</head>
<body>
<!-- Webview adalah method yang disediakan Electron -->
@dikyarga
dikyarga / main.js
Created November 19, 2016 14:19
File utama yang dijalakan oleh Electron
const electron = require('electron')
// Modul utama untuk mengendalikan aplikasi Elektron
const app = electron.app
// Modul untuk membuat jendala native (asli) peramban
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')
// Untuk menginisialiasi dan menjaga object window, jika ini tidak dilakukan