I hereby claim:
- I am blackrez on github.
- I am nabil (https://keybase.io/nabil) on keybase.
- I have a public key whose fingerprint is 4320 BAE2 09FC 409C 7BD0 74A7 6079 934B 9755 1FE9
To claim this, I am signing this object:
import json | |
from flask import Flask | |
from flask import request | |
app = Flask(__name__) | |
app.debug = True | |
@app.route('/') | |
def hello_world(): | |
callback = request.args.get('jsoncallback') | |
data = {"hello":"world"} | |
if callback: |
# Le résultat retourné par BANO | |
result = '{"attribution": "BANO", "licence": "ODbL", "query": "8 bd du port", "type": "FeatureCollection", "version": "draft", "features": [{"properties": {"context": "80, Somme, Picardie", "housenumber": "8", "label": "8 Boulevard du Port 80000 Amiens", "postcode": "80000", "id": "800216590L", "score": 0.3351181818181818, "name": "8 Boulevard du Port", "city": "Amiens", "type": "housenumber"}, "geometry": {"type": "Point", "coordinates": [2.29009, 49.897446]}, "type": "Feature"}]}' | |
# On charge le résultat | |
resultjsoon = JSON.load(result) | |
# La partie geojson du json de bano est chargé pour obtenir un point | |
point = RGeo::GeoJSON.decode(resultjson["features"][0]["geometry"], :json_parser => :json) | |
entreprise = Entreprise.new() | |
# Correspondance entre le point et le champs géométrique de la base de données. |
I hereby claim:
To claim this, I am signing this object:
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
app: minio | |
strategy: | |
type: Recreate | |
template: |
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/yryz/ds18b20" | |
"github.com/prometheus/client_golang/prometheus" | |
"github.com/prometheus/client_golang/prometheus/push" | |
) |
from starlette.applications import Starlette | |
from starlette.responses import JSONResponse | |
from starlette.background import BackgroundTask | |
import uvicorn | |
import asyncio | |
import aiohttp | |
import requests | |
app = Starlette() |
package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/sha256" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"image" |
FROM golang:alpine AS build-env | |
RUN mkdir -p /src/src/github.com/owulveryck/ && \ | |
cd /src/src/github.com/owulveryck/ && \ | |
apk add - no-cache git curl && \ | |
git clone https://github.com/owulveryck/onnx-go.git && \ | |
cd onnx-go && \ | |
git checkout v0.1-mnist-cli && \ | |
cd example/gorgonia/mnist-reader && \ | |
export GOPATH=$GOPATH:/src/ && \ | |
go get && \ |
nabilservais@penguin:~/skynet$ tinygo build -o wasm.wasm -target=wasm ./main.go | |
# encoding/gob | |
../../../usr/local/go/src/encoding/gob/type.go:39:24: Map not declared by package sync | |
../../../usr/local/go/src/encoding/gob/type.go:801:26: Map not declared by package sync | |
../../../usr/local/go/src/encoding/gob/type.go:802:26: Map not declared by package sync | |
../../../usr/local/go/src/encoding/gob/type.go:844:8: rt.Name undefined (type reflect.Type has no field or method Name) | |
../../../usr/local/go/src/encoding/gob/type.go:866:8: rt.Name undefined (type reflect.Type has no field or method Name) | |
../../../usr/local/go/src/encoding/gob/type.go:867:9: rt.PkgPath undefined (type reflect.Type has no field or method PkgPath) | |
../../../usr/local/go/src/encoding/gob/type.go:868:21: rt.Name undefined (type reflect.Type has no field or method Name) | |
../../../usr/local/go/src/encoding/gob/type.go:870:21: rt.PkgPath undefined (type reflect.Type has no field or method PkgPath) |
from googleapiclient.discovery import build | |
from google.oauth2 import service_account | |
SCOPES = ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", | |
"https://www.googleapis.com/auth/spreadsheets"] | |
SERVICE_ACCOUNT_FILE = 'credentials.json' | |
credentials = service_account.Credentials.from_service_account_file(SERVICE_ACCOUNT_FILE, scopes=SCOPES) | |
service = build('sheets', 'v4', credentials=credentials) |