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
use std::future::Future; | |
use std::mem; | |
use std::pin::Pin; | |
use std::sync::Arc; | |
use futures::task::{Context, Poll}; | |
use tokio::sync::{Mutex, OwnedMutexGuard}; | |
use tower_service::service::Service; | |
pub struct CloneableService<S> { | |
inner: Arc<Mutex<S>>, |
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 me.arcticlight.minesweeper | |
import scala.annotation.tailrec | |
import scala.collection.immutable | |
import scala.language.postfixOps | |
import scala.io.StdIn | |
import scala.util.Try | |
/** | |
* Created by bogos on 12/13/2016. |
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
/////////////////////////////////////////////////////////////////////// | |
// TOP SECRET METEORCODE ENGINEERING BULLSHIT -- DO NOT STEAL // | |
// (c) Hawk Weisman, all rights reserved 'n' stuff // | |
/////////////////////////////////////////////////////////////////////// | |
type Payload: Map[String,Object] | |
type Prefunc: Payload => Boolean | |
abstract class Event ( | |
protected val payload: Payload, | |
protected var valid: Boolean = true |
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
/** | |
* USL - Useless Stack Language | |
*/ | |
import scala.collection.mutable | |
object USL { | |
/******************** | |
* Handling USL Data | |
********************/ |
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
class ClobberTable<K, T> { | |
ClobberTable parent; | |
HashTable<K, T> my; | |
ArrayList<K> whites; | |
public ClobberTable() { | |
parent = null; | |
my = new HashTable<K, T>(); | |
whites = new ArrayList<K>(); | |
} |