Skip to content

Instantly share code, notes, and snippets.

View stranger26's full-sized avatar

Ho Chin Chee stranger26

  • Kuala Lumpur, Malaysia
View GitHub Profile
@stranger26
stranger26 / SpacingUtility.css
Created February 6, 2020 06:38
Spacer class for margin & paddings in CSS with CSS variables.
:root {
/* Space - Sizes */
--space-none: 0;
--space-xs: 4px;
--space-s: 8px;
--space-base: 12px;
--space-m: 16px;
--space-l: 24px;
--space-xl: 32px;
--space-xxl: 40px;

Keybase proof

I hereby claim:

  • I am stranger26 on github.
  • I am stranger26 (https://keybase.io/stranger26) on keybase.
  • I have a public key ASDsGGFR-DEDYmdN5GHNtmF2SdIqtMqGvlvDKz2QEQ60gwo

To claim this, I am signing this object:

@stranger26
stranger26 / KlangValley.txt
Created February 13, 2017 18:16
List of Areas in Klang Valley, Malaysia
Ampang
Ampang Hilir
Bandar Damai Perdana
Bandar Menjalara
Bandar Sri Damansara
Bandar Tasik Selatan
Bangsar
Bangsar South
Batu
Brickfields
@stranger26
stranger26 / main.php
Created January 16, 2017 00:36
Wordpress Plugin that Replaces Default Text
<?php
/**
* Plugin Name: Replace 'Register For This Site' Text
* Plugin URI: http://go2online.com
* Description: This plugin replaces default text.
* Version: 1.0.0
* Author: Ho Chin Chee
* Author URI: http://go2online.com
* License: GPL2
*/
@stranger26
stranger26 / button.html
Created December 26, 2016 19:06
Simple Play button for Audio HTML5
<i class="fa fa-play rounded hollow cursor" onclick="!this.firstChild.paused?this.firstChild.pause():this.firstChild.play();">
<audio>
<source src="audio/whitenoise.mp3" type="audio/mpeg">
</audio>
</i>
@stranger26
stranger26 / IntlCountryNumber.txt
Created November 15, 2016 08:08
International Country Mobile Number Code (WP Formcraft)
+93==Afghanistan (+93)
+355==Albania (+355)
+213==Algeria (+213)
+684==American Samoa (+684)
+376==Andorra (+376)
+244==Angola (+244)
+264==Anguilla (+264)
+672==Antarctica (Casey) (+672)
+672==Antarctica (Scott) (+672)
+268==Antigua (+268)
@stranger26
stranger26 / maxlength.js
Created October 14, 2016 17:33
Text Area Max Length by Word Count implemented with Javascript
// TO DO
// Removes the last space input by user
// Ensure code runs after form is loaded
window.onload = function() {
// Main function
function maxLength(el, max) {
el.onkeyup = function() {
var charLength = el.value.length;
Verifying that +stranger is my blockchain ID. https://onename.com/stranger