Skip to content

Instantly share code, notes, and snippets.

@DoNotLickToaster
DoNotLickToaster / KaprekarNumbers.java
Last active December 11, 2016 04:44
Takes the input of two integers and outputs all the Kaprekar numbers in that range
/*
* twitter.com/acidflip
* KaprekarNumbers
* December 10th, 2016
*
* Takes the input of two integers and outputs all the Kaprekar numbers in that range
*
* In mathematics, a Kaprekar number for a given base is a non-negative integer, the
* representation of whose square in that base can be split into two parts that add up
* to the original number again. For instance, 45 is a Kaprekar number,
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.43
Comment: https://keybase.io/crypto
wcFMA+f+Mzs3WBzKAQ//bzUDNNfVPJakFEit0ZjSvhEuqv4pSnRY40e4m7TL3vvF
SWB5khakoEfidUknwdRkSfetBl/5PUHt7yzJhAK8RxrRQkb9ld/AOXTUdYD837WB
W/pmyI1eZX3e/fH2iNSAzI7WDGmgLOCSuD4i4F/7/wAMTt8/DKfZyQKkDyi0AUyS
dqQMCxhGYOZ/ISxIof7mSnSnLi25ebo5fsmVxZZTgBlO/kSqSMFv3Y1Wtb01aLBb
S9NHDg0BnjdMXrdPLWa7ZnwXxUB70r6RKSk7J+kfXAK+HzdlF+wz4RSQfm56+QIb
9lr6FqXabO/gXfONh+C/N4lS+W1uxvIK4qbpBPEMOT2nsD7jGsG6iHb4fBTn4Z/D
### Keybase proof
I hereby claim:
* I am acidflip on github.
* I am jasonkinetec (https://keybase.io/jasonkinetec) on keybase.
* I have a public key whose fingerprint is B5EB 30C9 D27E BF6A 38E8 B285 F16B FE07 C34E 8191
To claim this, I am signing this object:
@DoNotLickToaster
DoNotLickToaster / HelloAgainApplet.html
Last active August 29, 2015 14:27
java web applet
<html>
<head>
<title>Another Applet</title>
</head>
<body>
<p>My Java applet says:</p>
<!--assuming HelloAgainApplet.java has been compiled and is located in the same directory as the source-->
<applet code="HelloAgainApplet.class" width="200" height="50"></applet>
</body>
</html>
@DoNotLickToaster
DoNotLickToaster / Person.php
Last active August 29, 2015 14:22
person w/ 4sci
<?php
class Person {
public $name;
public function __construct($name) {
$this->name = $name;
}
public function Speak() {
echo "Hello, world!";