This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
var_dump(convertE164toDomestic("+81399999999"); | |
public static function convertFromE164($E164Number) | |
{ | |
$contryLength = 1; | |
$country = substr($E164Number, 1, $contryLength); | |
switch ($country) { | |
case '1': $contryLength = 1; break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Amazon.Lambda.Core; | |
using Amazon.S3; | |
using Amazon.S3.Model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"time" | |
) | |
func main() { | |
time.Parse("2006-01-02", "2015-12-01") | |
for d := fromDate; d.Unix() < time.Now().Unix(); d = d.AddDate(0, 0, 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var AWS = require('aws-sdk'); | |
var documentClient = new AWS.DynamoDB.DocumentClient(); | |
function asyncPutDb(hashKey) { | |
return new Promise(function(resolve, reject) { | |
var params = { | |
TableName: process.env.DYNAMODB_TABLENAME, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"encoding/xml" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Receive action="https://ceaseless-trees-XXXX.twil.io/fax.received" /> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update | |
sudo yum groupinstall "Development Tools" | |
sudo yum install zlib-devel.x86_64 | |
sudo yum install perl-ExtUtils-MakeMaker curl-devel expat-devel openssl-devel | |
wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz | |
tar Jxfv git-2.15.1.tar.xz | |
cd git-2.15.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ls -la /tmp/ | |
rm -rf /tmp/wget.$1 | |
rm /tmp/urls.txt.$1 | |
rm /tmp/$1.tar.gz | |
ls -la /tmp/ |
OlderNewer