| Feature | Divshot | Firebase |
|---|---|---|
| Global CDN | ✓ | ✓ |
| Custom Domains | ✓ | ✓ |
| SSL Supported | ✓ | ✓ |
| Command-Line Tools | ✓ | ✓ |
| Simple Rollback | ✓ | ✓ |
| Free w/ Firebase | ✓ |
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
| app=dumb-hook-example&user=michael%40intridea.com&url=http%3A%2F%2Fdumb-hook-example.herokuapp.com&head=dd615b2&head_long=dd615b2dff8c35abfcbd49b45fb4e9d2cb965874&prev_head=8a0e2c7&git_log=%20%20*%20Michael%20Bleigh%3A%20Add%20another. |
- On the page, under Page Options select a Custom theme and use this URL:
https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css - In the source editor, switch to CSS and add this line:
@import url(https://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.min.css) - Now you should be able to add Font Awesome icons using the source editor.
Note: We aim to have more robust icon support in the future, but this is a workaround that should work for now!
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
| # Put this in a new directory, then run `rackup` | |
| require 'sinatra' | |
| require 'grape' | |
| class Web < Sinatra::Base | |
| get '/' do | |
| "Hello world." | |
| 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
| require 'pony' | |
| Pony.options = { | |
| :via => :smtp, | |
| :from => "Somebody <notifications@example.com>" | |
| } | |
| if ENV['RACK_ENV'] == 'development' | |
| require "letter_opener" | |
| Pony.options.merge!({ | |
| via: LetterOpener::DeliveryMethod, |
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>Divshot Demo Output</title> | |
| <link rel="stylesheet" href="https://app.divshot.com/css/divshot-util.css"> | |
| <link rel="stylesheet" href="https://app.divshot.com/css/bootstrap.css"> | |
| <link rel="stylesheets" href="https://app.divshot.com/css/bootstrap-responsive.css"> | |
| </head> | |
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
| RSpec::Matchers.define :have_json_key do |expected_key| | |
| match do |response| | |
| @body = MultiJson.load(response.body) | |
| result = @body.key?(expected_key.to_s) | |
| result &&= @body[expected_key.to_s] == @expected_val if @val_provided | |
| result | |
| end | |
| chain :with_value do |val| |
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 'multi_json' | |
| require 'base64' | |
| require 'openssl' | |
| require 'faraday' | |
| now = Time.now.utc.to_i | |
| def encode(hash) | |
| Base64.urlsafe_encode64(MultiJson.dump(hash)) | |
| 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>Divshot Welcome - Welcome to Divshot (Divshot Prototype)</title> | |
| <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
| <script type='text/javascript' src='http://divshot.dev/assets/preview.js'></script> | |
| <link rel='stylesheet' href='http://divshot.dev/assets/preview.css' /> | |
| </head> | |
| <body> | |
| <div class='container-fluid'> |
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
| module Bouncy | |
| def self.mappings | |
| @@mappings ||= [] | |
| end | |
| def self.bounce! | |
| mappings.each(&:bounce!) | |
| end | |
| def self.runner(const_name) |