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
<?php | |
/* | |
A simple note composer web app written in PHP for lazy writers. | |
*/ | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: GET, POST'); | |
header("Access-Control-Allow-Headers: X-Requested-With"); | |
if(!isset($_GET["save"])){ |
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
def translit_farsi(word): | |
word = word.replace("ا", "a") | |
word = word.replace("أ", "a") | |
word = word.replace("آ", "a") | |
word = word.replace("إ", "e") | |
word = word.replace("ب", "b") | |
word = word.replace("ت", "t") | |
word = word.replace("ث", "th") | |
word = word.replace("ج", "j") | |
word = word.replace("ح", "h") |
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
''' | |
620031587 | |
Net-Centric Computing Assignment | |
Part A - RSA Encryption | |
''' | |
import random | |
''' |
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 csv | |
""" | |
Download the data here: https://github.com/angeloped/OSDSint/tree/master/geocodes | |
""" | |
with open("geocities.csv", 'r') as csv_file: | |
csv_globe = [a for a in csv.DictReader(csv_file)] | |
def pos_neg(num1, num2): |
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
sorted_geo = [] | |
def Geolocation_sorter(geo_info): # arg={COUNTRY:'',LNG:'',LAT:''} | |
if not bool(sorted_geo): # if empty | |
sorted_geo.append(geo_info) | |
return | |
i = 0 | |
while i < len(sorted_geo): | |
if (float(geo_info["LNG"]) >= float(sorted_geo[i]["LNG"]) and float(geo_info["LNG"]) <= float(sorted_geo[:i+1][0]["LNG"])): | |
sorted_geo.insert(i+1, geo_info) |
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
''' | |
written by: Bryan Angelo | |
''' | |
def fibCount(nth=0,ntp=0,sus=False): # where / limit / yield | |
# infinite loop | |
A,B = 1,1 | |
nth_ = 0 | |
while 1: | |
if bool(nth): # last number of specific iteration 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
# keydown data from the web | |
# http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes | |
map = | |
backspace: 8 | |
tab: 9 | |
enter: 13 | |
shift: 16 | |
ctrl: 17 |
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 re | |
import nmap | |
""" | |
name: nmap_profile.py | |
author: bryan angelo | |
description: A collection of Nmap scan profiles for python-nmap. | |
""" | |
nmap_profiles = { |
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 re | |
import time | |
import urllib.request | |
import _thread | |
paths = ["/Login/Admin", "/UserLogin", "/acceso.asp", "/acceso.aspx", "/acceso.brf", "/acceso.cfm", "/acceso.cgi", "/acceso.js", "/acceso.php", "/access", "/access.asp", "/access.aspx", "/access.php", "/account.asp", "/account.aspx", "/account.brf", "/account.cfm", "/account.cgi", "/account.html", "/account.js", "/account.php", "/accounts", "/accounts.asp", "/accounts.aspx", "/accounts.php", "/adm", "/adm.asp", "/adm.aspx", "/adm.brf", "/adm.cfm", "/adm.cgi", "/adm.html", "/adm.js", "/adm.php", "/adm/admloginuser.asp", "/adm/admloginuser.aspx", "/adm/admloginuser.brf", "/adm/admloginuser.cfm", "/adm/admloginuser.cgi", "/adm/admloginuser.js", "/adm/admloginuser.php", "/adm/index.asp", "/adm/index.aspx", "/adm/index.brf", "/adm/index.cfm", "/adm/index.cgi", "/adm/index.html", "/adm/index.js", "/adm/index.php", "/adm_auth.asp", "/adm_auth.aspx", "/adm_auth.brf", "/adm_auth.cfm", "/adm_auth.cgi", "/adm_auth.js", "/adm_auth.php", "/admin", "/admin-login.a |
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
$('textarea').on('keydown', function(e){ | |
console.log(e.keyCode); | |
if( e.keyCode == 90 ){ | |
e.preventDefault(); | |
$(this).append('y').focus(); | |
} | |
if( e.keyCode == 89 ){ | |
e.preventDefault(); | |
$(this).append('z').focus(); |