Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Bruno Casali brunoocasali

🏠
Working from home
  • Rockstar Coders
  • window.location
View GitHub Profile
View controllers.application\.js
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
View controllers.application.js
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 Nov 21, 2018 — forked from zapthedingbat/logeverything.js
Log every function call to the console
View logeverything.js
(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 Mar 21, 2017 — forked from jshimko/docker-ssl-deployment.sh
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
View docker-ssl-deployment.sh
# 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
View sublime-desktop-arch.md