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
{ | |
"_heading":[["OCT", "HEX", "BIN", "Symbol", "Description"]], | |
"ASCII":[ | |
["000", "00", "00000000", "NUL", "Null char"], | |
["001", "01", "00000001", "SOH", "Start of Heading"], | |
["002", "02", "00000010", "STX", "Start of Text"], | |
["003", "03", "00000011", "ETX", "End of Text"], | |
["004", "04", "00000100", "EOT", "End of Transmission"], | |
["005", "05", "00000101", "ENQ", "Enquiry"], | |
["006", "06", "00000110", "ACK", "Acknowledgment"], |
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
/^(-----BEGIN PGP PUBLIC KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PUBLIC KEY BLOCK-----)$|^(-----BEGIN PGP PRIVATE KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PRIVATE KEY BLOCK-----)$/ |
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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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 random | |
def sPongEbOb_iT(data): | |
return "".join([random.choice([s, s.upper()]) for s in data]) |
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 os | |
from hashlib import sha512 | |
def authBlock(): | |
pass | |
# auth hash before inserting into blockchain | |
def authHashPOW(ref): | |
with open("HashPOWs","a+") as f: | |
for line in f: |
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 | |
function cropAlign($image, $cropWidth, $cropHeight, $horizontalAlign = 'center', $verticalAlign = 'middle') { | |
$width = imagesx($image); | |
$height = imagesy($image); | |
$horizontalAlignPixels = calculatePixelsForAlign($width, $cropWidth, $horizontalAlign); | |
$verticalAlignPixels = calculatePixelsForAlign($height, $cropHeight, $verticalAlign); | |
return imageCrop($image, [ | |
'x' => $horizontalAlignPixels[0], | |
'y' => $verticalAlignPixels[0], | |
'width' => $horizontalAlignPixels[1], |
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 json | |
import requests | |
import webbrowser | |
def _input(form): | |
try: | |
return raw_input(form) | |
except: | |
return input(form) |
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
/* | |
* title: The bandcamp pirates. | |
* coded by: Bryan Angelo Pedrosa | |
* date: 19 November 2019 | |
*/ | |
/* to download album (free version) */ | |
window.location=TralbumData["freeDownloadPage"] |
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
#!/usr/bin/python | |
from __future__ import division | |
""" | |
name: AnSyn_salary_microeconomics.py | |
description: Anarcho-Syndicalism/Anarcho-Collectivist salary distribution system. 100% legit no scam. Accurate calaculation. | |
author: Bryan Angelo Pedrosa | |
min_salary - the standard minimum pay. no matter what happen. | |
peak_salary - highest pay if average income per worker reached peak. |
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
#!/usr/bin/python | |
import time | |
from random import random | |
from bisect import bisect | |
def probdist_choice(choices): | |
values, weights = zip(*choices) | |
total = 0 | |
cum_weights = [] |