Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
🎯
enjoying :)

Vinit Kumar vinitkumar

🎯
enjoying :)
View GitHub Profile
@vinitkumar
vinitkumar / aws-lambda-static-type-checker.md
Created September 20, 2021 04:34 — forked from alexcasalboni/aws-lambda-static-type-checker.md
AWS Lambda Static Type Checker Example (Python3)

How to use Python3 Type Hints in AWS Lambda

TL;DR

Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out lambda_types.py and incrementally improve your code base and development/debugging experience with type hints.

Your Lambda Function code will go from this:

" antirez's .vimrc
" Copyright(C) 2001 Salvatore Sanfilippo
" Enable the syntax highlight mode if available
syntax sync fromstart
if has("syntax")
syntax sync fromstart
syntax on
set background=dark
let php_sync_method="0"

Keybase proof

I hereby claim:

  • I am vinitkumar on github.
  • I am vinitkme (https://keybase.io/vinitkme) on keybase.
  • I have a public key ASCMqfaVb6CdQcTxrz_cncGkL3VAjRbboGonVQftK8EraAo

To claim this, I am signing this object:

def sme():
return 1
import json
import subprocess
import pprint
"""
The goal of this task is to modify the web workers to 2 and timeout to
something like 30 seconds, so that the worker do not cross memory limit
settings['DJANGO_WEB_WORKERS'] = env('DJANGO_WEB_WORKERS', 3)
getImages(URL) {
let allURLS = []
return fetch(URL)
.then((response) => { return response.json(); })
.then((json) => {
allURLS.push(json.results);
let newPhotoList = [...this.state.photoList, ...json.results]
this.setState({photoList: newPhotoList})
const nextURL = json.next;
if (!nextURL) {
image_sorted_list = ['Aggressive.jpg', 'Agonized.jpg', 'Agreeable.jpg', 'Annoyed.jpg', 'Anxious.jpg', 'Apologetic.jpg', 'Arrogant.jpg', 'Bashful.jpg', 'Been.jpg', 'Behind.jpg', 'Birthday.jpg', 'Bitter.jpg', 'Blissful.jpg', 'Brave.jpg', 'Capable.jpg', 'Caring.jpg', 'Cautious.jpg', 'Cheerful.jpg', 'Christmas.jpg', 'Clumsy.jpg', 'Concentrating.jpg', 'Confident.jpg', 'Confused.jpg', 'Cooperative.jpg', 'Courage.jpg', 'Creative.jpg', 'Crooked.jpg', 'Curious.jpg', 'Curly.jpg', 'Demure.jpg', 'Depressed.jpg', 'Design.jpg', 'Determined.jpg', 'Disappointed.jpg', 'Disapproving.jpg', 'Disbelieving.jpg', 'Distasteful.jpg', 'Dream.jpg', 'Eavesdropping.jpg', 'Ecstatic.jpg', 'Embarrassed.jpg', 'Enjoying.jpg', 'Enraged.jpg', 'Envious.jpg', 'Excited.jpg', 'Exhausted.jpg', 'Fantastic.jpg', 'Fearful.jpg', 'Free.jpg', 'Friendly.jpg', 'Frightened.jpg', 'Frustrated.jpg', 'Generous.jpg', 'Gentle.jpg', 'Gloomy.jpg', 'Gratitude.jpg', 'Grieving.jpg', 'Guilty.jpg', 'Hairy.jpg', 'Horrified.jpg', 'Hungover.jpg', 'Hurt.jpg', 'Hysterical.jpg
image_sorted_list = ['Aggressive.jpg', 'Agonized.jpg', 'Agreeable.jpg', 'Annoyed.jpg', 'Anxious.jpg', 'Apologetic.jpg', 'Arrogant.jpg', 'Bashful.jpg', 'Been.jpg', 'Behind.jpg', 'Birthday.jpg', 'Bitter.jpg', 'Blissful.jpg', 'Brave.jpg', 'Capable.jpg', 'Caring.jpg', 'Cautious.jpg', 'Cheerful.jpg', 'Christmas.jpg', 'Clumsy.jpg', 'Concentrating.jpg', 'Confident.jpg', 'Confused.jpg', 'Cooperative.jpg', 'Courage.jpg', 'Creative.jpg', 'Crooked.jpg', 'Curious.jpg', 'Curly.jpg', 'Demure.jpg', 'Depressed.jpg', 'Design.jpg', 'Determined.jpg', 'Disappointed.jpg', 'Disapproving.jpg', 'Disbelieving.jpg', 'Distasteful.jpg', 'Dream.jpg', 'Eavesdropping.jpg', 'Ecstatic.jpg', 'Embarrassed.jpg', 'Enjoying.jpg', 'Enraged.jpg', 'Envious.jpg', 'Excited.jpg', 'Exhausted.jpg', 'Fantastic.jpg', 'Fearful.jpg', 'Free.jpg', 'Friendly.jpg', 'Frightened.jpg', 'Frustrated.jpg', 'Generous.jpg', 'Gentle.jpg', 'Gloomy.jpg', 'Gratitude.jpg', 'Grieving.jpg', 'Guilty.jpg', 'Hairy.jpg', 'Horrified.jpg', 'Hungover.jpg', 'Hurt.jpg', 'Hysterical.jpg
from itertools import repeat
import csv
with open('sheet13.tsv', 'rb') as tsvin, open('new.csv', 'wb') as csvout:
tsvin = csv.reader(tsvin, delimiter='\t')
csvout = csv.writer(csvout)
img_list = []
for row in tsvin:
https://github.com/amirzaidi/Launcher3/releases/download/Pixel-v3.9/Launcher3-aosp-release.apk