Skip to content

Instantly share code, notes, and snippets.

View zaimramlan's full-sized avatar
👨‍💻
Engineering

Zaim Ramlan zaimramlan

👨‍💻
Engineering
View GitHub Profile
@zaimramlan
zaimramlan / GitBranchingRemoteBranch.md
Last active September 11, 2016 15:11
Git - Locally branching into a remote branch

Step 1: Fetch latest data from [REMOTE_NAME] i.e. origin

$ git fetch [REMOTE_NAME]

Step 2: Create and checkout into the desired remote branch

$ git checkout --track [REMOTE_NAME]/[REMOTE_BRANCH_NAME]
@zaimramlan
zaimramlan / HTMLAttributeHideElement.md
Last active September 12, 2016 02:21
Create own HTML tag to hide element of the same class

Step 1: Add the following jQuery snippet to your JS file

$(function(){
    $("[data-hide]").on("click", function(){
        $("." + $(this).attr("data-hide")).hide();
    });
});
@zaimramlan
zaimramlan / RubyConsoleAllObjects.md
Last active September 7, 2016 08:18
View all objects in Ruby Console
ActiveRecord::Base.connection.tables
@zaimramlan
zaimramlan / SimpleHTTPServer.md
Last active September 11, 2016 15:12 — forked from zulhfreelancer/SimpleHTTPServer.md
Start SimpleHTTPServer Using Mac Terminal

Step 1: cd into project folder

cd /path/

Step 2: Enter the following

$ python -m SimpleHTTPServer 8000