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
#This script is for calculating quadratic equations in the form ax^2 + bx + c = 0. The answer to the equation MUST BE 0. To rearrange it, simply subtract one side from the other. Enjoy! | |
from math import sqrt | |
print('Enter values for a, b and c (ax^2 + bx + c = 0) by each in when prompted and pressing enter.') | |
a = int(input('a=')) | |
b = int(input('b=')) | |
c = int(input('c=')) | |
d = ((-1*b) + sqrt((b**2) - (4*a*c)))/(2*a) |
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
/*A script using jQuery which creates a function which can be used to fill out a div with another html file*/ | |
var root = 'enter the root of your html files here. leave empty for none.' | |
function fillText(a){ | |
$('#text').load(root + a + '.html'); | |
} |
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 math import sqrt | |
a = 0 | |
b = 0 | |
h = 0 | |
print('You will be asked to enter values for a (short side), b (short side) and h (hypotenuse). Press ENTER for the value you do not know.') | |
try: | |
a = float(input('a=')) | |
except: |
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
qinit | |
q:What team does NiKo play for? | |
a:mousesports | |
q:How much is the AWP Sniper Rifle (raw numbers)? | |
a:4750 | |
q:What is the terrorist equivalent to the SCAR-20? | |
a:g3sg1 | |
q:What is the default counter terrorist equivalent to the AK-47? | |
a:m4a4 | |
q:How many bullets does the 5.7 have total? |
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 random import randint | |
from sys import stdout | |
correct = [randint(1,8), randint(1,8), randint(1,8), randint(1,8)] | |
usr_guess = [0, 0, 0, 0] | |
usr_guess_output = [] | |
usr_guess_output_n = [] | |
guesses = 0 |
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 math import sqrt | |
## V**2 - U**2 = 2*A*X ## | |
## A = (v-u)/T ## | |
def main(): | |
dis = str(input('Are you working for distance or time? > ')) |
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 math | |
print('Enter your equation, which should be in the format ax^2 + bx + c') | |
a = int(input('Enter the `a` value')) | |
b = int(input('Enter the `b` value')) | |
c = int(input('enter the `c` value')) | |
b = b/a | |
c = c/a |
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
## card sort program ## | |
from random import choice | |
from math import floor | |
from time import sleep | |
class Card(object): | |
all_types = ['ace','two','three','four','five','six','seven','eight','nine','jack','queen','king'] | |
all_classes = ['clubs','spades','diamonds','hearts'] | |
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 random | |
chars = [ | |
## super ## | |
"\u030d", "\u030e", "\u0304", "\u0305", "\u033f", | |
"\u0311", "\u0306", "\u0310", "\u0352", "\u0357", | |
"\u0351", "\u0307", "\u0308", "\u030a", "\u0342", | |
"\u0343", "\u0344", "\u034a", "\u034b", "\u034c", | |
"\u0303", "\u0302", "\u030c", "\u0350", "\u0300", |
OlderNewer