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
from collections import deque | |
def preorder3(tree): | |
s = deque([tree]) | |
s = [tree] | |
while s: | |
t = s.pop() | |
if t: | |
# print(t.value,end='') | |
s.append(t.right) |
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
<html> | |
<body> | |
<h1 style="background-color: yellow;">Herkese merhaba</h1> | |
</body> | |
</html> |
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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
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
{ | |
"users":[ | |
{ | |
"id":134182720, | |
"id_str":"134182720", | |
"name":"Ömer Selçuk Cihan", | |
"screen_name":"scihan", | |
"location":"Turkey", | |
"description":"Engineering, training", | |
"url":"https://t.co/WTvwzNT0WI", |
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
[ | |
{ | |
"lat":53.65, | |
"lng":-1.7833 | |
}, | |
{ | |
"lat":56.5474, | |
"lng":-61.686 | |
}, | |
{ |
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
{ | |
"Records": [ | |
{ | |
"awsRegion": "us-east-1", | |
"s3": { | |
"bucket": { | |
"name": "sesler" | |
}, | |
"object": { | |
"key": "speech_20191219095654760.mp3" |
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
import boto3 | |
import json | |
import logging | |
import time | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
transcribe = boto3.client('transcribe') |
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
import boto3 | |
import json | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
s3 = boto3.resource('s3') | |
ses = boto3.client('ses') |
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
{ | |
"Records": [ | |
{ | |
"awsRegion": "us-east-1", | |
"s3": { | |
"bucket": { | |
"name": "turkce-yazi" | |
}, | |
"object": { | |
"key": "speech_20191219095654760.mp3_1576761873.json" |
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
function callService(param, shouldThrow) { | |
return new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
if (shouldThrow) { | |
reject("Hatalı: " + param); | |
} else { | |
resolve("Başarılı: " + param); | |
} | |
}, 300); | |
}); |
OlderNewer