Hunts down and kills loose Puma Rails server processes.
You only need to run this once.
# Terminal| module AlphabetTesters | |
| # self methods | |
| # activated on require | |
| # must be called with namespace | |
| # e.g. AlphabetTesters.a? | |
| def self.a?(letter) | |
| letter.downcase == "a" | |
| end | |
| def self.b?(letter) |
| require 'rspec/autorun' | |
| # A Set is an Array that is automatically de-duplicated (uniq'd) | |
| require 'set' | |
| #### | |
| ## Coordinate | |
| ## | |
| ## an x,y coordinate pair |
| class Node | |
| def initialize(xml_str) | |
| @name = @attributes = @content = '' | |
| parse(xml_str) | |
| p @name, @attributes, @content | |
| end | |
| def parse(xml_str) | |
| # state indicators | |
| inside_tag = inside_tag_name = inside_tag_attributes = false |
| // Paste into the JavaScript console. | |
| // | |
| // Add "javascript:" to the front if you want to bookmark it | |
| // South Florida Business Journal | |
| $('.content--embargoed').attr('style', 'display: block !important; opacity: 1');$('.paywall--premium').remove();$('.paywall--free').remove();$('.paywall--free').hide();$('.content__segment').show(); | |
| // Miami Herald | |
| $("#ppUI").hide() && $("#pressplusOverlay").hide() |
| # title | |
| puts "Chapter 1" | |
| # line 1 | |
| puts "It was the best of times" | |
| # rest of the text | |
| puts "It was the wrost of times" |
| // because of hoisting, variables are typically declared at the top of the "scope" | |
| // var a = 1; | |
| // var b; | |
| // var h = "hello"; | |
| // you can declare multiple variables at once | |
| // var a = 1, b, h = "hello"; | |
| // make sure the file is working | |
| // console.log('hello'); |