Skip to content

Instantly share code, notes, and snippets.

<LoginScreen@LoadScreen>:
id: login_screen
name: "login_screen"
MDTextField:
id: password_textfield
name: 'password_textfield'
hint_text: "Enter Password"
helper_text: "(or click on forgot forgot)"
package hotsun;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
@aurorapar
aurorapar / HotSun.java
Created August 23, 2019 05:04
HotSun plugin
package hotsun;
import org.bukkit.plugin.java.JavaPlugin;
public class HotSun extends JavaPlugin
{
@Override
public void onEnable()
{
Timers.timer(this);
yearOne = 0
yearTwo = -1
def getYears():
global yearOne, yearTwo
prompt = "Enter the years you would like movies for: "
import dpkt
from socket import inet_ntoa
try:
import cPickle as pickle
except:
import pickle
from multiprocessing import Process, Queue
data = {'source':set([]),
'destination':set([]),
from pomegranate import *
import dpkt, traceback, random, time
# Small test, 1 for all data, 0 for none
def log(text):
fileName = "HMM-output.txt"
with open(fileName, "a+") as output:
output.write(text)
import dpkt
from socket import inet_ntoa
import traceback
import datetime
import sys
import csv
myAddress = '10.0.0.3'
badFrames = 0
import dpkt
from socket import inet_ntoa
import traceback
import datetime
import multiprocessing
import sys
try:
import cPickle as pickle
except:
import pickle
@aurorapar
aurorapar / storepcap.py
Created April 23, 2019 11:08
Parses a network traffic file and stores into a pickled dictionary
import dpkt
from socket import inet_ntoa
import traceback
import datetime
import multiprocessing
try:
import cPickle as pickle
except:
import pickle
import UIKit
// Assuming this is the values, not the even indexes
func sumOfEvens(array: [Int]) -> Int
{
var total = 0
for value in array
{
if value % 2 == 0
{