Skip to content

Instantly share code, notes, and snippets.

Avatar
I don't get it.

Kelly Andrews kellyjandrews

I don't get it.
View GitHub Profile
View machine.js
const videoMachine = Machine({
id: 'video',
initial: 'disconnected',
context: {},
states: {
disconnected: {
on: {
JOIN: 'initialize'
}
},
View machine.js
const userMachine = Machine({
id: 'user',
initial: 'active',
states: {
active: {
after: {
60000: 'finished'
}
},
finished: { type: 'final' }
View machine.js
const authMachine = Machine({
id: 'auth',
context: {
email: '',
password: '',
loginModal: false
},
initial: 'unauthorized',
states: {
unauthorized: {
@kellyjandrews
kellyjandrews / image_blur.rb
Last active Dec 3, 2019
Bootcamp Challenges
View image_blur.rb
class Image
def initialize(image)
@image = image
end
def displayImage
@image.each{|row| puts row.join}
end
@kellyjandrews
kellyjandrews / CreateVoiceApplication.md
Last active Feb 26, 2019
Nexmo Readme Boilerplate
View CreateVoiceApplication.md

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
SMS to Slack Integration
View 1_post.md

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.

View gist:f2d79047b38ecfcc1fea7233844b509b
$ 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 / CoC.md
Last active Sep 29, 2017
Codeship Community Code of Conduct
View CoC.md

Codeship Community Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as community admins pledge to making participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

Expected Behavior

@kellyjandrews
kellyjandrews / Dockerfile
Last active Oct 23, 2017
Codeship Example Files
View Dockerfile
FROM ubuntu:zesty
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
COPY . .
CMD ["printenv"]
You can’t perform that action at this time.