Skip to content

Instantly share code, notes, and snippets.

View rudzainy's full-sized avatar
💬
Building Ranting

Rudzainy Rahman rudzainy

💬
Building Ranting
View GitHub Profile
@rudzainy
rudzainy / state_of_malaysia.rb
Last active May 18, 2022 05:24
A simple Ruby program to illustrate current state of Malaysia
View state_of_malaysia.rb
# state_of_malaysia.rb
# A simple Ruby program to illustrate current state of Malaysia
# This class represents a generalisation of leaders in Malaysia
class MalaysianLeaders
def boleh_harap?
return false
end
def are_not_fighting_for_power?
@rudzainy
rudzainy / box-shadow.html
Created April 28, 2017 10:48 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
View box-shadow.html
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@rudzainy
rudzainy / timestamp.js
Created January 29, 2017 02:37 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
View timestamp.js
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
View js-the-weird-parts-notes.md

JavaScript, the weird parts

link to notes https://git.io/vgpKc

about Sher Minn

  • front-end web engineer
  • funemployed, but joining Viki.com in a week
  • recently spent 3 months in NYC at the Recurse Center
    • retreat for programmers
  • where people go to be better at what they do
View Hide OS X Dock and remove hide delay
defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0 && killall Dock
View Sublime Text 3 - Terminal symlink fix for OS X 10.11 El Capitan
@rudzainy
rudzainy / Gemfile
Last active August 9, 2020 21:40 — forked from stevebourne/Gemfile
Add facebook auth to a Clearance app, using omniauth-facebook
View Gemfile
gem 'omniauth'
gem 'omniauth-facebook'
gem 'clearance'