This file contains hidden or 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
# Simple Catalan's Constant implimentation in python | |
# Written for some homework, hope someone else finds it useful | |
# n being the times the number is calculated, increasing n increases accuracy | |
from fractions import Fraction | |
n = int(raw_input("enter N:")) | |
k = 1 | |
sum = 0 | |
sign = 1 | |
while True: |
This file contains hidden or 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 wmi | |
def avg(value_list): | |
num = 0 | |
length = len(value_list) | |
for val in value_list: | |
num += val | |
return num/length | |
This file contains hidden or 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
# Created by Chandler Lofland aka chand1012 | |
# Licensed as CC 3.0 US | |
# This script is to copy sfx between carts in pico8 | |
# Uses basic file commands in python and sys for arguments | |
# For Python 3.0+ | |
# arguments go like so: python sfxcpy.py <inputFile> <outputFile> | |
import sys | |
args = sys.argv |
This file contains hidden or 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
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
echo Installing Discord | |
apt install libgconf-2-4 libappindicator1 | |
cd ~/Downloads | |
wget -O discord-0.0.2.deb https://discordapp.com/api/download?platform=linux&format=deb | |
sudo dpkg -i discord-0.0.2.deb |
This file contains hidden or 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 os, sys | |
from easygui import * | |
title = "Git Auto Update" | |
msg = "Do you want to update your Git Repos?" | |
if not ynbox(title, msg): | |
sys.exit() | |
print('Getting list of directories...') |
This file contains hidden or 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
{"color": "color 0a", "minimize": "min", "exit": "exit"} |
This file contains hidden or 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
:: this is the file that handles the server for my modded Minecraft on my 6-core PC | |
:: ParallelGCThreads can be changed to accomodate any number of cores, just give it the number of threads needed | |
:: if you are hosting a vanilla server, change forge.jar to the name of the Minecraft server jar | |
:: change Xmx to the amount of RAM your computer has | |
:: change 'world3' to the name of your Minecraft world to backup the world automatically | |
:: lines 10, 13-15 have to do with automatic restart on crash | |
@echo off | |
color 0a | |
title MWServer | |
:a |
This file contains hidden or 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
require 'rest-client' | |
require 'nokogiri' | |
require 'random_methods' | |
require 'os' | |
#v1.1: Added help section | |
#v1.2: Fixed bug with Ruby 2.2.3 | |
#v1.3: Added change log | |
wikiLink = "wikipedia.org" | |
urlList = Array.new | |
url = nil |
This file contains hidden or 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
{ | |
"0": "0x30", | |
"1": "0x31", | |
"2": "0x32", | |
"3": "0x33", | |
"4": "0x34", | |
"5": "0x35", | |
"6": "0x36", | |
"7": "0x37", | |
"8": "0x38", |