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
package seronis.testing; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import java.awt.Toolkit; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.WindowEvent; | |
import java.awt.event.WindowListener; | |
import java.io.IOException; |
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 evelink, urllib2, sys | |
from colorama import init, Fore | |
print 'Setting up console output ...' | |
init(autoreset = True) | |
r = Fore.RED | |
g = Fore.GREEN | |
w = Fore.WHITE | |
b = Fore.CYAN |
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
""" | |
Reads from a file called api.txt in the same director as this script. That file should be setup in the manner of | |
keyID,vCode,Character Name | |
keyID,vCode,Character Name | |
keyID,vCode,Character Name | |
keyID,vCode,Character Name | |
for as many lines as you wish to be checked. | |
This script is then ran with the following parameters: |
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 praw | |
from datetime import datetime | |
utc_now = datetime.utcnow() | |
def main(): | |
username = raw_input('Username: ') | |
password = raw_input('Password: ') | |
limit = raw_input('Fetch limit: ') | |
limit = int(limit) |
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 sys | |
import urllib2 | |
import json | |
from time import sleep | |
def get_all_current_events(): | |
ret = [x for x in json.loads(urllib2.urlopen('https://api.guildwars2.com/v1/events.json?world_id=1021&map_id=15&lang=en').read())['events']] | |
return ret | |
def is_zerg_event(event_id): |
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 psutil | |
import pygal | |
from time import sleep | |
c = pygal.Line() | |
c.title = 'CPU Usage Over 1 Minute' | |
data = [] | |
count = 0 | |
print 'Starting ...' | |
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
import evelink | |
from datetime import datetime | |
eve = evelink.eve.EVE() | |
char_id = eve.character_id_from_name(raw_input('Enter your character name: ')) | |
api = evelink.api.API(api_key=(raw_input('Key ID: '), raw_input('vCode: '))) | |
char = evelink.char.Char(char_id=char_id, api=api) | |
events = char.calendar_events() | |
print '' |
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 eveapi | |
from datetime import datetime | |
api = eveapi.EVEAPIConnection() | |
auth = api.auth(keyID=raw_input('Key ID: '), vCode=raw_input('vCode: ')) | |
events = auth.char.UpcomingCalendarEvents() | |
print '' | |
for event in events.upcomingEvents: |
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 eveapi | |
from datetime import datetime | |
api = eveapi.EVEAPIConnection() | |
def main(): | |
auth = api.auth(keyID=raw_input('keyID: '), vCode=raw_input('vCode: ')) | |
characterID = raw_input("Your Director/CEO's character name: ") | |
notifications = auth.char.Notifications(characterID=characterID) | |
applicants = [] |
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
# A golfed python 'accent'. Fully backwards compatible with python. | |
# NOT SUITED FOR DAY-TO-DAY PROGRAMMING! | |
# If you DO use it for a production (non-challenge/codegolf) program, I'm not | |
# responsible for anything bad that happens to you, your computer, | |
# your spare time, your code maintainability, any kittens that god might kill, | |
# or the tears of blood you will weep. | |
import sys | |
from math import * |
OlderNewer