It’s a shark!
This file contains 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
QUnit.config.testTimeout = 4000; | |
/*global $ App*/ | |
Ember.onLoad('application', function(application) { | |
//application.deferReadiness(); | |
}); | |
Ember.onLoad('Ember.Application', function(Application) { | |
Application.initializer({ | |
name: 'tests', |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func HelloHandler(res http.ResponseWriter, req *http.Request) { | |
res.WriteHeader(200) | |
name := req.URL.Query().Get("name") |
This file contains 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
brew update | |
brew install chruby chruby-fish ruby-install openssl readline libyaml gdbm libffi | |
brew cleanup | |
brew tap raggi/ale | |
brew install openssl-osx-ca | |
echo ". /usr/local/share/chruby/chruby.fish" >> .config/fish/config.fish | |
echo ". /usr/local/share/chruby/auto.fish" >> .config/fish/config.fish | |
ruby-install ruby 2.3.0 | |
echo "ruby-2.3" > .ruby-version |
This file contains 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
# This sets up both a memory store and file system store for Shrine file uploads. | |
# We use the memory store by default but in cases where you want to test actual | |
# file uploads you can enable it with `file_upload: true` on a per example basis | |
require "shrine/storage/memory" | |
require "shrine/storage/file_system" | |
# We use a delegator to swap out the storage dynamically | |
# since the storage hash is duplicated for each uploader | |
class Shrine::Storage::Dynamic < SimpleDelegator | |
def initialize(initial, storages) |