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
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
# 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
//L293D | |
//Motor A | |
#define motorPin1 5 // Pin 14 of L293 | |
#define motorPin2 2 // Pin 10 of L293 | |
//Motor B | |
#define motorPin3 3 // Pin 7 of L293 | |
#define motorPin4 4 // Pin 2 of L293 | |
//ping sensor | |
#define echoPin 0 |
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 tweepy | |
def login(key, secret): | |
auth = tweepy.OAuthHandler(key, secret) | |
auth_url = auth.get_authorization_url() | |
verify = input(f"Enter your verification code after authenticating here: {auth_url}\n~$: ") | |
auth.get_access_token(verify) | |
return tweepy.API(auth) |
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
@echo off | |
title youtube-dl script | |
set /p url="Past url to download:" | |
youtube-dl %url% | |
pause |
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
desktop:=1 | |
<^<!b:: | |
Run, cmd | |
return | |
<^<!t:: | |
run, git-bash.exe | |
return |
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
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf | |
# changes incompatibly | |
POKY_BBLAYERS_CONF_VERSION = "2" | |
BBPATH = "${TOPDIR}" | |
BBFILES ?= "" | |
BBLAYERS ?= " \ | |
/home/user/rpi/sources/poky/meta \ | |
/home/user/rpi/sources/poky/meta-poky \ |
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
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf | |
# changes incompatibly | |
POKY_BBLAYERS_CONF_VERSION = "2" | |
BBPATH = "${TOPDIR}" | |
BBFILES ?= "" | |
BBLAYERS ?= " \ | |
/home/user/yoctox86/sources/poky/meta \ | |
/home/user/yoctox86/sources/poky/meta-poky \ |