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 | |
# Note that there's no libdrm because this lib cause errors | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt-get -y install \ | |
autoconf \ | |
automake \ | |
build-essential \ |
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 | |
input=$1 | |
file=$2 | |
rmax=$3 | |
gmax=$4 | |
bmax=$5 | |
[ "$input" = "" ] || [ "$file" = "" ] || [ "$rmax" = "" ] || [ "$gmax" = "" ] || [ "$bmax" = "" ] && echo "Missing arguments"; exit 1 | |
cp $input $file | |
inc=1 | |
r=00 |
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
sudo pacman -S qemu python python-pip | |
git clone https://github.com/foxlet/macOS-Simple-KVM | |
cd macOS-Simple-KVM | |
./jumpstart.sh --high-sierra | |
qemu-img create -f qcow2 MyDisk.qcow2 50G | |
echo ' -drive id=SystemDisk,if=none,file=MyDisk.qcow2 \' >> basic.sh | |
echo ' -device ide-hd,bus=sata.4,drive=SystemDisk \' >> basic.sh | |
sed -i '11d' basic.sh | |
sed -i '10a \ \ \ \ -m 8G \\' basic.sh | |
sed -i '13d' basic.sh |
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
for i in {1..38} | |
do | |
lynx -listonly -nonumbers -dump https://www.artofmtg.com/set/page/$i | grep /art/ | xargs -L1 -i{} lynx -listonly -dump -nonumbers -image_links {} | grep jpg | grep -v "100x100" | xargs -L1 -i{} wget -nc {} | |
done |
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 RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BCM) | |
BUTTON = 14 | |
GPIO.setup(BUTTON, GPIO.IN) | |
LED = 18 | |
GPIO.setup(LED, GPIO.OUT) |
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 RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BCM) | |
MOTOR1 = 14 | |
MOTOR2 = 18 | |
MOTOR3 = 24 | |
MOTOR4 = 12 |
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
#QSET Object Avoidance | |
#By Sebastien MacDougall-Landry | |
import rospy | |
from sensor_msgs.msg import LaserScan | |
from geometry_msgs.msg import * | |
import math | |
def laserCallBack(msg): | |
global points |
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 RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BCM) | |
LED1 = 14 | |
LED2 = 18 | |
LED3 = 24 | |
LED4 = 12 | |
LED5 = 16 |
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
//Code that converts images to ascii images | |
#include <iostream> | |
#include <stdint.h> | |
#include <opencv/cv.h> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/opencv.hpp> | |
//#include <opencv2/core/types.hpp> |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
string input; | |
string input_clipped; | |
int i; | |
int main(int argc, char **argv) | |
{ |
OlderNewer