Skip to content

Instantly share code, notes, and snippets.

Feature: Make Call
  Scenario: Make Call from app and hangup from phone # features/makeCall.feature:3
find: /Users/dtolbert/Library/Application Support/iPhone Simulator/7.1-64/Applications: No such file or directory
    Given I am on the Make Call page                # features/step_definitions/makeCallSteps.rb:1
    When I push the down arrow to select number      # features/step_definitions/makeCallSteps.rb:48
    Then I should see 2 numbers                      # features/step_definitions/makeCallSteps.rb:52
    When I select number "4022055920"                # features/step_definitions/makeCallSteps.rb:56
    Then I should see the number selected            # features/step_definitions/makeCallSteps.rb:62
    When I push the down arrow to select number      # features/step_definitions/makeCallSteps.rb:48
$ npm test
> catapult-mock@0.1.0 test /home/travis/build/inetCatapult/catapult-mock
> grunt
Running "clean:0" (clean) task
Running "clean:1" (clean) task
Running "jshint:src" (jshint) task
>> 9 files lint free.
Running "jshint:test" (jshint) task
>> 4 files lint free.
Running "jscs:src" (jscs) task
r path = require("path");
module.exports = function (grunt) {
function runTests (browser, done) {
var bin = path.join(__dirname, "bin");
var environment = Object.create(process.env);
var options = {
cmd : "mocha",
args : [ "--reporter", "spec", "--timeout", "30000", "specs/*.js" ],
path = require("path");
module.exports = function (grunt) {
function runTests (browser, done) {
var bin = path.join(__dirname, "bin");
var environment = Object.create(process.env);
var options = {
cmd : "mocha",
args : [ "--reporter", "spec", "--timeout", "30000", "specs/*.js" ],
!/bin/bash
#
# Downloads the appropriate Chrome driver for this system.
#
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BIN_DIR="${BASEDIR}/../bin"
ARCH=`uname -m`
PLATFORM=`uname -s`
@dtolb
dtolb / call_transfer.py
Last active August 29, 2015 14:26
Call transfer using Flask and Bandwidth-SDK
# Example was written with ngrok.io, flask, and bandwidth-sdk
# Pre Reqs:
# pip install flask (http://flask.pocoo.org/)
# pip install bandwidth_sdk (https://github.com/bandwidthcom/python-bandwidth)
# To use:
# Step 1: Order a phone number and assign that to a catapult application with autoanswer
# Step 2: Set the callback URL to POST and the ngrok url (IE: http://eb111111.ngrok.io/callback)
# Step 3: Fill in your information for Catapult ID, Token, Secret
# Step 4: Fill in your information for 'transfer number'
# Step 5: Launch the app: python call_transfer.py
@dtolb
dtolb / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@dtolb
dtolb / SampleReadme.md
Last active January 15, 2016 14:51
Standard Readme for all new Examples

The Title of the app

Description of the app/example and what it should do. This is a first draft on increasing the quality/readability of or examples.

Keep in mind when creating the README that:

  • This is a developers first/second interaction with the app platform. We want the developer to come away with a sense of accomplishment NOT frustration/confusion.
  • This is PUBLIC code that Bandwidth.com is sponsoring! (Think of it as an endorsement)
  • The more handholding through the README the better. Having too much information is better than not enough.

This is where we should introduce the technologies used in this app.

  • Nodejs
@dtolb
dtolb / Basic_Call_tracking.xml
Last active April 13, 2019 05:57
BXML For Call Tracking
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<SpeakSentence gender="male" locale="en_US" voice="paul">Thank you for calling Tom's Tire Shop</SpeakSentence>
<Transfer transferCallerId="+19198281234">
<PhoneNumber>+19198281235</PhoneNumber>
<PhoneNumber>+19198281236</PhoneNumber>
<PhoneNumber>sip:username@sip.demo.bwapp.bwsip.io</PhoneNumber>
</Transfer>
</Response>
@dtolb
dtolb / Bxml.js
Created October 23, 2015 16:02
Create a simple transfer with speak sentence with NodeJS XML
var xml = require('node-bandwidth').xml;
/// Start the XML response
var response = new xml.Response();
// Create the sentence
var speakSentence = new xml.SpeakSentence({sentence: "Thank you for calling, please wait while we connect you.",
voice: "paul", gender: "male", locale: "en_US"});
var transfer = new xml.Transfer({
transferTo: "+19198281234"
});
//Push all the XML to the response