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
| /* | |
| * Modified on 11.02.2014 by walidvb | |
| * to add a 'visual' checkbox, added by the soundcloud API | |
| * | |
| * | |
| * | |
| */ | |
| <?php |
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="top-swiper-container" swiper="vert" my-fullscreen="y" ng-controller="mainCtrl" ng-class="{'info-open': infoOpen, 'nav-open': navOpen}"> | |
| <navigation ng-controller="infoCtrl"> | |
| <div id="info"> | |
| <div id="info-wrapper" my-info="data.info" ng-click="toggleInfo()"> | |
| </div> | |
| </div> | |
| <div class="nav-trigger" ng-click="toggleNav();"><span></span></div> | |
| <div class="pagination-wrapper"> |
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 mail_subscribers(book, attrs = {}) | |
| @book = book | |
| @body ||=attrs[:body] | |
| if attrs[:attachments] | |
| puts attrs[:attachments] | |
| attrs[:attachments].all? { | |
| |attachment| | |
| attachments[attachment[:filename]] = attachment[:content] |
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
| -----o-----master | |
| \------o-------int | |
| \--------------br1 | |
| To: | |
| -----o-----master | |
| \--------------int |
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
| Book | |
| has_many chapters | |
| accepts_nested_attributes_for :chapters, :allow_destroy => true | |
| Chapter | |
| belongs_to :book | |
| has_one :storyboard | |
| has_many :tiles, :through => :storyboard | |
| accepts_nested_attributes_for :tiles, :allow_destroy => true | |
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 Chapter < ActiveRecord::Base | |
| has_attached_file :file, | |
| :storage => :filesystem | |
| def to_file | |
| if Rails.env != "test" | |
| #open(file.url) { |f| @content = f.read} | |
| @content = file.copy_to_local_file.read | |
| @filename = file_file_name | |
| else |
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
| if fetching /*, fetch /app/* | |
| if ! request.referer is collinfontaine.ch | |
| if ! (/drupal/user || /drupal/admin || drupal/node/*/edit) | |
| rewrite /drupal to /app #to avoid people visiting the drupal site | |
| if crawler | |
| rewrite / to /drupal/home |
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
| Scenario: Book is private | |
| Given there is a published book | |
| And the book is private | |
| When I visit the book | |
| Then I should be on the home page |
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
| <my-tumblr></my-tumblr> |
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 search(hashtag) | |
| @client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = ENV["TWITTER_CONSUMER_KEY"] | |
| config.consumer_secret = ENV["TWITTER_CONSUMER_SECRET"] | |
| config.access_token = ENV["TWITTER_ACCESS_TOKEN"] | |
| config.access_token_secret = ENV["TWITTER_ACCESS_SECRET"] | |
| end | |
| @client.search(hashtag).attrs[:statuses] | |
| end |
OlderNewer