print("importing sdk")
class FooClass:
pass
Foo = FooClass()
This file contains hidden or 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 http.client | |
original_request = http.client.HTTPConnection.request | |
intercepted_requests = [] | |
def intercepted_request(self, *args, **kwargs): | |
intercepted_requests.append(args[1][1:]) | |
return original_request(self, *args, **kwargs) | |
# intercept requests |
This file contains hidden or 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 recurse(current: string, remaining: { left: number; right: number; }) { | |
if (remaining.left === 0 && remaining.right === 0) { | |
return [current] | |
} else { | |
let result = [] | |
// check if we can go with a "(" | |
if (remaining.left) { | |
let balance = 0 | |
for (const s of current) { | |
if (s === '(') { |
- By default all new buckets are private
- You can have bucket policies and ACLs (ACL can go down to individual objects)
- Read after write consistency for puts of new objects
- Eventual consistency for overwrite PUTs and DELETEs
- Storage classes
- S3 standard (99.99 availability, 11 9s durability) can sustain loss of 2 facilities concurrently
- S3-IA lower fee than S3 but you are charged a retrieval fee (99.9% availability)
- S3 One Zone - IA lower cost option if you don't need multi AZ data resilience (99.5% availability)
- S3 Intelligent Tiering
This file contains hidden or 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
<!doctype HTML> | |
<html> | |
<head></head> | |
<body> | |
<button id="uykuButonu">Uyu</button> | |
<script type="module" src="./utils.js"></script> | |
<script type="module" src="./index.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
const utils = require('./utils.js'); | |
console.log(`${utils.DEFAULT_SLEEP_MILLISECONDS} milisaniye uyuyalım `); | |
utils.sleep() | |
.then(_ => { | |
console.log(`3000 milisaniye uyuyalım `); | |
return utils.sleep(3000); | |
}); |
This file contains hidden or 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
const utils = require('./utils.js'); | |
console.log(`${utils.DEFAULT_SLEEP_MILLISECONDS} milisaniye uyuyalım `); | |
utils.sleep() | |
.then(_ => { | |
console.log(`3000 milisaniye uyuyalım `); | |
return utils.sleep(3000); | |
}); |
This file contains hidden or 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 sleep from './utils.js' | |
console.log(`3000 milisaniye uyuyalım `); | |
sleep(3000); |
This file contains hidden or 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 {DEFAULT_SLEEP_MILLISECONDS, sleep} from './utils.js' | |
console.log(`${DEFAULT_SLEEP_MILLISECONDS} milisaniye uyuyalım `); | |
sleep() | |
.then(_ => { | |
console.log(`3000 milisaniye uyuyalım `); | |
return sleep(3000); | |
}); |