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 |
Loading
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]) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 |
Loading
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
import java.util.Scanner; | |
import java.util.Arrays; | |
public class RockPaperScissors | |
{ | |
public static void RockPaperScissors() | |
{ | |
String[] possibleChoices = {"rock", "paper", "scissors"}; | |
Scanner userInput = new Scanner(System.in); // create a Scanner for getting user input | |
String playerChoice = ""; // declare an empty variable that we'll fill with the user input |
NewerOlder