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
| #Python 3.4 | |
| import random | |
| import string | |
| import time | |
| from pastebin import PastebinAPI | |
| x = PastebinAPI() | |
| DEV_KEY1 = '475b38cdfbba7a92d8bde6c56adfb241' #primary key |
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
| void keyPressed() { //Controls | |
| //println(keyCode); | |
| if (key == CODED) { | |
| if (keyCode == UP) { | |
| direction = "up"; | |
| accelerate = true; | |
| } if (keyCode == DOWN) { | |
| direction = "down"; |
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 windowX = 800; //Default 800 X 600 | |
| int windowY = 600; | |
| int swaps = 0; | |
| int[] stack = new int[windowX]; | |
| String algorithm = "Bubble Sorting"; | |
| int passes = 0; | |
| boolean passed = false; | |
| int counter = 1; | |
| int temp; | |
| int old_swaps; |
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 windowX = 800; //Default 800 X 600 | |
| int windowY = 600; | |
| int swaps = 0; | |
| int[] stack = new int[windowX]; // P-1 | |
| String algorithm = "Double Bubble Sorting"; | |
| int passes = 0; | |
| boolean passed = false; | |
| int counter = 1; | |
| int temp; |
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 windowX = 800; //Default 800 X 600 | |
| int windowY = 600; | |
| int[] terrain = new int[windowX]; | |
| int count = 2; | |
| int start; | |
| int temp_z; | |
| void setup(){ | |
| background(0,0,0); | |
| frameRate(10000); |
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 socket | |
| import sys | |
| from _thread import * | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| clients = [] | |
| host = '' | |
| port = 23 | |
| chat = "" | |
| print("\n"*50) |
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 requests | |
| from bs4 import BeautifulSoup #NEEDS bs4 installed! | |
| def trade_spider(max_page): | |
| page = 1 | |
| while page <= max_page: | |
| url = "http://www.finn.no/finn/realestate/homes/result?location=0%2F20061&page=" + str(page) | |
| source_code = requests.get(url) | |
| plain_text = source_code.text |
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 math | |
| class Vector3: | |
| x = 0 | |
| y = 0 | |
| z = 0 | |
| def __init__(self, _x, _y, _z): | |
| self.x = _x | |
| self.y = _y | |
| self.z = _z | |
| def __add__(self, other): |
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
| boolean trykketRiktig; | |
| long startTid; | |
| int G1=2; | |
| int G2=3; | |
| int G3=4; | |
| int R1=5; | |
| int G4=6; | |
| int G5=7; | |
| int G6=8; |
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
| boolean trykketRiktig; | |
| boolean tapt; | |
| long startTid; | |
| int G1=2; | |
| int G2=3; | |
| int G3=4; | |
| int G4=6; | |
| int G5=7; | |
| int G6=8; |