Skip to content

Instantly share code, notes, and snippets.

View mofodox's full-sized avatar
💀
Scratching my head on 100vh or 100% height

Khairul Akmal mofodox

💀
Scratching my head on 100vh or 100% height
View GitHub Profile
package main
import (
"fmt"
"strings"
)
func main() {
numOfPlayers := 0
index := 1
@mofodox
mofodox / .block
Last active February 21, 2018 08:35
Prayer Times SG
license: mit
jQuery(document).ready(function () {
/*
OFF CANVAS - SIDEBAR TOGGLE
*/
jQuery('[data-toggle="offcanvas"]').click(function () {
jQuery('.row-offcanvas').toggleClass('active');
});
@mofodox
mofodox / Meh.txt
Last active October 12, 2016 09:54
Another YAY!
RULES
- Coworking membership will be flat prices and not reducing price as it scales (label should be per month not per person/month)
- Coworking memberships in the top right are a sum of the coworking shared desks table (the amount of memberships * prices)
- DE is $750 for 1 person a month
- BUT DE > 1 person becomes 700 a month/per person
- DE discount as it scales

Keybase proof

I hereby claim:

  • I am mofodox on github.
  • I am mofodox (https://keybase.io/mofodox) on keybase.
  • I have a public key whose fingerprint is 14ED 756C A3C0 2FF8 19D6 DC6F 632F 8554 B286 E975

To claim this, I am signing this object:

w = "This is the left side of..."
e = "a string with a right side."
print w + e
# The question is: Explain why adding the two strings 'w' and 'e' with + makes a longer string.
# My answer to the question above: This is because Python knows both in 'w' and 'e' are strings and it automatically combines them rather than evaluate it.
@mofodox
mofodox / eia.js
Last active December 17, 2015 12:09
My attempt on getting equilibrium index in an array
function sol(A) {
var eia = A.length,
addLeft = 0,
addRight = 0;
for(var i=0; i<eia; i++) {
addRight += A[i]
}
for(var i=0; i<eia; i++) {
@mofodox
mofodox / dabblet.css
Created June 19, 2012 05:43
Resizable <i> Cloud
/* Resizable <i> Cloud */
html {
min-height: 100%;
font-size: 1em;
background: linear-gradient(#b4bcbf, #fff);
}
.cloud {
display: inline-block;
@mofodox
mofodox / dabblet.css
Created June 7, 2012 11:04 — forked from daneden/dabblet.css
Super simple image-free screen-reader-friendly low-markup loading animation
/**
* Super simple image-free screen-reader-friendly low-markup loading animation
*/
html {
font: 100%/1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
min-height: 100%;
-webkit-font-smoothing: antialiased;
}