Skip to content

Instantly share code, notes, and snippets.

View StickmanNinja's full-sized avatar
🌴
On vacation

STICKMAN NINJA StickmanNinja

🌴
On vacation
  • Little Rock, Arkansas
View GitHub Profile
@StickmanNinja
StickmanNinja / ads.txt
Last active August 17, 2022 22:51
Ad this file to the route of the website.
#banner
#33across
33across.com, 0010b00002PIxPJAA1, DIRECT, bbea06d9c4d2853c #33Across #hb #tag
conversantmedia.com, 100141, DIRECT #33Across #hb #tag
appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 #33Across #hb #tag #viewable
yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 #33Across #hb #tag
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 #33Across #hb #tag
openx.com, 537120563, RESELLER, 6a698e2ec38604c6 #33Across #hb #tag
indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc #33Across #hb #tag #viewable
rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 #33Across #hb #tag #viewable
@StickmanNinja
StickmanNinja / ads.txt
Created October 19, 2021 03:37
Use this.
#banner
#33across
adapex.io, s931, DIRECT
33across.com, 0010b00002PIxPJAA1, DIRECT, bbea06d9c4d2853c #33Across #hb #tag
appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 #33Across #hb #tag #viewable
yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 #33Across #hb #tag
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 #33Across #hb #tag
openx.com, 537120563, RESELLER, 6a698e2ec38604c6 #33Across #hb #tag
indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc #33Across #hb #tag #viewable
rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 #33Across #hb #tag #viewable
@StickmanNinja
StickmanNinja / Index.py
Created July 4, 2021 23:06
Python Example Of Project
import requests
r = requests.get('https://matrix.adapex.io/api/kffb/siteplacementdate?token=***********************').json()
# DATE - Total Impressions - Paid Impressions - Fill - Revenue - CPM
#Date must be in YEAR-MONTH-DAY format. Only 2 digits for month and day.
#EXAMPLE: 2021-06-15
def GetInfo(givendate, givenwebsite):
newdata = []
function idiotFunction() {
console.log("You are stupid")
}
@StickmanNinja
StickmanNinja / Filter Emails By ISP.py
Last active April 13, 2020 14:12
A simple tool I use to sort emails by ISP.
import re
import json
gmail = 0
yahoo = 0
comcast = 0
with open('newsegment.csv') as f:
lines = f.readlines()
isps = {}
for email in lines:
email = email.lower()
@StickmanNinja
StickmanNinja / ListFilter.py
Created April 7, 2020 13:15
A simple script to sort emails in a list.
with open('emaillist.txt') as f:
lines = f.readlines()
yahoo = 0
hotmail = 0
google = 0
for email in lines:
if "gmail" not in email and "aol" not in email and "GMAIL" not in email and "AOL" not in email and "hotmail" not in email:
print(email)
if "yahoo" in email:
yahoo = yahoo + 1
@StickmanNinja
StickmanNinja / toEpochTime.py
Created June 23, 2019 23:09
This python short function returns the epoch timestamp for a given date.
def convertGivenTimeToEpoch(year, month, day, hour, minute, ampm):
from datetime import *
m2 = str(hour) + ":" + str(minute) + " " + str(ampm.lower())
m2 = datetime.strptime(m2, '%I:%M %p')
m2 = str(m2)
m2 = m2.split(" ")[1]
m2.split(":")
time2 = datetime.datetime(1970,1,1,0,0,0)
time1 = datetime.datetime(year, month, day, m2[0], m2[1], m2[2])
@StickmanNinja
StickmanNinja / DateTimeForm.html
Created June 23, 2019 22:07
An html form for users to select a date.
<form action="" method="post">
Date: <input type="text" name="year" placeholder="2019">/<input type="text" name="month" placeholder="12">/<input type="text" name="day" placeholder="28">
<br>
Time: <input type="text" name="hour" placeholder="12">:<input type="text" name="minute" placeholder="30"><select name="dayornight"><option value="am">AM</option><option value="pm">PM</option>
<br>
<input type="submit" value="Submit">
</form>
@StickmanNinja
StickmanNinja / JavascriptFile.html
Created May 23, 2019 02:41
Just a short script.
<html>
<body>
<script>
var originmortgage = (6073 / 12);
var origininterest = (0.03 / 12);
var downpayment = 20000;
var totalcost = 100000;
var unpaidbalance = (totalcost - downpayment);
function getWoke(mortgage, interest) {
console.log(unpaidbalance);
https://www.calculator.net/rental-property-calculator.html?cprice=100000&cuseloan=yes&cdownpayment=20&cinterest=4.5&cloanterm=30&cothercost=3000&cneedrepair=yes&crepaircost=0&cafterrepairvalue=100000&ctax=1500&ctaxincrease=3&cinsurance=800&cinsuranceincrease=3&choa=0&choaincrease=3&cmaintenance=1000&cmaintenanceincrease=3&cother=200&cotherincrease=3&crent=1000&crentincrease=3&cotherincome=0&cotherincomeincrease=3&cvacancy=1&cmanagement=3&cknowsellprice=no&cappreciation=3&csellprice=200000&cholding=20&csellcost=8&printit=0&ctype=&x=78&y=31