Skip to content

Instantly share code, notes, and snippets.

View Splagoon's full-sized avatar

Rob Splagoon

View GitHub Profile
@Splagoon
Splagoon / time.kt
Created November 11, 2014 18:50
Time magics with Kotlin
import java.util.Date
import kotlin.concurrent.*
fun at(date: Date, func: () -> Unit) {
val waitTime = date.getTime() - Date().getTime()
thread {
Thread.sleep(waitTime)
func()
}
}

Keybase proof

I hereby claim:

  • I am RobKellett on github.
  • I am robkellett (https://keybase.io/robkellett) on keybase.
  • I have a public key whose fingerprint is BCF1 AF39 78AD 84B4 A32B 682A 39A9 BB3C 1857 DAA5

To claim this, I am signing this object:

// ==UserScript==
// @name TPP Spammer
// @namespace kelle.tt
// @description Spam button inputs into Twitch Plays Pokemon
// @include http://www.twitch.tv/twitchplayspokemon
// @version 1
// @grant none
// ==/UserScript==
$(function(){
alert(1);
public class SomeClass
{
public HashSet<int> HashSet;
}
void Main()
{
// Pop quiz: does the following line work?
var someVar = new SomeClass { HashSet = { 1, 2, 3 } };
}
_=[(!!([]-[])+[])[(!![]<<!!{})-~[]],([{}]+[])[(!""<<(!!~{}+!~~[]-~[{}][~~![]]))+~!{}],([]-[][~[]]+[])[-~!{}],([]+{})[(!![]<<(!!{}+~~{}+!![]))+~[]],([]+[][~[]])[(([]<{})<<(-~!![]))-~{}]];_[(!!{}<<!![])+!![]]+_[~~[]]+_[~~!([]-[])]+_[(!~~{})<<(-~!!{})]+_[~[]+!!{}]+_[~~!!~{}]+_[~![]*~!![]]+_[[]-[]]+_[!({}-{})-[]+~![]];