Skip to content

Instantly share code, notes, and snippets.

View dorman99's full-sized avatar
🎯
Focusing

Muhammad Hafizh Abdillah AR dorman99

🎯
Focusing
View GitHub Profile
@dorman99
dorman99 / index.html
Created September 30, 2017 04:32
firstpage // source https://jsbin.com/siyapo
<!DOCTYPE html>
<html>
<title> firstpage </title>
<h1>MyBook</h1><br/>
<h2>Social Media Kita Bersama</h2>
<p>Bersama kita membangun ekosistem yang sehat dan budaya saling berbagi yang menyenangkan!</p>
<h2>Benefit Join di MyBook</h2>
<ul>
<li>Social Media Yang nyaman dan Mudah</li>
<li>Fitur yang canggih dan menggunakan teknologi terikini</li>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Form</title>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Form</title>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Form</title>
</head>
<body>
@dorman99
dorman99 / index.html
Created September 30, 2017 05:44
firstpage // source https://jsbin.com/pecipa
<!DOCTYPE html>
<html>
<title> firstpage </title>
<head>
<h1>MyBook</h1><br/>
<h2>Social Media Kita Bersama</h2> </head>
<body> <p>Bersama kita membangun ekosistem yang sehat dan budaya saling berbagi yang menyenangkan!</p>
<h2>Benefit Join di MyBook</h2>
<ul>
<li>Social Media Yang nyaman dan Mudah</li>
<!DOCTYPE html>
<html>
<title>Form</title>
<head>
<h1>Buat account Baru ! </h1>
<p> Silakan isi data di anda pada <em>form</em> berikut :</p>
</head>
<body>
<h3>Sign Up Form</h3><br/>
@dorman99
dorman99 / postjson.js
Created May 17, 2018 04:53 — forked from JacobHsu/postjson.js
#nodejs #npm - post json with node.js (npm request )
var request = require('request');
var options = {
uri: 'https://www.googleapis.com/urlshortener/v1/url',
method: 'POST',
json: {
"longUrl": "http://www.google.com/"
}
};
@dorman99
dorman99 / postjson.js
Created May 17, 2018 04:53 — forked from JacobHsu/postjson.js
#nodejs #npm - post json with node.js (npm request )
var request = require('request');
var options = {
uri: 'https://www.googleapis.com/urlshortener/v1/url',
method: 'POST',
json: {
"longUrl": "http://www.google.com/"
}
};
@dorman99
dorman99 / hasse.nb
Created January 20, 2019 14:33 — forked from Eckankar/hasse.nb
Generating Hasse diagrams in Mathematica
(* Combinatorica contains HasseDiagram,so we need to load it. *)
<<Combinatorica`;
(* The set the partial order operates on. *)
nums = {1, 2, 4, 7, 8, 14, 30};
(* Define our partial order. *)
pOrder[x_, y_] := Divisible[y, x];
(* Generate a directed graph from the partial order. *)
@dorman99
dorman99 / index.js
Last active September 6, 2021 11:28
Find Best Profit Trading
const fs = require("fs");
const file = fs.readFileSync("sample.txt", "utf-8");
const data = file.split(" ");
const findProfit = (buyStats) => {
let bestBuyTime = 0;
let bestProfit = 0;
let currentHodl = 0;
let currentValue = 0;
let lastHodl = 0;