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 main | |
import ( | |
"math/rand" | |
"os" | |
"strconv" | |
"time" | |
"math" |
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 main | |
import ( | |
"net" | |
"os" | |
"time" | |
"github.com/Ssawa/accord/dataStructures" | |
zmq "github.com/pebbe/zmq4" |
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
from sqlalchemy import Column, String, Integer, ForeignKey, create_engine, Table | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker, RelationshipProperty | |
from sqlalchemy.orm.dependency import ManyToManyDP | |
from sqlalchemy.util.langhelpers import public_factory | |
################# | |
# THE ACTUAL CODE | |
################# |
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 all of Scapy's code so we can use it as a library (rather than the runtime environment it also supports) | |
# I don't like this "import *" and would much rather import Scapy functionality under a namespace but I'm fairly | |
# new to the library and my initial efforts seemed to throw some errors so I just copied this from other sources. | |
# Don't judge me. | |
from scapy.all import * | |
# For non python people, this is just python's, somewhat strange, way of saying | |
# "If this file is being executed and not just imported into another file" | |
if __name__ == '__main__': |