[ Launch: practice ] ab75aca4258728a2659d by levibrown
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 "bundler/capistrano" | |
| $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
| require "rvm/capistrano" | |
| set :rvm_ruby_string, '1.9.2@sinatroxy' | |
| set :rvm_type, :system | |
| set :bundle_flags, "--deployment" | |
| set :application, "sinatroxy" | |
| set :repository, "xxx@yyy:sinatroxy" |
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
| au FileType qf call AdjustWindowHeight(3, 10) | |
| function! AdjustWindowHeight(minheight, maxheight) | |
| let l = 1 | |
| let n_lines = 0 | |
| let w_width = winwidth(0) | |
| while l <= line('$') | |
| " number to float for division | |
| let l_len = strlen(getline(l)) + 0.0 | |
| let line_width = l_len/w_width | |
| let n_lines += float2nr(ceil(line_width)) |
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
| /* global require, module */ | |
| var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
| var fileMover = require('broccoli-file-mover'); | |
| var vendorTree = fileMover('vendor', { | |
| files: { | |
| 'ember/index.js': 'ember/ember.js', | |
| 'ember-prod/index.js': 'ember/ember.prod.js' | |
| } |
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
| import ActiveModelAdapter from 'active-model-adapter'; | |
| import ENV from 'self-storage-search/config/environment'; | |
| export default ActiveModelAdapter.extend({ | |
| host: 'http://g5-inventory.herokuapp.com/', | |
| namespace: 'api/v1' | |
| }); |
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
| daemon off; | |
| worker_processes 1; | |
| events { worker_connections 1024; } | |
| http{ | |
| sendfile on; |
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
| // gif by dave aka @beesandbombs :) | |
| int[][] result; | |
| float t, c; | |
| float ease(float p) { | |
| return 3*p*p - 2*p*p*p; | |
| } | |
| float ease(float p, float g) { |
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
| #!/usr/bin/env ruby | |
| # Setup: | |
| # 1) `gem install highline` | |
| # 2) save this file to a local folder | |
| # 3) rename the file to remove extension `mv kube_commands.rb kube_commands` | |
| # 4) change permissions `chmod 755 kube_commands` | |
| # 5) link to your /usr/local/bin `ln -s $PWD/kube_commands /usr/local/bin/` | |
| # 6) in a new shell you should now be able to run `kube_commands` | |
| # 7) add new commands and add to this gist |
For handling authentication with Auth0 we will continue to use our existing gems (g5_authenticatable and g5_authenticatable_api.) The g5_authentication_client gem will be removed as it is no longer applicable. In most cases we should only need to install g5_authenticatable. Moving forward with v2 these codebases will be in the g5search github org and once fully released we can depricate or remove the code in the G5 org.
- Update gem version
source 'https://gem.fury.io/g5dev/' do
gem 'g5_authenticatable', '~> 2.0.6.pre.alpha.gem'
end