This file contains 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 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 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 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 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
package com.louishong; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.lang.reflect.Field; | |
public class ReadFile{ |
This file contains 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 CharCheck { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); | |
System.out.println("Begin!"); | |
while (true) { | |
char input = keyboard.next().charAt(0); | |
if (isDigit(input)){ |
This file contains 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 PrintOneOverN { | |
public static void main(String[] args) { | |
int finalDinominator = 20; | |
for (double i = 1; i <= finalDinominator; i++) { | |
System.out.println(1d/i); | |
} | |
} | |
} |
This file contains 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 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 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]; |
OlderNewer