Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@tracked prop;
@action
@brunoocasali
brunoocasali / controllers.application.js
Last active September 16, 2019 22:03 — forked from alexdiliberto/controllers.application.js
Ember's Route Hook Order
import Ember from 'ember';
import {inject as service} from '@ember/service';
export default Ember.Controller.extend({
appName: `Ember's Route Hook Order`,
router: service(),
actions: {
clearLog() {
Ember.$('.log-item').remove();
@brunoocasali
brunoocasali / logeverything.js
Created November 21, 2018 13:18 — forked from zapthedingbat/logeverything.js
Log every function call to the console
(function() {
var call = Function.prototype.call;
Function.prototype.call = function() {
console.log(this, arguments);
return call.apply(this, arguments);
};
}());
@brunoocasali
brunoocasali / docker-ssl-deployment.sh
Created March 21, 2017 13:33 — forked from jshimko/docker-ssl-deployment.sh
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
# start a server on Digital Ocean
# https://docs.docker.com/machine/drivers/digital-ocean/
docker-machine create \
--driver digitalocean \
--digitalocean-access-token <YOUR API KEY> \
--digitalocean-size 2gb \
reaction
# tell Docker to run commands on that server