Skip to content

Instantly share code, notes, and snippets.

@dtolb
dtolb / sip.md
Last active September 18, 2024 19:32
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 / howto-faq.md
Created February 1, 2017 22:57
how-to

How To Edit the FAQ

@dtolb
dtolb / howto-faq.md
Last active January 21, 2020 16:40
how-to
@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 / 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 / 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 / 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 / example_find.py
Last active April 19, 2017 23:55
Find and save python examples
#!/usr/bin/python
# import modules
import os
import glob
import shutil
import pprint
import sys
import getopt