Some CoffeeScript (verbosely commented for clarity)
# Override Rails handling of confirmation
$.rails.allowAction = (element) ->
# The message is something like "Are you sure?"
message = element.data('confirm')| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/usr/bin/env ruby | |
| require 'fog' | |
| require 'open-uri' | |
| class BrandsmithDNS | |
| def initialize | |
| @dns = Fog::DNS.new(:provider => 'rackspace', :rackspace_api_key => 'xxxxxxxxxxxxxxxxxx', :rackspace_username => 'yyyyyyyyyyyyyyyyyy') | |
| @record = @dns.zones.get('11111111').records.get('A-222222222') | |
| end |
| var Plan = (function() { | |
| // protected | |
| var records = []; | |
| // the Plan constructor | |
| function Plan(key, id, price) { | |
| this.id = id; | |
| this.price = price; | |
| var more = key.split('||'); |