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
//Including SDL and standard headers. | |
//Note that you'll have to include all the libraries and include paths, | |
//and on Windows include a copy of SDL.dll and SDL_image.dll in the application directory. | |
#include <SDL.h> | |
#include <SDL_image.h> | |
#include <stdio.h> | |
#include <string> | |
//Predefining functions/variables. | |
SDL_Surface* loadPNGSurface(std::string); |
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
# The shittiest sorting algorithm on planet earth. | |
# @Poltroon @C272 | |
from random import shuffle | |
arr = [0,12,99,13,17,19,6] | |
#Searching. | |
done = "false" | |
pnum = 0 | |
while (done=="false"): |
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
#Quadratic formula import, Python 3.6 | |
#C272, 2018 | |
from math import * | |
def solveQuad(a,b,c): | |
a = float(a) | |
b = float(b) | |
c = float(c) | |
rootb = sqrt(b) |
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
int i = 3; | |
if (i<001) { | |
console.log("My fifth gist."); | |
} else { | |
console.log("My first gist."); | |
} |
NewerOlder