Skip to content

Instantly share code, notes, and snippets.

View rudzainy's full-sized avatar
💬
Building Gugel

Rudzainy Rahman rudzainy

💬
Building Gugel
View GitHub Profile
@rudzainy
rudzainy / card.js
Last active April 5, 2024 13:10
Hujah Card
import React from 'react'
import { Link } from 'react-router-dom'
import Linkify from 'react-linkify'
import AgreeIcon from '../Icons/agree'
import NeutralIcon from '../Icons/neutral'
import DisagreeIcon from '../Icons/disagree'
import ViewsIcon from '../Icons/views'
import VotesIcon from '../Icons/votes'
import HujahIcon from '../Icons/hujah'
import HujahCardHeader from './card_header'
@rudzainy
rudzainy / state_of_malaysia.rb
Last active May 18, 2022 05:24
A simple Ruby program to illustrate current state of Malaysia
# 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 / Gemfile
Last active August 9, 2020 21:40 — forked from stevebourne/Gemfile
Add facebook auth to a Clearance app, using omniauth-facebook
gem 'omniauth'
gem 'omniauth-facebook'
gem 'clearance'
@rudzainy
rudzainy / timestamp.js
Created January 29, 2017 02:37 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* 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
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

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
@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
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;