Skip to content

Instantly share code, notes, and snippets.

View kellyjandrews's full-sized avatar
I don't get it.

Kelly Andrews kellyjandrews

I don't get it.
View GitHub Profile
@kellyjandrews
kellyjandrews / machine.js
Last active June 24, 2020 16:07
Generated by XState Viz: https://xstate.js.org/viz
const videoMachine = Machine({
id: 'video',
initial: 'disconnected',
context: {},
states: {
disconnected: {
on: {
JOIN: 'initialize'
}
},
@kellyjandrews
kellyjandrews / machine.js
Last active May 19, 2020 04:31
Generated by XState Viz: https://xstate.js.org/viz
const userMachine = Machine({
id: 'user',
initial: 'active',
states: {
active: {
after: {
60000: 'finished'
}
},
finished: { type: 'final' }
@kellyjandrews
kellyjandrews / machine.js
Last active May 19, 2020 02:56
Generated by XState Viz: https://xstate.js.org/viz
const authMachine = Machine({
id: 'auth',
context: {
email: '',
password: '',
loginModal: false
},
initial: 'unauthorized',
states: {
unauthorized: {
@kellyjandrews
kellyjandrews / styles.less
Last active January 6, 2020 20:00
Fira Code/Operator Atom Less Settings
atom-text-editor.editor {
font-family: "OperatorMono-Medium";
text-rendering: optimizeLegibility;
font-size: 15px;
font-weight: 400;
line-height: 1.4;
atom-text-editor.editor .syntax--string.syntax--quoted,
atom-text-editor.editor .syntax--string.syntax--regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
@kellyjandrews
kellyjandrews / image_blur.rb
Last active December 3, 2019 23:41
Bootcamp Challenges
class Image
def initialize(image)
@image = image
end
def displayImage
@image.each{|row| puts row.join}
end
@kellyjandrews
kellyjandrews / CreateVoiceApplication.md
Last active February 26, 2019 19:09
Nexmo Readme Boilerplate

Create a Voice Application

This application requires a Nexmo application and phone numbers. To create the application, use the nexmo app:create command with the Nexmo CLI.

The parameters are:

  • <<APP NAME>> - the name of the voice application
  • <<FILENAME>> - the name of the private key file, in this instance <<FILENAME>> is expected
  • <<ANSWER WEBHOOK>> - the webhook called the Nexmo number receives an inbound call
  • <<EVENT WEBHOOK>> - the webhook called when the call status changes
@kellyjandrews
kellyjandrews / 1_post.md
Last active May 24, 2018 15:16
SMS to Slack Integration

Getting Your Customers Feedback from SMS to Slack

Overview

Modern application development teams have adopted Slack as a place to collaborate as a team, and consolidate tools into one location to make operations run more efficiently.

In the case of a mobile app, getting instant feedback from customers via Slack messages can shorten the time to feature development, bug fixes, and other mission-critical use cases.

As an example, your mobile app can send an SMS directly to your customer success team's slack channel when an error occurs, or if a user needs help.

In this tutorial, I want to show you how you can connect your Slack channels to your customers using the Nexmo SMS API. The Nexmo SMS API can be configured to use a webhook for incoming SMS messages. We will use Webtask.io in this example to handle the incoming message and forward it to a Slack webhook.

$ jx install
Context "minikube" modified.
Trying to create ClusterRoleBinding minikube-cluster-admin-binding for role: cluster-admin for user minikube
clusterrolebinding "minikube-cluster-admin-binding" created
Created ClusterRoleBinding minikube-cluster-admin-binding
Created ServiceAccount tiller in namespace kube-system
Trying to create ClusterRoleBinding tiller for role: cluster-admin and ServiceAccount: kube-system/tiller
Created ClusterRoleBinding tiller
Initialising helm using ServiceAccount tiller in namespace kube-system
$HELM_HOME has been configured at /Users/kellyandrews/.helm.
@kellyjandrews
kellyjandrews / Dockerfile
Last active October 23, 2017 21:02
Codeship Example Files
FROM ubuntu:zesty
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
COPY . .
CMD ["printenv"]