Skip to content

Instantly share code, notes, and snippets.

View mhaidarhanif's full-sized avatar
🧊
developing people and software

M Haidar Hanif mhaidarhanif

🧊
developing people and software
View GitHub Profile
@mhaidarhanif
mhaidarhanif / index.html
Last active August 29, 2015 13:58 — forked from mbostock/.block
Sistem Surel TCP/IP
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node rect {
cursor: pointer;
fill: #fff;
fill-opacity: .5;
stroke: #3182bd;
stroke-width: 1.5px;
@mhaidarhanif
mhaidarhanif / completed.md
Last active August 29, 2015 14:10
Developer Meetup Schedule in Jakarta
@mhaidarhanif
mhaidarhanif / Grade.java
Created September 25, 2015 08:25
Student Grading
public class Grade {
public String gradeScore(int score) {
String result = "";
if (score >= 60) {
result = "lulus";
} else if (score >= 40) {
result = "nyaris lulus";
@mhaidarhanif
mhaidarhanif / .gitignore
Last active December 15, 2015 00:08
mhaidarh's .gitconfig & global_ignore
# mhaidarh's .gitignore
# https://gist.github.com/mhaidarh/5170182
############
# Git Common
############
# SVN
.svn/
@mhaidarhanif
mhaidarhanif / impress.js
Created May 30, 2013 08:06
Coding Shizzle
/**
* impress.js
*
* impress.js is a presentation tool based on the power of CSS3 transforms and transitions
* in modern browsers and inspired by the idea behind prezi.com.
*
*
* Copyright 2011-2012 Bartek Szopka (@bartaz)
*
* Released under the MIT and GPL Licenses.
@mhaidarhanif
mhaidarhanif / blockstack.txt
Created November 10, 2017 10:02
Blockstack
Verifying my Blockstack ID is secured with the address 13kZVSMFeDCYxR3BmcK6rsN6as8MzpKxCy https://explorer.blockstack.org/address/13kZVSMFeDCYxR3BmcK6rsN6as8MzpKxCy
@mhaidarhanif
mhaidarhanif / index.js
Created April 10, 2019 03:25
Weather Advisor
const adviseMe = weather => {
switch (weather) {
case 'Rainy':
case 'Rain':
return 'bawa payung atau gunakan jas hujan'
break
case 'Stormy':
return 'kabarin keluarga yak'
break
case 'Sunny':
@mhaidarhanif
mhaidarhanif / index.js
Created April 10, 2019 04:04
Daily Steps Tracker
const myDailySteps = [
{
day: 1,
steps: 1900
},
{
day: 2,
steps: 2200
},
{

Keybase proof

I hereby claim:

  • I am mhaidarhanif on github.
  • I am mhaidarh (https://keybase.io/mhaidarh) on keybase.
  • I have a public key whose fingerprint is 5B7C ECD1 1297 5CF4 7F18 47A6 BED4 3734 60DE F204

To claim this, I am signing this object:

@mhaidarhanif
mhaidarhanif / the-rules-of-react.md
Created October 5, 2022 02:03 — forked from sebmarkbage/The Rules.md
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.