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
| the | |
| big | |
| brown | |
| fox | |
| is | |
| the | |
| worst | |
| thing | |
| that | |
| is |
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' | |
| require 'nokogiri' | |
| require_relative '../pages_to_epub/lib/pages_to_epub' | |
| pages = [] | |
| DOMAIN = 'https://emberigniter.com/'.freeze | |
| def path(url_path) | |
| url = URI.parse(DOMAIN) |
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 MyString < SimpleDelegator | |
| def cut!(start_pos, end_pos) | |
| new_string = begin | |
| # your magic | |
| end | |
| __getobj__.replace(new_string) | |
| 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
| # ... | |
| class JkRowlingApp < Pakyow::App | |
| router do | |
| get "books" do # Inherited State | |
| send "are cool" | |
| end | |
| 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
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:298:in `block in find_scopes' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:294:in `each' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:294:in `inject' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:294:in `find_scopes' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:198:in `scopes' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/string_doc.rb:169:in `scope' | |
| /Users/jph/.rvm/gems/ruby-2.3.0@pakyow-go/bundler/gems/pakyow-0132cce8c9f9/pakyow-presenter/lib/pakyow/presenter/view.rb:105:in `scope' | |
| /Users/jph/.rv |
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 'uri' | |
| require 'erb' | |
| require 'nokogiri' | |
| require 'rpub' | |
| require 'open-uri' | |
| module Potter | |
| class Fetcher | |
| SITEMAP_URL = "https://www.pottermore.com/sitemap.xml" | |
| URL_MATCHER = /.*\/writing-by-jk-rowling\/(.+)/ |
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 Symbol | |
| def to_proc | |
| Proc.new { |*args| args.first.__send__(self, args.drop(1)) } | |
| 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Privacy Policy</title> | |
| </head> | |
| <body> | |
| <h1>Czech Bot Privacy Policy</h1> | |
| <p>Your information will not be shared with anyone.</p> | |
| </body> | |
| </html> |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| activityAction: Ember.computed('m.state', function() { | |
| const states = ["a", "b", "c", "d", "e", "f"]; | |
| let activity = this.get('m'); | |
| let state = activity.get('state'); | |
| let index = states.indexOf(state); |
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
| 1.upto(107) do |code| | |
| puts "code: #{code} => \033[#{code}mHello, Sexy!\033[0m" | |
| end | |
| # Cool Codes | |
| # 5 => Flashing text =p |