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
| require 'aws-sdk' | |
| require 'listen' | |
| require 'pathname' | |
| require 'terminal-notifier' | |
| module Kloud | |
| class Application | |
| attr_reader :directory, :screen_shots | |
| def initialize(directory) |
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
| Input | |
| |---------------------------------------| | |
| | Search Phrase | Total Searches | | |
| | ======================================| | |
| | Lemurs | 1,000 | | |
| | durham bulls | 500 | | |
| | bull fighting | 100 | | |
| | lemur dance | 2,000 | | |
| | Durham | 700 | | |
| | How to catch a lemur | 35 | |
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
| def params | |
| [0,0] | |
| end | |
| def examples | |
| [ | |
| { | |
| :x => 1, | |
| :y => 3 | |
| }, |
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
| @module-width: 50px; | |
| @module-height: 100px; | |
| @module-link-color: @blue; | |
| div.module { | |
| width: @module-width; | |
| height: @module-height; | |
| background: @module-background; | |
| a { |
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
| # app.rb | |
| require 'sinatra' | |
| require 'net/http' | |
| require 'rexml/document' | |
| class Photo | |
| attr_reader :src, :caption, :first | |
| def initialize(src, caption, count) | |
| @src, @caption = src, caption |
NewerOlder