Skip to content

Instantly share code, notes, and snippets.

View acamino's full-sized avatar
💭
千本桜景厳

Agustin Camino acamino

💭
千本桜景厳
  • Genome, LLC
  • Quito, Ecuador
View GitHub Profile
@acamino
acamino / CallController.Create.cs
Created August 25, 2016 17:13
Blog: Build a Simple Phone Verification System with Twilio Voice, C#, SQL Server, and jQuery
// POST: Call/Create
[HttpPost]
public async Task<JsonResult> Create(string phoneNumber)
{
// Delete a phone number.
await _service.DeleteByPhoneNumberAsync(phoneNumber);
// Create a phone number.
var verificationCode = GenerateVerificationCode();
await _service.CreateAsync(
@acamino
acamino / release_them.rb
Created February 3, 2016 01:40
Releasing Twilio Numbers
# The numbers will be pulled in groups of 50, so if you
# have more than 50 numbers then you'll have to run this
# script more than once.
require 'twilio-ruby'
# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
client = Twilio::REST::Client.new(account_sid, auth_token)
@acamino
acamino / Prelude.hs
Last active December 29, 2015 11:14
CIS 194 Week 4
-- Prelude functions which are defined in terms of foldr
-- http://www.cis.upenn.edu/~cis194/spring13/lectures/04-higher-order.html
length' :: [a] -> Int
length' = foldr (\_ acc -> 1 + acc) 0
sum' :: Num a => [a] -> a
sum' = foldr (*) 1
product' :: Num a => [a] -> a
@acamino
acamino / OneTouchClient.cs
Created November 5, 2015 01:49
OneTouch Support
using System;
using System.Collections.Specialized;
using System.IO;
using System.Net;
using System.Text;
using Authy.Net;
using Newtonsoft.Json;
namespace Authy.Net
{
@acamino
acamino / working-with-forks.md
Last active February 29, 2016 21:59
Working with forks

Working with Forks

List remotes repositories.

git remote -v

Add a new remote upstream repository that will be synced with the fork.

@acamino
acamino / authoring_with_viewsaurus.md
Last active November 8, 2016 19:33
Authoring with viewsaurus

Authoring Tutorials with Viewsaurus

Recently I've been writing a few tutorials for Twilio, so far it was a pleasant experience. It's always fun to play with a nice API in the languages you like, right?

The tool we're using to write these tutorials made our work easy. I enjoyed working with viewsaurus.

If you have to use this viewsaurus,