Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View drabiter's full-sized avatar
💭
No energy yet for OSS

Hendra Gunawan drabiter

💭
No energy yet for OSS
View GitHub Profile
### Keybase proof
I hereby claim:
* I am drabiter on github.
* I am hendra (https://keybase.io/hendra) on keybase.
* I have a public key whose fingerprint is AB69 7DEE E39C F39C 519F 7442 2FF1 5173 0543 4A74
To claim this, I am signing this object:
@drabiter
drabiter / register_card.html
Last active August 29, 2015 14:08
Registering Card HTML & JS
<html>
<head>
<title>Register Travel Card</title>
</head>
<body>
<h1>Register Travel Card</h1>
<form action="register_card.php" method="POST" id="card-register-form">
<p>
<label>Card Number</label>
<input class="card-number" value="4111111111111111" size="20" type="text" autocomplete="off"/>
@drabiter
drabiter / reset
Created September 26, 2013 02:40
CSS reset. Source: https://coderwall.com/p/n6k6bq
* {
/* CSS2 Spec defaults for older browsers */
background-attachment: scroll;
background-color: transparent;
background-image: none;
background-position: 0% 0%;
background-repeat: repeat;
border-collapse: separate;
border-spacing: 0;
border-style: none;
@mixin lineHeight($font-value, $colValue)
$lineHeightRatio : 1.618-(1/(2*1.618))*(1-($colValue/(($font-value*1.618)*($font-value*1.618))))
$lineHeightValue : ceil($font-value * $lineHeightRatio)*1px
line-height: $lineHeightValue
@function goldMargin($fontSize, $value: 24)
@return ($value/$fontSize)*1px
p
@drabiter
drabiter / index.html
Created August 22, 2013 05:01
Reveal a section when reached viewport. Original source: http://jsfiddle.net/gbhVy/1/
<html>
<head>
<title>Test</title>
<link rel="stylesheet" src="style.css">
</head>
<body>
<div class="spacer">Spacer</div>
<div id="comments">
<div class="container">
Comments
@drabiter
drabiter / N.java
Last active December 20, 2015 09:59
Connect4K with AI. Run this as applet.
import java.applet.Applet;
import java.awt.AWTEvent;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.util.Arrays;