I hereby claim:
- I am danshultz on github.
- I am danshultz (https://keybase.io/danshultz) on keybase.
- I have a public key whose fingerprint is 2C7F 7E83 2B35 8070 5230 DCF3 4B6A 6969 6764 D1E8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import Ember from 'ember'; | |
var get = Ember.get; | |
export default Ember.Mixin.create({ | |
updateRecord: function (store, type, record) { | |
var data = {}; | |
var serializer = store.serializerFor(type.typeKey); |
ember-deploy
+ ember-deploy-s3
+ ember-deploy-s3-index
npm install --save-dev ember-deploy ember-deploy-s3 ember-deploy-s3-index
server {
listen 80;
server_name foo.example.dev;
location / {
set $s3_bucket 'my-ember-app-index.s3.amazonaws.com';
set $url_full '$1';
import Ember from 'ember'; | |
export default DS.ActiveModelAdapter.extend({ | |
findQuery: function(store, type, query) { | |
// wrap the query in an Ember.Object and pass it through as the "record" to the buildUrl method | |
var url = this.buildURL(type.typeKey, null, Ember.Object.create(query)); | |
return this.ajax(url, 'GET', { data: query }); | |
}, |
# source ~/bin/git-completion.bash | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
source `brew --prefix`/Library/Contributions/brew_bash_completion.sh | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function |
# Monitor the unicorn processes on 10 second intervals | |
unicorn_monitor = Proc.new { | |
require 'socket' | |
require 'json' | |
require 'raindrops' | |
address = "0.0.0.0:8080" | |
socket = Raindrops::InetDiagSocket.new | |
udp = UDPSocket.new | |
while(true) do |
module ActiveRecord | |
module ConnectionAdapters | |
class Mysql2Adapter | |
alias :build_table_structure :structure_dump | |
def structure_dump | |
build_table_structure << build_view_structure << build_function_structure | |
end | |
/*globals $:true*/ | |
(function () { | |
var resizeInterval = 42; | |
var resizeLimit = 1000 / 41 * 5; | |
var initialize = function () { | |
$('iframe[data-normalize]').each(function () { | |
$(this).on('load', normalizeIframe); | |
}); | |
}; |
*.csproj text=auto merge=union | |
*.sln -text merge=union |
server { | |
listen *:80 ; | |
access_log /var/log/nginx/kibana.access.log; | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
location / { | |
root /var/www/apps/kibana_three/current; |