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 ( | |
"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
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
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
<?php | |
var_dump(convertE164toDomestic("+81399999999"); | |
public static function convertFromE164($E164Number) | |
{ | |
$contryLength = 1; | |
$country = substr($E164Number, 1, $contryLength); | |
switch ($country) { | |
case '1': $contryLength = 1; break; |
NewerOlder