Skip to content

Instantly share code, notes, and snippets.

View HiddenMotives's full-sized avatar

HiddenMotives HiddenMotives

View GitHub Profile
class Collections(object):
def __init__(self):
self._collection = list()
def is_empty(self):
return self.get_size() == 0
def get_size(self):
return len(self._collection)
@HiddenMotives
HiddenMotives / SimpleCache.py
Last active March 2, 2018 06:41
Python-SimpleCache - File Based / JSON / Dictionary / List / Caching Module
# Author: Hidden Motives
# Github: https://github.com/HiddenMotives
import os
import json
import time
class SimpleCache:
def __init__(self,path="cache",extension="cache",expiry=0):
sequences = []
amount = int(input("How many sequences?: "))
if(amount == 1):
sequences = [1]
else:
if(amount >= 2):
sequences =[1,1]
while(amount > len(sequences)):
@HiddenMotives
HiddenMotives / app.js
Created August 1, 2017 04:13 — forked from rakawestu/app.js
Node JS and MySQL Example With Pug Templating Engine
var express = require('express');
var mysql = require('mysql');
var app = express();
///
/// Create connection to MySQL database server.
///
function getMySQLConnection() {
return mysql.createConnection({
trinity
Copernicium
tupper
navajo
Tantalum
hook
Krypton
beach
delta
alturas
@HiddenMotives
HiddenMotives / ad_websites.txt
Created February 6, 2016 00:27
List of Advertising websites/hostnames
fr.a2dfp.net
m.fr.a2dfp.net
mfr.a2dfp.net
ad.a8.net
asy.a8ww.net
static.a-ads.com
abcstats.com
ad4.abradio.cz
a.abv.bg
adserver.abv.bg