This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
O que você pode dar para o Bandeira, e vencer no céu por isso... | |
________________________________________________________________ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function menu_order_filter($menu) { | |
// | |
// reorder the menu here by operating on $menu | |
// which is an array with position => 'url'; | |
// separators will appear as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function menu_order_filter($menu) { | |
// | |
// reorder the menu here by operating on $menu | |
// which is an array with position => 'url'; | |
// separators will appear as | |
// 'separator1', 'separator2' ... 'separator-last' | |
// | |
// example: | |
// Array | |
// ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function menu_order_filter($menu) { | |
$dev_menu = array('plugins.php', 'tools.php', 'themes.php'); | |
array_splice($menu, 1, 0, $dev_menu); | |
return array_unique($menu); | |
} | |
add_filter('custom_menu_order', create_function('', 'return true;')); | |
add_filter('menu_order', 'menu_order_filter'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Rack::ContentLength | |
run lambda { |env| | |
[200, {'Content-Type'=>'text/html'}, ::File.open("index.html", "r")] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep "string_to_search_in_files" "folder/to/search" -R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install ruby1.9.1-dev libsqlite3-ruby libsqlite3-dev | |
$ sudo gem install sqlite3-ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gem install sqlite3-ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install libsqlite3-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install ruby1.9.1-dev |
OlderNewer