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
#!/bin/bash | |
sudo apt install cmake git-lfs -y | |
cd /home/$USER | |
git clone https://github.com/google/XNNPACK.git | |
cd XNNPACK | |
git checkout 579de32260742a24166ecd13213d2e60af862675 | |
mkdir build | |
cd build | |
cmake -DXNNPACK_BUILD_TESTS=OFF -DXNNPACK_BUILD_BENCHMARKS=OFF .. | |
cmake --build . --config Release |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BallController : MonoBehaviour | |
{ | |
private Rigidbody rb; | |
public Transform cameraTransform; |
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 gpiozero import MotionSensor | |
from picamera import PiCamera | |
from signal import pause | |
from datetime import datetime | |
from time import sleep | |
pir = MotionSensor(14) | |
cam = PiCamera() | |
cam.resolution = (1920, 1080) | |
cam.rotation = 90 |
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 logging | |
from gpiozero import Robot | |
from time import sleep | |
from surrortg import Game | |
from surrortg.inputs import Joystick | |
#robot = Robot(left=(19, 26), right=(6, 13)) | |
class MyJoystick(Joystick): |
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 logging | |
from gpiozero import Robot | |
from time import sleep | |
from surrortg import Game | |
from surrortg.inputs import Joystick | |
#robot = Robot(left=(19, 26), right=(6, 13)) | |
class MyJoystick(Joystick): |
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 | |
import utime | |
motor_left_FORWARD=Pin(7, Pin.OUT) | |
motor_left_BACKWARD=Pin(8, Pin.OUT) | |
motor_right_FORWARD=Pin(9, Pin.OUT) | |
motor_right_BACKWARD=Pin(10, Pin.OUT) | |
motor_left_FORWARD.value(1) | |
motor_right_FORWARD.value(1) |
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 logging | |
from gpiozero import Robot | |
from time import sleep | |
from surrortg import Game | |
from surrortg.inputs import Switch | |
from surrortg.inputs import Joystick | |
robot = Robot((7,8), (9,10)) | |
class MyJoystick(Joystick): |
This file has been truncated, but you can view the full file.
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
!!!!! | |
!!!!!! | |
!!!!!!! | |
!!VMwar33 | |
!!zasada | |
!12345 | |
!1QmS? | |
!23456 | |
!2h7=aol64#Exq0Q | |
!4PolskaViza$ |
This file has been truncated, but you can view the full file.
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
!!!!! | |
!!!!!! | |
!!!!!!! | |
!!VMwar33 | |
!!zasada | |
!12345 | |
!1QmS? | |
!23456 | |
!2h7=aol64#Exq0Q | |
!4PolskaViza$ |
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 | |
from utime import sleep_us, ticks_us, sleep | |
trig=Pin(17, Pin.OUT) | |
echo=Pin(16, Pin.IN) | |
buzzer=Pin(27, Pin.OUT) | |
buzzer.value(1) | |
sleep(0.5) | |
buzzer.value(0) |
NewerOlder