I hereby claim:
- I am po5i on github.
- I am po5i (https://keybase.io/po5i) on keybase.
- I have a public key whose fingerprint is A6FA 5ABF B899 5755 B69F 14C8 C0C7 B4F6 2FA5 9180
To claim this, I am signing this object:
codes_dict = { | |
"Afghanistan": "AF", | |
"Albania": "AL", | |
"Algeria": "DZ", | |
"American Samoa": "AS", | |
"Andorra": "AD", | |
"Angola": "AO", | |
"Anguilla": "AI", | |
"Antarctica": "AQ", | |
"Antigua and Barbuda": "AG", |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// Get the PHP helper library from https://twilio.com/docs/libraries/php | |
require_once '/path/to/vendor/autoload.php'; | |
use Twilio\Rest\Client; | |
// Your Account Sid and Auth Token from twilio.com/console | |
$sid = "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
$token = "your_auth_token"; | |
$toNumber = "{fill this in with your number}"; |
curl -X DELETE 'https://api.twilio.com/2010-04-01/Accounts/ACxxxx/Recordings/RExxxx.json' \ | |
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token' |
from datetime import date | |
from twilio.rest import Client | |
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
auth_token = "your_auth_token" | |
client = Client(account_sid, auth_token) | |
recordings = client.recordings.list(date_created_after=date(2012, 1, 1)) | |
for recording in recordings: |
<?php | |
// Get the PHP helper library from https://twilio.com/docs/libraries/php | |
require_once '/path/to/vendor/autoload.php'; | |
use Twilio\Rest\Client; | |
// Your Account Sid and Auth Token from twilio.com/console | |
$sid = "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
$token = "your_auth_token"; | |
$twilio = new Client($sid, $token); |
function convertImagesToBase64 () { | |
contentDocument = tinymce.get('content').getDoc(); | |
var regularImages = contentDocument.querySelectorAll("img"); | |
var canvas = document.createElement('canvas'); | |
var ctx = canvas.getContext('2d'); | |
[].forEach.call(regularImages, function (imgElement) { | |
// preparing canvas for drawing | |
ctx.clearRect(0, 0, canvas.width, canvas.height); | |
canvas.width = imgElement.width; | |
canvas.height = imgElement.height; |