Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.
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
const LaunchRequest_Handler = { | |
canHandle(handlerInput) { | |
const request = handlerInput.requestEnvelope.request; | |
return request.type === 'LaunchRequest'; | |
}, | |
handle(handlerInput) { | |
let response = handlerInput.responseBuilder; | |
let say = `Estamos en salón. `; | |
say += `Veo veo, ¿qué ves? una cosita, ¿qué cosita es? Empieza por la letra A `; |
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
module.exports = Object.freeze({ | |
translation: { | |
welcome: 'Howdy', | |
images: [ | |
{ | |
background: 'https://image/en-US.png' | |
}, | |
{ | |
background: 'https://image/en-US2.png' | |
}, |
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
sudo apt-get update | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install --lts | |
npm install -g ask-cli |
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
const upsInterceptor={ | |
async process(handlerInput){ | |
let { requestEnvelope, serviceClientFactory, attributesManager} = handlerInput; | |
let {deviceId} = requestEnvelope.context.System.device; | |
const upsServiceClient = serviceClientFactory.getUpsServiceClient(); | |
const usertimeZone = await upsServiceClient.getSystemTimeZone(deviceId); | |
const requestAttributes = attributesManager.getRequestAttributes(); | |
requestAttributes.timeZone = usertimeZone; | |
attributesManager.setRequestAttributes(requestAttributes); | |
console.log(JSON.stringify(attributesManager.getRequestAttributes())); |
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
const b = require('./b') | |
b.b = 'c' | |
module.exports = { | |
a: 'a' | |
} |
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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
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
// Original: | |
// http://hypernephelist.com/2014/08/19/https_on_arduino_yun.html | |
// Libraries | |
#include <Process.h> | |
// Literals | |
// #define DEBUG | |
// Constants |
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
<!-- Declare the permission for body sensor --> | |
<uses-permission android:name="android.permission.BODY_SENSORS" /> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
NewerOlder