Skip to content

Instantly share code, notes, and snippets.

View gamell's full-sized avatar
Energized

Joan Gamell gamell

Energized
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@gamell
gamell / controllers.application.js
Last active May 11, 2017 00:42 — forked from mike-north/controllers.application.js
EmberLearn - Ember.Object
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['profile', 'content-box']
});
'use strict';
// Old school prototypical inheritance
function Vehicle(wheels, passengers, type){ // constructor function;
this.wheels = wheels;
this.passengers = passengers;
this.type = type;
};
'use strict';
// Define example vars
let o = {one: 1, two: 2, three: 3};
let array = [1,2,3];
let f = function(i){ return i+1; }
// Add stuff to Object prototype
@gamell
gamell / alexa-conversation-test-example.js
Created February 14, 2017 01:33
Example of an Alexa Integration Test with alexa-conversation
const conversation = require('alexa-conversation');
// your Alexa skill main file. app.handle needs to exist
const app = require('../../index.js');
// those will be used to generate the requests to your skill
const opts = {
name: 'Test Conversation',
app: app,
appId: 'your-app-id'
};

Keybase proof

I hereby claim:

  • I am gamell on github.
  • I am gamell (https://keybase.io/gamell) on keybase.
  • I have a public key whose fingerprint is F1A3 9AB6 7A53 062F 433D 6F52 B907 AC23 E6BF B18D

To claim this, I am signing this object:

function executeCommand(command, callback){
console.log("*** Executing command: " + command);
var options = {
encoding: 'utf8',
timeout: 600000000,
maxBuffer: 10 * 1024 * 2048,
killSignal: 'SIGTERM',
cwd: null,