Skip to content

Instantly share code, notes, and snippets.

@weldan
weldan / alps
Created January 14, 2015 09:26
alps
The magical highness magically accept me to learn how to do magic at this magical place.
This, just to let you know i am currently make myself busy with all these magical stuff.
I am no harry potter but this place is kind of Hogwarts, so i try my best to rock.
Later.
@weldan
weldan / January 16, 2015
Created January 16, 2015 02:46
January 16, 2015
)
(
_ ___________ )
[_[___________#
Too much distractions..
@weldan
weldan / bashgitbranch.sh
Created January 20, 2015 06:08
Bash prompt with Git branch
This is another thing that makes life easier
#!/bin/bash
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
must.. get this done..
i am not a good team mate i guess he he.
this weekend will try to do something with rails.
i like less and sass.
or should i say, i have grown an interest on front end development?
teh tarik at mike's food court is good.
@weldan
weldan / gist:367e90039bdd55112481
Created January 26, 2015 11:14
Rails: User authentication / Role based authorization
https://github.com/NoamB/sorcery
https://github.com/CanCanCommunity/cancancan
@weldan
weldan / gist:aa5c2013a739e734c2dc
Created January 26, 2015 06:40
Install redis on ubuntu
http://tosbourn.com/install-latest-version-redis-ubuntu/
redis-server will run on background on port number 6379
@weldan
weldan / gist:c1d76a8027f6c5a22bbf
Created January 26, 2015 08:35
CSS; bagi gambar ke tengah div
Satu problem bila letak gambar dalam kotak gambar tu akan nampak bahagian tepi je ikut saiz ditetapkan.
Boleh guna:
vertical-align: middle;
dan
display: table-cell;
@weldan
weldan / gist:2f56015357829f5c01ed
Created January 26, 2015 07:40
A guide to flirting
li.soulmate-suggestion {
text-align: left;
}
@weldan
weldan / gist:1e0555918c8f6bf7d656
Created January 27, 2015 02:55
Books, sea of books
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#ruby-on-rails