- All inputs should be accessible via keyboard
- Form should be accessible without javascript
- Form should be submitted on 'Enter' hit in a text field.
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/bash | |
echo " | |
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 4443 | |
" | sudo pfctl -ef - |
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
Schedule | |
10:00 Stage A | |
WebVR - The Next Frontier (ENG) | |
Martin Splitt | |
11:00 Stage B | |
Machines Must Suffer (RUS) | |
Oleksandr Pavlyshch |
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 sendEmails() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var startRow = 2; // First row of data to process | |
var numRows = 50; // Number of rows to process | |
// Fetch the range of cells A2:B50 | |
var dataRange = sheet.getRange(startRow, 1, numRows, 2) | |
// Fetch values for each row in the Range. | |
var data = dataRange.getValues(); | |
for (i in data) { | |
var row = data[i]; |
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
class Actions | |
def action_a | |
puts 'A' | |
end | |
def action_b | |
puts 'B' | |
end | |
def action_c |
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
class NestedSerializer(Serializer): | |
name = CharField() | |
... | |
class UserSerializer(Serializer): | |
user = JSONField(validators=nested_validator) | |
... | |
def nested_validator(value): | |
serializer = NestedSerializer(data=value) |
Glue several services together with FaaS. Example: direct S3 upload triggers a function which invokes Rekognition, after that the result is saved by another function to the DynamoDB.
Literally the architecture that responds to HTTP calls. Youcan organize it in various ways too.
- One function for whole service
- Several functions for the service
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 gc | |
import time | |
def readable_time(): | |
return time.strftime('%Y %b %d %H:%M:%S +0000', | |
time.gmtime(time.time())) | |
class Timer: | |
def __init__(self, scope): | |
self.scope = scope or '====' |
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 asyncio | |
import concurrent | |
import threading | |
from concurrent.futures import as_completed, ThreadPoolExecutor | |
from itertools import zip_longest | |
from random import random | |
async def subwork(i): | |
slept = random() % 1 | |
await asyncio.sleep(slept) |
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 uuid import uuid4 | |
from django.conf import settings | |
from django.test import SimpleTestCase | |
from django.utils.decorators import classproperty | |
def _generate_record(host, port): | |
return { |