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
| describe Cell do | |
| it "can be created" do | |
| expect(Cell.new).to_not eq(nil) | |
| end | |
| it "can tick" do | |
| cell = Cell.new | |
| expect(cell).to respond_to(:tick!) | |
| 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
| @TodoList = React.createClass | |
| render: -> | |
| `<ul> | |
| {this.props.todos.map( | |
| function(todo, index){ | |
| return (<TodoItem key={index} id={todo.id} description={todo.description} completed_at={todo.completed_at} />) | |
| }, this) | |
| } | |
| </ul>` |
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
| grouped_options = { | |
| 'North America' => [['United States','US', attr: :wat], ['Canada', 'CA', attr: :wat]], | |
| } | |
| grouped_options_for_select(grouped_options) |
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 SignUpLink | |
| constructor: -> | |
| @setEvents() | |
| setEvents: -> | |
| $("#sign-up-link").on "click", @handleClick | |
| handleClick: -> | |
| $(".sign-up-form").show() | |
| $(".sign-in-form").hide() |
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 type="hidden" id="init-data" class="json-data" value="{"profileHoversEnabled":false,"baseFoucClass":"swift-loading","bodyFoucClassNames":"swift-loading","macawSwift":true,"assetsBasePath":"https:\/\/abs.twimg.com\/a\/1425667452\/","assetVersionKey":"c509db","environment":"production","formAuthenticityToken":"e0d92bab025125f0ef0c1f83ac79f339c39dfecc","isInRemoveDiscoverExperiment":false,"loggedIn":true,"screenName":"excid3","fullName":"Chris Oliver","userId":"14057736","allowAdsPersonalization":true,"scribeBufferSize":3,"pageName":"home","sectionName":"home","scribeParameters":{"lang":"en"},"recaptchaApiUrl":"https:\/\/www.google.com\/recaptcha\/api\/js\/recaptcha_ajax.js",&quo |
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
| <%= week_calendar events: @meetings do |date, meetings| %> | |
| <%# Print out the date at the top %> | |
| <%= date %> | |
| <% (0..23).each do |hour| %> | |
| <div class="hour-of-day"> | |
| <%# Print out the current hour %> | |
| <%= Time.parse("#{hour}:00").strftime("%l %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
| require "open-uri" | |
| RUBYGEMS_VERSIONS = { | |
| "1.8" => { | |
| "url" => "https://github.com/rubygems/rubygems/releases/download/v1.8.30/rubygems-update-1.8.30.gem", | |
| "filename" => "rubygems-update-1.8.30.gem" | |
| }, | |
| "2.0" => { | |
| "url" => "https://github.com/rubygems/rubygems/releases/download/v2.0.15/rubygems-update-2.0.15.gem", | |
| "filename" => "rubygems-update-2.0.15.gem" |
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 RepliesController < ApplicationController | |
| require "time" | |
| skip_before_filter :verify_authenticity_token | |
| skip_before_filter :authenticate_teacher! | |
| def receive | |
| # 1. set a @parent based on phone number and/or course number if they exist | |
| # 2/ you then move on to the next state on the parent | |
| @reply = Reply.new |
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 WistiaEmbed | |
| constructor: (original_tag) -> | |
| @base_url = "//fast.wistia.com/oembed/?url=" | |
| @account_url = encodeURIComponent("https://home.wistia.com/medias/") | |
| @original_tag = original_tag | |
| @media_id = original_tag.data("wistia-id") | |
| inject: -> | |
| $.getJSON("#{@base_url}#{@account_url}#{@media_id}&format=json&embedType=seo&videoFoam=true&controlsVisibleOnLoad&callback=?", @parse) |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <feed> | |
| <header> | |
| <id>1</id> | |
| <last_modified>2014-07-20 18:52:55 UTC</last_modified> | |
| </header> | |
| <future> | |
| <entry> | |
| <id>1</id> | |
| <date>2014-07-31 18:30:00 UTC</date> |