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
https://callysto.github.io/jupyterlite/lab/index.html?fromURL=https://raw.githubusercontent.com/PS43Foundation/data-dunkers/main/notebooks/python-continents-population.ipynb |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# https://dev.webonomic.nl/scanning-network-with-the-raspberry-pi-pico-w | |
import network | |
import binascii | |
wlan = network.WLAN() # network.WLAN(network.STA_IF) | |
wlan.active(True) | |
networks = wlan.scan() # list with tupples with 6 fields ssid, bssid, channel, RSSI, security, hidden | |
networks.sort(key=lambda x:x[3],reverse=True) # sorted on RSSI (3) | |
for i, w in enumerate(networks): | |
print(i, w[0].decode(), binascii.hexlify(w[1]).decode(), w[2], w[3], w[4], w[5]) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 bitlyGroupId() { | |
var accessToken = ''; // paste in your access token from https://bitly.is/accesstoken | |
var headers = {'Authorization' : 'Bearer '+accessToken}; | |
var params = {'headers' : headers}; | |
var fetchUrl = 'https://api-ssl.bitly.com/v4/groups'; | |
var response = UrlFetchApp.fetch(fetchUrl, params); | |
var group_guid = JSON.parse(response.getContentText()).groups[0].guid; | |
Logger.log(group_guid) | |
return group_guid | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 machine import Pin, ADC | |
import network | |
from time import sleep | |
import urequests as requests | |
led = Pin("LED", Pin.OUT) | |
led.on() | |
wlan = network.WLAN(network.STA_IF) | |
wlan.active(True) |
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
194 , 80 , 92 | |
120 , 16 , 94 | |
246 , 23 , 109 | |
190 , 112 , 49 | |
248 , 219 , 174 | |
92 , 57 , 223 | |
166 , 89 , 244 | |
186 , 15 , 132 | |
16 , 107 , 28 | |
85 , 142 , 49 |
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 socket | |
from datetime import datetime | |
import requests | |
ip = socket.gethostbyname_ex(socket.gethostname())[-1] | |
ethercalc_id = 'iplog' | |
base_url = 'https://ethercalc.net/' | |
post_url = base_url+'_/'+ethercalc_id |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder