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
fn generate_command_executor<'a, S: Into<&'a str>>(env: *mut JNIEnv, shim: jobject, fqcn: S) -> command_spec_CommandExecutor { | |
let fqcn = fqcn.into(); | |
let jni = get_jni(env, shim); | |
let fqcn_java = rust_string_to_java_string(env, fqcn); | |
let object = java_method!(env, jni.object, "generateCommandExecutor", "(Ljava/lang/String;)Lorg/spongepowered/api/command/spec/CommandExecutor;", CallObjectMethodA, fqcn_java); | |
unsafe { command_spec_CommandExecutor::from(env, object) } | |
} | |
#[allow(non_snake_case)] | |
#[no_mangle] |
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
[18:45:32 INFO]: Starting minecraft server version 1.10.2 | |
[18:45:32 INFO] [Sponge]: Loading Sponge... | |
[18:45:33 INFO] [Sponge]: Loading plugins... | |
[18:45:33 INFO] [Sponge]: Loaded plugin: spongejni 1.0.0-SNAPSHOT (from mods/spongejni-1.0.0-SNAPSHOT.jar) | |
[18:45:33 INFO] [Sponge]: Initializing plugins... | |
[18:45:33 INFO]: Loading properties | |
[18:45:33 INFO]: Default game type: SURVIVAL | |
[18:45:33 INFO]: Generating keypair | |
[18:45:33 INFO]: Starting Minecraft server on *:25565 | |
[18:45:33 INFO]: Using default channel type |
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
BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5wcIkHbs9dkzfP rPsjdmNN5VB0yYT 05GTkr761Nppqq8 TEEB3SUgIMhPkJU ecehYRaSCnD6LwR fCPRahlU223FL4p wr2juqTRDqtALrG SP2BsT6BPyGu2uH x1VLwAJOKVtwAhB LA8jvwbJ3GUg9aH FqfxY9KYSIvMuSP dEG58c5sSKAAYfy bXzDrz82Ojn5W7d pME7VRIaeUdvD9q CEjVGGcRrPUREz2 QnSRMk4HHQ7sVCl YsSC8ZQgmowPozw HBWZxOD1CWJYgy2 hHOBvVXzcGNzY41 q7ddcEQHXaMO2B8 LMKGtWyufVWtcLM 28QsVoB0ZerrQSN GefbmfqTogGZ29T J5wkQ0Miu6R9BfG NtWLbOdQklrFeHJ eaH9CaYOwANspZ2 9qxYVIxN8VTPGDc H4zdwT5l5412WK5 d1rjw7qi. END KEYBASE SALTPACK SIGNED MESSAGE. |
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
struct Rules<'a> { | |
order: Option<Order<'a>>, | |
must_exist: Option<bool>, | |
must_be_unique: Option<bool> | |
} | |
struct Order<'a> { | |
paths: Option<Vec<Path<'a>>>, | |
sort: Option<Sort> | |
} |
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
bins is designed to be flexible and work with all pastebin interfaces. |
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
fn main() { | |
println!("Hello, world!"); | |
} |
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
-----BEGIN PGP MESSAGE----- | |
Comment: https://keybase.io/download | |
Version: Keybase Go 1.0.16 (darwin) | |
xA0DAAoBrVv957X/2WEBy+F0AOIAAAAA5lRoZSBqa2NjbGVtZW5zIG9uIGlyYy5l | |
c3Blci5uZXQgb24gRnJpZGF5LCBKdW5lIDMsIDIwMTYgaXMgaW5kZWXiZCBtZeAh | |
AMLBXAQAAQoAEAUCV1Ej2wkQrVv957X/2WEAAMuyEAA5wxUdfcaqnHpw7x/qCP9B | |
s4naiEoF25pPM1tPW3PvrnVL250Cx/ehT5s048w4IgDLSSWYW3OP1SyQyZUgALZC | |
U3lhZn4nftGknvvYX4gpzdo1FgDtXF2r8aINhAsQopV3qChs93IeGC1+oBdhKVHo | |
2wsbia8M9hq4dHS8Qp36738pQ88miFectC24z/9wq0wR44MAaxfKCaG7w0VDiUmF |
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.Random | |
class Roll { | |
private val random = Random() | |
fun roll(n: Int = 1, d: Int = 6): String { | |
val res = (1..n).map { [email protected](d) + 1 } | |
return "${res.joinToString()} = ${res.sum()}" | |
} |
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
>> Make two temp cells | |
+++++[>++++++++<-] Put 40 (which is '(') in the fourth cell | |
, Read in the first byte of input | |
[ | |
Compare the input to 40 | |
[<+>-]+ | |
>[<<-<+>>>-] | |
<<<[>>>+<<<-] | |
>[>-<[-]] | |
If/else the comparison |
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
from requests import get | |
from bs4 import BeautifulSoup | |
from itertools import chain | |
API_KEY = 'topkek' | |
with open('1000.dicin') as f: | |
words = f.read().split('\n') | |
# Alternatively, if you don't feel like saving 1000.dicin somewhere |