I hereby claim:
- I am iamtails on github.
- I am iamtails (https://keybase.io/iamtails) on keybase.
- I have a public key ASDPPK5wom-iYEO11isWP3uD5PR_ddEBsTW3F2tRg6FImgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Adafruit_DHT | |
| from flask import Flask, jsonify, abort | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def index(): | |
| humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.AM2302, 4) | |
| if humidity is not None and temperature is not None: | |
| return jsonify(data=temperature,humidity=humidity) | |
| eles: |
| namespace Test | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Making API Call..."); | |
| using (var client = new HttpClient(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate })) | |
| { | |
| client.BaseAddress = new Uri("https://nekos.life/api/v2/img/"); |
| #!/usr/bin/env python3.6 | |
| __author__ = "Tails" | |
| __email__ = "Tails@nekos.life" | |
| import asyncio | |
| import inspect | |
| import aiohttp | |
| async def create_gist(description, filename, content, public, token, session): |
| { | |
| "GENERAL_CREATE_INSTANT_INVITE": 0, | |
| "GENERAL_KICK_MEMBERS": 1, | |
| "GENERAL_BAN_MEMBERS": 2, | |
| "GENERAL_ADMINISTRATOR": 3, | |
| "GENERAL_MANAGE_CHANNELS": 4, | |
| "GENERAL_MANAGE_GUILD": 5, | |
| "GENERAL_MANAGE_ROLES": 28, | |
| "GENERAL_MANAGE_NICKNAMES": 27, | |
| "GENERAL_CHANGE_NICKNAME": 26, |
| package phoenix.bot.pogo.nRnMK9r.util.directions | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| import com.google.common.geometry.S2CellId | |
| import com.google.common.geometry.S2LatLng | |
| import com.google.maps.GeoApiContext | |
| import com.squareup.okhttp.HttpUrl | |
| import com.squareup.okhttp.OkHttpClient | |
| import com.squareup.okhttp.Request | |
| import phoenix.bot.pogo.nRnMK9r.Context |
| GOOGLE { | |
| override fun getRoute(startLat: Double, startLong: Double, endLat: Double, endLong: Double, geoApiContext: GeoApiContext): ArrayList<S2LatLng> { | |
| try { | |
| val directionsRequest = DirectionsApi.getDirections(geoApiContext, "$startLat,$startLong", "$endLat,$endLong") | |
| directionsRequest.mode(TravelMode.WALKING) | |
| val directions = directionsRequest.await() | |
| val latlngList = ArrayList<S2LatLng>() | |
| directions.routes.forEach { | |
| it.legs.forEach { | |
| it.steps.forEach { |