-
Bower init
-
Add .bowerrc with following
This tells bower where to install sass files.
{
// get bootstrap template from either: | |
// getboostrap.com, wrapbootstrap, or some other site | |
// create website for Acme Company | |
// HOME PAGE | |
// simple welcome | |
// ABOUT PAGE (input bacon ipsum) |
<?php | |
$count = 0; | |
do { | |
$count++; | |
echo `say $count . ' bat... ah ah'`; | |
} while($count < 5); | |
sleep(1); |
# make sure path is set properly | |
export PATH=/usr/local/bin:$PATH | |
# shortcuts to edit and reload bash profile | |
alias ebp="vim ~/.bash_profile" | |
alias rbp="source ~/.bash_profile" | |
alias test | |
# shortcut to edit hosts file | |
alias ehf="sudo vim /etc/hosts" |
<?php | |
// Remember the class is aware. | |
// ========================== | |
function askElaine() { | |
echo 'Do you like me yes || no!' . PHP_EOL; | |
} | |
function doesLikeMe() { | |
echo 'I just want to be friends!' . PHP_EOL; |
<%= link_to 'Deposit', new_transaction_path(type: 'deposit') %> | |
# routes | |
get 'transactions/new/:type' => 'transactions#new' | |
resources :transactions | |
transactions GET /transactions(.:format) transactions#index | |
POST /transactions(.:format) transactions#create | |
new_transaction GET /transactions/new(.:format) transactions#new | |
edit_transaction GET /transactions/:id/edit(.:format) transactions#edit |
// Create an action for the route | |
public function postToJson() | |
{ | |
// Query here for json you want to return | |
$post = Post::all(); | |
// Send to json response | |
return Response::json($post->toArray(), 200); | |
} |
<?php | |
return array( | |
'debug' => true, | |
); |
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl | |
export PATH="/usr/local/bin:/usr/local/bin/subl:~/bin:$PATH" |