Skip to content

Instantly share code, notes, and snippets.

View au5ton's full-sized avatar
😶‍🌫️
Working on closed-source stuff

Austin Jackson au5ton

😶‍🌫️
Working on closed-source stuff
View GitHub Profile
<style>.soot-song-container{-webkit-perspective:1000px;perspective:1000px}.soot-album-art{display:inline-block;margin-top:25px;margin-left:25px;width:100px;height:auto;perspective:500px;transform:rotateY(45deg)}.soot-album-titles{display:inline-block;position:relative;bottom:35px;}.soot-album-titles h4,.soot-album-titles h5{margin-top:0;margin-bottom:0}</style><div class="soot-song-container"><img class="soot-album-art"src="https://dl.dropboxusercontent.com/u/40306997/FluffWorldImages/artworks-000106222703-uprdn3-original-1024x1024.jpg"/><div class="soot-album-titles"><h4>Hello World</h4><h5>Artist name</h5></div></div>
<style>*{font-family:"Comic Sans MS",sans-serif;-webkit-animation:rainbow 2.5s infinite;animation:rainbow 2.5s infinite;text-shadow:1px 1px 5px #000}@-webkit-keyframes rainbow{0%{color:red}9.09%{color:#ff0080}18.18%{color:#f0f}27.27%{color:#8000ff}36.36%{color:#00f}45.45%{color:#0080ff}54.54%{color:#0ff}63.63%{color:#00ff80}72.72%{color:#0f0}81.81%{color:#80ff00}90.90%{color:#ff0}100%{color:#ff8000}}@-moz-keyframes rainbow{0%{color:red}9.09%{color:#ff0080}18.18%{color:#f0f}27.27%{color:#8000ff}36.36%{color:#00f}45.45%{color:#0080ff}54.54%{color:#0ff}63.63%{color:#00ff80}72.72%{color:#0f0}81.81%{color:#80ff00}90.90%{color:#ff0}100%{color:#ff8000}}@keyframes rainbow{0%{color:red}9.09%{color:#ff0080}18.18%{color:#f0f}27.27%{color:#8000ff}36.36%{color:#00f}45.45%{color:#0080ff}54.54%{color:#0ff}63.63%{color:#00ff80}72.72%{color:#0f0}81.81%{color:#80ff00}90.90%{color:#ff0}100%{color:#ff8000}}</style>
public boolean findLetter(char c) {
if(word.indexOf(c) != -1) {
return true;
}
else {
return false;
}
}
public boolean findSubString(String s) {
public class StringChecker {
private String word;
public StringChecker() {
setString("");
}
public StringChecker(String s) {
setString(s);
}
//Ported from pCalculator-classic (written in C++)
function ClassifyTriangle(a, b, c)
{
//ANGLES
var result = "";
var abResult = Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
if(abResult == c)
{
result += "RIGHT";
@au5ton
au5ton / pump.js
Created April 22, 2016 02:54
Pumping out JSON objects
var fs = require('fs');
var bytes = require('bytes');
var sizeof = require('object-sizeof');
var readline = require('readline');
var exec = require('child_process').exec;
var filePath = 'tpb2.json';
var buf = '';
var cat = 0;
var total = 0;
@au5ton
au5ton / README.md
Last active April 22, 2016 03:14
sample.json

To match the category code with the actual subcategory go to https://thepiratebay.cr/browse and hover over the subcategories and see what the link is. For example, audiobooks create this link. Codes that start with '1' are audio, and the next two numbers are subcategory identifiers ('02' for audiobooks).

There are a ton other and too many to list that vary depending on the TPB mirror you're referring to

@au5ton
au5ton / package.json
Created August 8, 2016 17:16
Forever counter
{
"name": "forever-counter",
"version": "1.0.0",
"description": "",
"main": "prime.js",
"dependencies": {
"big-integer": "^1.6.15"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
@au5ton
au5ton / keybase.md
Created August 24, 2016 03:37
keybase.md

Keybase proof

I hereby claim:

  • I am au5ton on github.
  • I am austinj (https://keybase.io/austinj) on keybase.
  • I have a public key ASCNU5kpoAXfi0B2cB-gwWNs7PY6zRtH6SmbcWgpiuS0igo

To claim this, I am signing this object: