Skip to content

Instantly share code, notes, and snippets.

@dtolb
dtolb / deploy.sh
Created April 12, 2017 23:16
deploy.sh
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails
SOURCE_BRANCH="master"
TARGET_BRANCH="gh-pages"
function doCompile {
make
sleep 1
cp -a _book/. out/
@dtolb
dtolb / groupMMS_hack.md
Created March 27, 2017 23:57
Internal Group Messaging Hackathon

Group Messaging Bandwidth Hackathon

Overview

Each dev team can take two (consecutive) days over the course of a normal sprint cycle. During the hackathon time everyone forms in team of 3-5 cross team pairing encourages (work with someone you don't know, but not enforced) and works on an idea/project with v2 Group Text Messages.

Each team will sumbit code after 2 days.

Prizes

  • 1st: $1,000 Amex Prize (for team)
@dtolb
dtolb / replace.py
Created March 2, 2017 20:59
convert comments from camel to snake
import re
def convert_comment_string_to_snake_case(s):
"""
Changes String to from camelCase to snake_case
:param s: String to convert
:rtype: String
:rertuns: String converted to snake_case
"""
# regex = r"(\s+##\s+\'\w+)((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))(\w+\'.+)"
# a = re.compile("(\s+##\s+\'\w+)((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))(\w+\')")
@dtolb
dtolb / convert_came_to_snake.py
Last active March 1, 2017 19:15
conversion.py
import re
import warnings
def convert_string_to_snake_case(s):
"""
Changes String to from camelCase to snake_case
:param s: String to convert
:rtype: String
:rertuns: String converted to snake_case
@dtolb
dtolb / howto-faq.md
Last active January 21, 2020 16:40
how-to
@dtolb
dtolb / howto-faq.md
Created February 1, 2017 22:57
how-to

How To Edit the FAQ

@dtolb
dtolb / sip.md
Last active June 19, 2018 19:30
js sip

JSSIP with Bandwidth API

Prerequisites

  • Register for Bandwidth Application Platform account here
  • Register a SIP domain
  • Create an endpoint/user
  • If you want to make calls to the PSTN (normal phones) you will need a server to handler events from Catapult
  • Make phone calls
@dtolb
dtolb / introDevBw.md
Last active December 14, 2016 15:37
intro-dev-bw

Introducing dev.bandwidth.com

Over the past few months, we have been working to redesign our documentation page for our Communcations API Platform and Dashboard products.

Why the update?

As Bandwidth has grown as an API company, we wanted to refresh our documentation with a focus on the developers using the API.

So, we went out and gathered feedback from all our local developers and read blogs. Lots and lots of blogs. The biggest take-away was 'show me code!'. So we went out and searched different doc sites that put code first and rich with examples.

@dtolb
dtolb / masked-numbers.md
Last active December 5, 2016 22:03
Migrate-Masked-Numbers-To-Bandwidth

Airtng App: Masked Numbers Powered By Bandwidth

This is an exmaple of the reasonable amount of work required to migrate an existing voice and messaging application from Twilio to Bandwidth.

The original Airtng demo can be found over at Twilio's website -or- Github Profile.

Masked Numbers help protect your customers' privacy by creating a seamless interaction by provisioning Bandwidth numbers on the fly. Route all voice calls and messages through your very own 3rd party. This allows you to control the interaction between your customers while putting your customer's privacy first.

Migrating to Bandwidth