I hereby claim:
- I am aroach on github.
- I am ashleyroach (https://keybase.io/ashleyroach) on keybase.
- I have a public key ASDc2lv9E3kjDITnYLnxRka9xXfsfb0EpK3lstFdGEyWMgo
To claim this, I am signing this object:
| require('dotenv').config() | |
| var Twilio = require('twilio'); | |
| var sgMail = require('@sendgrid/mail'); | |
| var accountSid = process.env.TWILIO_SID; | |
| var authToken = process.env.TWILIO_AUTH_TOKEN; | |
| var client = new Twilio(accountSid, authToken); | |
| sgMail.setApiKey(process.env.SENDGRID_API_KEY); |
| #!/usr/bin/env bash | |
| # Usage: | |
| # To run from workstation: bash -c "$(curl -fsSL <url>)" | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| reset=`tput sgr0` | |
| # echo "${red}red text ${green}green text${reset}" |
| 'use strict' | |
| var util = require('util'); | |
| exports.handler = (context, callback) => { | |
| // Add your code here | |
| var body = JSON.stringify({ | |
| 'username': 'devnetuser', | |
| 'password': 'Cisco123!', | |
| }) |
| 'use strict' | |
| var https = require('https'); | |
| exports.handler = (context, callback) => { | |
| // Add your code here | |
| request( | |
| { | |
| url: 'https://api.github.com/users/aroach/gists', | |
| headers: { | |
| 'accept': 'application/json', |
I hereby claim:
To claim this, I am signing this object:
| Note: I created this for Cisco Live San Diego 2015. | |
| My name is Ashley. | |
| I am the explainer, | |
| In the next 10 mins, | |
| We talk containers | |
| Chapter 1: The situation | |
| Let’s meet a web app |
| angular.module('myApp') | |
| .service('ABTestService', function () { | |
| this.abtestActivateExperiment = function(experimentId) { | |
| console.log(experimentId); | |
| window['optimizely'] = window['optimizely'] || []; | |
| window.optimizely.push(["activate", experimentId]); | |
| console.log(window['optimizely'].variations); | |
| var variation = window.optimizely.variationMap; |