List remotes repositories.
git remote -v
Add a new remote upstream repository that will be synced with the fork.
-- 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 |
# 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) |
List remotes repositories.
git remote -v
Add a new remote upstream repository that will be synced with the fork.
// 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( |
#!/bin/bash | |
echo -e "\033[0mCOLOR_NC (NO COLOR)" | |
echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK" | |
echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE" | |
echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN" | |
echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN" | |
echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED" | |
echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE" | |
echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW" |
" Quickly toggle between relative and no relative line numbers | |
function! NumberToggle() | |
if(&relativenumber == 1) | |
set norelativenumber | |
else | |
set relativenumber | |
endif | |
endfunc | |
nnoremap <C-L> :call NumberToggle()<CR> |
import System.Directory | |
import System.Environment | |
import System.IO | |
import Control.Monad | |
import Data.List | |
dispatch :: [(String, [String] -> IO ())] | |
dispatch = [ ("add", add) | |
, ("view", view) | |
, ("remove", remove) |
using System.Net.Http; | |
using System.Text; | |
using System.Web.Http; | |
using Twilio.TwiML; | |
using ValidateRequestExample.Filters; | |
namespace ValidateRequestExample.Controllers | |
{ | |
public class TwilioMessagingRequest | |
{ |
using Microsoft.AspNetCore.Mvc; | |
using Twilio.TwiML; | |
using ValidateRequestExample.Filters; | |
namespace ValidateRequestExample.Controllers | |
{ | |
public class IncomingController : Controller | |
{ | |
[ValidateTwilioRequest] | |
[Produces("text/xml")] |