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 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
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
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 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
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
#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
#Python 3.4 | |
import requests | |
from bs4 import BeautifulSoup | |
def spider(max_refresh): | |
file = open("names_generated.txt","w") | |
file.close() | |
file = open("names_generated.txt","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
#Python 3.4 | |
import pickle | |
pupil = [] | |
def menu(): | |
print("\n*****************CLASS REGISTER*****************") | |
print("Press 1 See The List Of Pupils") | |
print("Press 2 To Add New Pupils") | |
print("Press 3 To Remove Pupils") |
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
# -*- coding: utf-8 -*- | |
print("Loading OS...") | |
from datetime import datetime | |
import os | |
import re | |
import sys | |
import cl_apps | |
current_time = datetime.now().time() |