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
// Anonymous "self-invoking" function | |
alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin."); | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://code.jquery.com/jquery-latest.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName("head")[0].appendChild(script); |
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
Shader "Custom/Circle" { | |
Properties | |
{ | |
_Scale("Scale", Float) = 1 | |
} | |
SubShader{ | |
Blend SrcAlpha OneMinusSrcAlpha | |
Pass{ | |
CGPROGRAM | |
#pragma vertex vert |
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
// By /u/loolo78. Use at you will. | |
// Find the Flair ID by inspecting your flair selection box. | |
// This script unfortunatly is not very "user" friendly. | |
// | |
var flairs = document.getElementsByClassName('flairselectbtn'); | |
var config = { attributes: true, childList: true, characterData: true, subtree: true }; | |
function wait(index){ | |
var temp = flairs[index].parentElement.getElementsByClassName('flairselector drop-choices active')[0]; |
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
using UnityEngine; | |
public class PausableTimer { | |
private float _timerStart = -1; | |
private float _timerTime; | |
public PausableTimer(float initialTimerTime = 0) { | |
_timerTime = initialTimerTime; | |
} |
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 | |
# Engine | |
class Reddit2HTMLConverter: | |
def __init__(self, regPattern, formatStr, formatter): | |
self.regPattern = regPattern | |
self.formatter = formatter | |
self.formatStr = formatStr |
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 java.util.Scanner; | |
public class AverageCalculator { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); | |
float sum = 0; | |
int count = 0; | |
mainLoop: while (true) { | |
System.out.print("Input a number, -1 to find average: "); |
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
public class PrintNumberTriangle{ | |
public static void main(String []args){ | |
int midNumber = 8; | |
for (int y = 1; y<=midNumber; y++) { | |
for (int x = 1; x<=y; x++) { | |
System.out.print(x + " "); | |
} | |
for (int space = 0; space<4*(midNumber-y)-2; space++) { | |
System.out.print(" "); |
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 java.util.Scanner; | |
public class WhosTheBiggest { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); | |
mainLoop: | |
while (true) { | |
Integer[] inputs = new Integer[3]; |
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 java.util.Scanner; | |
public class WhosTheBiggest { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); | |
while (true) { | |
Integer[] inputs = new Integer[3]; | |
System.out.println("Enter 3 positive digits"); | |
try { |
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 java.util.Scanner; | |
public class WhosTheBiggest { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); | |
while (true) { | |
Integer[] inputs = new Integer[3]; | |
System.out.println("Enter 3 positive digits"); | |
try { |