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
class PID: | |
def __init__(self, kp, ki, kd): | |
self.kp = kp | |
self.ki = ki | |
self.kd = kd | |
self.acc_e = 0 | |
self.prev_e = 0 | |
def proportional(self, e): | |
return self.kp * e |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Minecraft Server Info</title> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: sans-serif; | |
color: #ffffff; |
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 | |
OAUTH_ACCESS_TOKEN=<YOUR OAUTH ACCESS TOKEN HERE> | |
PASSPHRASE=<YOUR PASSPHRASE> | |
archive_and_compress_folder() { | |
tar -czf "$1.tar.gz" "$1" | |
} | |
encrypt_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
import csv | |
import json | |
import requests | |
DIR = '/path/to/files' | |
API_KEY = 'apikey' | |
URL = 'http://www.omdbapi.com' | |
_, TITLE, YEAR, _ = range(4) |