Skip to content

Instantly share code, notes, and snippets.

View shivanibhanwal's full-sized avatar
👩‍💻
Intellectual growth should commence at birth and cease only at death. ~Einstein

Shivani shivanibhanwal

👩‍💻
Intellectual growth should commence at birth and cease only at death. ~Einstein
  • @Lawlytics, ex-Kiprosher
  • Mumbai
  • 23:49 (UTC -12:00)
View GitHub Profile
QUnit.config.testTimeout = 4000;
/*global $ App*/
Ember.onLoad('application', function(application) {
//application.deferReadiness();
});
Ember.onLoad('Ember.Application', function(Application) {
Application.initializer({
name: 'tests',
@markbates
markbates / app.go
Last active October 23, 2018 08:45
package main
import (
"fmt"
"net/http"
)
func HelloHandler(res http.ResponseWriter, req *http.Request) {
res.WriteHeader(200)
name := req.URL.Query().Get("name")
@markbates
markbates / ruby-install
Last active October 23, 2018 08:50 — forked from msolli/ruby-install
Install Ruby 2.2 on OS X Yosemite with Fish shell
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
@ryanb
ryanb / shrine_storage.rb
Created January 31, 2018 20:25
Swap between file system and in-memory storage for Shrine file uploads with RSpec.
# 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)

It’s a shark!