I hereby claim:
- I am alex3165 on github.
- I am alex3165 (https://keybase.io/alex3165) on keybase.
- I have a public key ASCXKIsitiBTEviQJU0sEw-NP9r9RB_Qqj-JuJqP3cwvYgo
To claim this, I am signing this object:
import time | |
import asyncio | |
from fastapi import FastAPI | |
app = FastAPI() | |
# 1/ Request resolved in 5.03s | |
# 2/ Request resolved in ~10s | |
@app.get("/not_async") | |
def not_async(): |
{ | |
"first": { | |
"second": { | |
"foo": { | |
"isValid": true, | |
"value": "someValue3" | |
} | |
} | |
}, | |
"new": { |
#!/bin/bash | |
pystp() { | |
DIR="./env" | |
if [ ! -d "$DIR" ]; then | |
python3 -m venv env | |
fi | |
source env/bin/activate |
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import time | |
state = GPIO.LOW | |
def callback(channel): | |
global state |
I hereby claim:
To claim this, I am signing this object:
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const cors = require('cors'); | |
const app = express(); | |
// Send CORS Headers, useful if API is requested from a browser | |
app.use(cors()); | |
// Parse request body to json |
const a = { byId: {} } | |
// b is a reference to a, any change on a will mutate b | |
const b = a | |
// c is shallow copy of a, any change on the top level properties of a will not affect c although any change of nested object would affect c, if we mutate byId in a it will update byId in c | |
const c = { ...a } | |
//or | |
const cprime = Object.assign({}, a) |
'use strict' | |
const https = require('https'); | |
const data = JSON.stringify({}); | |
const getOptions = (code) => { | |
return { | |
host: 'github.com', | |
method: 'POST', |
defaults: &defaults | |
docker: | |
- image: jtredoux/node-aws:latest | |
version: 2 | |
jobs: | |
build: | |
<<: *defaults | |
steps: | |
- checkout |