This file contains hidden or 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
filetype off | |
filetype plugin indent on | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'mattn/webapi-vim' | |
Bundle 'mattn/gist-vim' | |
Bundle 'vim-ruby/vim-ruby' |
This file contains hidden or 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
filetype off | |
filetype plugin indent on | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'mattn/webapi-vim' | |
Bundle 'mattn/gist-vim' |
This file contains hidden or 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
public boolean breadthFirstSearch(String s) { | |
String currentNode; | |
ArrayList<String> queue = new ArrayList<String>(); | |
queue.add("MI"); | |
Boolean found = false; | |
int iterations = 0; | |
while (found == false) { | |
// Update iteration count | |
iterations++; |
This file contains hidden or 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
<img src="https://s3-eu-west-1.amazonaws.com/plantedd-blog-irish/Slug_Infographic.jpg" _mce_src="https://s3-eu-west-1.amazonaws.com/plantedd-blog-irish/Slug_Infographic.jpg" width="540"> | |
<p>Slugs: Know Your Enemy - An infographic by the team at <a href="http://www.plantedd.com" _mce_href="http://www.plantedd.com">Plantedd</a></p> |
This file contains hidden or 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
<div class="span4"> | |
<%= simple_form_for @project_membership do |f| %> | |
<%= f.association :user, :prompt => "Select a User" , :label => false %> | |
<%= f.hidden_field :project_id, :value => @project.id %> | |
<%= f.submit "Add User", :class => "btn btn-small btn-success pull-right" %> | |
<% end %> | |
</div> |
This file contains hidden or 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
http = require("http") | |
http.createServer((req, res) -> | |
res.writeHead(200, "Content-Type": "text/html") | |
res.end("<h1>Hello World</h1>") | |
).listen(1337, "127.0.0.1") | |
console.log("Server running at http://localhost:1337") |
This file contains hidden or 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
class BusinessesController < ApplicationController | |
def index | |
@businesses = JSON.parse("http://209.61.142.61/api/businesses.json") | |
end | |
def show | |
@business = JSON.parse("http://209.61.142.61/api/businesses/2.json") | |
end | |
end |
This file contains hidden or 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
* executing `deploy' | |
triggering before callbacks for `deploy' | |
* executing `deploy:check_revision' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote [email protected]:markprovan/dropwall.git master" | |
command finished in 2658ms | |
* executing "if [ -d /home/ubuntu/apps/dropwall/shared/cached-copy ]; then cd /home/ubuntu/apps/dropwall/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 27e8423a05c48851a87859f060da743118ce5c0d && git clean -q -d -x -f; else git clone -q [email protected]:markprovan/dropwall.git /home/ubuntu/apps/dropwall/shared/cached-copy && cd /home/ubuntu/apps/dropwall/shared/cached-copy && git checkout -q -b deploy 27e8423a05c48851a87859f060da743118ce5c0d; fi" |
This file contains hidden or 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
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_view/renderer/abstract_renderer.rb:3:in `find_template' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_view/renderer/template_renderer.rb:28:in `determine_template' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_view/renderer/template_renderer.rb:10:in `render' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/rendering.rb:109:in `_render_template' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_view/renderer/renderer.rb:17:in `render' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/streaming.rb:225:in `_render_template' | |
2012-05-01T22:58:52+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_view/renderer/rendere |
This file contains hidden or 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
#FILE | |
module Amazon | |
class Products | |
def self.hello_world | |
return "Hello World!" | |
end | |
def search(query) | |
request = self.build_request(query) |