Skip to content

Instantly share code, notes, and snippets.


arief nur andono goldalworming

View GitHub Profile
View object_manipulation.js
datamilestone = [
{milestone_id:"Dog1", milestone_name:"Spot"},
{milestone_id:"Cat1", milestone_name:"Tiger"},
{milestone_id:"Dog2", milestone_name:"Rover"},
{milestone_id:"Cat2", milestone_name:"Leo"}
datastage = [
{kode:"Dog1", stage:1},
{kode:"Cat2", stage:3}
View account_page_ubman.dart
import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
class AccountPage extends StatefulWidget {
_AccountPageState createState() => _AccountPageState();
View gist:502818bf6b189ab369eb6aa49f54dcff
(new-object System.Net.WebClient).DownloadFile('', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
View express_handleaxios.js
var express = require('express');
var app = express();
var Server = require('http').Server;
var server = new Server(app);
var cors = require('cors')
var port = 3131
app.options('*', cors())
app.use(express.urlencoded({ extended: true }));
View copyvalue_vue.js
// dari
// masukan html ini
// <input type="hidden" id="idcopy" :value="copyval">
// <button class="absolute cursor-pointer" style="right:10px;top:100px;" @click="copyvalue()">tes</button>
copyValue () {
let testingCodeToCopy = document.querySelector('#idcopy')
testingCodeToCopy.setAttribute('type', 'text')
goldalworming / delay.js
Created Nov 21, 2018 — forked from eteeselink/delay.js
ES7 async/await version of setTimeout
View delay.js
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
async function something() {
console.log("this might take some time....");
await delay(5000);
goldalworming / index.html
Created Nov 18, 2018 — forked from tarruda/index.html
electron sandbox webview test
View index.html
<webview id="foo" allowpopups sandbox="true" preload="preload-webview.js" src="index.html" style="display:inline-flex; width:640px; height:480px"></webview>
<script type="text/javascript" charset="utf-8">
goldalworming /
Created Nov 7, 2018 — forked from spalladino/
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
goldalworming / SystemInformation.vue
Created Oct 28, 2018
sample use async inside method vue
View SystemInformation.vue
<div class="title">Information</div>
<div class="items">
<div class="item">
<div class="name">Path:</div>
<div class="value">{{ path }}</div>
<div class="item">
<div class="name">Route Name:</div>
goldalworming /
Created Apr 29, 2018 — forked from phwd/
Tornado example of posting to a page (Doesn't handle duplicate posts #506)
#!/usr/bin/env python
# Copyright 2009 Facebook
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at