Skip to content

Instantly share code, notes, and snippets.

{
"data": {
"attributes": {
"deltas": {
"ops": [
{
"insert": "Without the obsessives and the perpetually dissatisfied, and the artist who go back over and over again, repainting what other see as finished, we would never have seen the beauty of deportee."
},
{
"attributes": {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
cities: ['Barcelona', 'London', 'New York', 'Porto'],
destination: 'London',
actions: {
chooseDestination(city) {
this.set('destination', city);
// this.calculateRoute();
;; Open Shells
(defun my-shell (arg)
(interactive "p")
(let ((arg (or arg 1)))
(shell (format "*sh%d*" arg))))
(global-unset-key (kbd "C-z"))
(global-set-key (kbd "C-z 1") '(lambda () (interactive) (my-shell 1)))
{"sample_rate":44100,"samples_per_pixel":256,"bits":16,"length":8262,"data":[0,0,0,0,0,0,0,0,-1,0,-6,9,-19,34,-49,35,-352,174,-445,592,-487,579,-538,512,-551,612,-544,508,-677,544,-508,531,-718,821,-879,687,-584,559,-592,925,-842,711,-613,649,-693,869,-614,714,-763,615,-579,852,-688,559,-711,821,-706,765,-439,570,-448,855,-764,625,-549,545,-537,594,-419,364,-447,755,-437,475,-698,545,-674,345,-453,355,-562,437,-533,451,-439,520,-631,532,-349,500,-418,575,-422,314,-603,452,-545,612,-684,905,-521,582,-624,452,-581,434,-803,773,-1319,1788,-1949,567,-667,1575,-1398,793,-1124,379,-498,951,-1269,777,-594,670,-519,987,-765,1048,-898,679,-667,941,-819,596,-710,471,-543,888,-779,873,-830,693,-599,993,-815,799,-730,1037,-617,878,-849,947,-542,417,-529,612,-692,901,-973,735,-671,672,-756,437,-548,537,-739,611,-936,382,-759,480,-510,563,-812,582,-495,742,-374,513,-559,868,-706,466,-664,665,-512,635,-600,659,-742,762,-572,657,-616,490,-606,679,-442,712,-535,489,-524,625,-628,398,-506,712,-540,637,-739,720,-529,531,-442,55
npm run-script deploy:activate production -- --revision `git rev-parse --short HEAD`
curl https://api.rollbar.com/api/1/deploy/ -F access_token=token -F environment=production -F revision=`git log -n 1 --pretty=format:"%H"` -F local_username=$DOCKBIT_DEPLOYMENT_CREATOR
message="New tag in production, https://dashboard.envoy.com/index.html:`git rev-parse --short HEAD`"
payload="payload={\"text\": \"$message\", \"channel\": \"#garaje\"}"
curl -X POST --data-urlencode "$payload" https://hooks.slack.com/services/foo-token/bar-token/baz-token
#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
ember deploy staging
ember deploy production
ember deploy:activate staging -r `git rev-parse --short HEAD`
else
./deploy-to-staging.rb
fi
ember deploy staging
if [ "$TRAVIS_BRANCH" == "master" ]; then
ember deploy production
fi
/* jshint node: true */
require('dotenv').config({ silent: true });
module.exports = function(deployTarget) {
var ENV = {
build: {}
};
/*
This tells ember-cli-deploy-s3-index how to name the index file.
import Ember from 'ember';
export default Ember.Route.extend({
plugins: Ember.inject.service(),
model(params) {
/*
I'm assuming the plugin service have a method called mount
which "mounts" a plugin. This method returns a promise... Ember
won't move out of the model hook.