Skip to content

Instantly share code, notes, and snippets.

@manters2000
manters2000 / rails-commands
Last active January 21, 2016 06:43
Common 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 December 19, 2015 06:23
Common 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 December 3, 2015 00:24
Useful Sublime Text Snippets
<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 September 17, 2015 02:41 — forked from ikoner/menu
Forked Gist
functions.php
// register wp_nav_menu
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus( array(
'topMenu' => __( 'topMenu', 'smsApp' )
)
);
}