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
heroku ps -a$1 | awk '/===/ {print $2}' | xargs -L1 -I % heroku ps:scale %=0 |
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
import resolver from './helpers/resolver'; | |
import { | |
setResolver | |
} from 'ember-qunit'; | |
setResolver(resolver); | |
// Since CircleCI runs with PhantomJS 1.9.x, need this to make things | |
// green! | |
if (!Function.prototype.bind) { |
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
<h3>Hello Express</h3> | |
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script> | |
<script> | |
var socket = io.connect('http://localhost:3000', { | |
reconnection: false, | |
reconnectionAttempts: 5 | |
}); | |
socket.on('news', function (data) { | |
console.log(data); |
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
import Ember from 'ember'; | |
import { | |
moduleForModel, | |
test | |
} from 'ember-qunit'; | |
moduleForModel('experiment'); | |
test("cloneAsNew: creates a new unsaved model", function(assert) { | |
var model = this.subject(); |
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
Router.map(function() { | |
this.route('emulate', { path: '/emulate' }, function() { | |
this.route('show', { path: '/:my_model_id' }); | |
}); | |
}); | |
export default Ember.Route.extend({ | |
model: function(params) { | |
if (params.my_model_id) { | |
return this.store.find("my-model", params.my_model_id); |
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
dependencies: | |
pre: | |
- npm install -g istanbul | |
general: | |
artifacts: | |
- ./coverage |
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
tasks: | |
- name: find release | |
uri: url=https://api.github.com/repos/{{ org_name }}/{{ repo_name }}/releases/{{ release_version }} | |
user={{ auth_user }} | |
password=x-oauth-basic | |
force_basic_auth=yes | |
return_content=yes | |
register: github |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "*", | |
"Resource": "*" | |
} | |
] | |
} |
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
Looks like AWS is down again: | |
EC2ResponseError: 401 Unauthorized | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response><Errors><Error><Code>AuthFailure</Code><Message>AWS was not able to validate the provided access credentials</Message></Error></Errors><RequestID>f2a2bccd-2150-4e41-bcf3-7577e2ce1e00</RequestID></Response> | |
archit@ip-10-0-0-10:~/provisioning/hosts/production$ |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
mouseDown() { | |
this.get("cry")(); | |
} | |
}); |