Skip to content

Instantly share code, notes, and snippets.

Avatar

Emmanuel Rosani manters2000

View GitHub Profile
@manters2000
manters2000 / rails-commands
Last active Jan 21, 2016
Common Rails Commands
View rails-commands
Common Rails Commands
rails new app
rails server
rails generate Scaffold name:string email:string
bundle exec rake db:migrate
rails console
bundle exec rake test
bundle exec guard init
bundle exec guard
@manters2000
manters2000 / git-commands
Last active Dec 19, 2015
Common Git Commands
View git-commands
Useful Git Commands:
git config --global user.name "Emmanuel Rosani"
git config --global user.email "manters2000@cicct.usjr.edu.ph"
//Ignore files globally
//Create .gitignore_global file in the user directory containing files/folders you wish to ignore
git config --global core.excludesfile Users\Rosani\.gitignore_global
git add .
@manters2000
manters2000 / sublime.txt
Last active Dec 3, 2015
Useful Sublime Text Snippets
View sublime.txt
<snippet>
<content><![CDATA[
(function(){
$0
})();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>siaf</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
@manters2000
manters2000 / menu
Last active Sep 17, 2015 — forked from ikoner/menu
Forked Gist
View menu
functions.php
// register wp_nav_menu
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus( array(
'topMenu' => __( 'topMenu', 'smsApp' )
)
);
}
You can’t perform that action at this time.