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.*; | |
public class Perm { | |
public static void main(String[] args) throws Exception { | |
Perm perm = new Perm(); | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < Integer.MAX_VALUE; i ++) { | |
perm.run(); | |
} | |
System.out.println("Normal method: " + (System.currentTimeMillis() - start) + "ms"); |
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
"This is a JSON string" |
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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Minecraft | |
Icon=/opt/minecraft/favicon.png | |
Exec=/usr/bin/java -splash:/opt/minecraft/favicon.png -jar /opt/minecraft/Minecraft.jar | |
Terminal=false |
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
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: java.lang.NullPointerException | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at org.spongepowered.common.effect.particle.SpongeParticleHelper.toPackets(SpongeParticleHelper.java:57) | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at net.minecraft.world.World.spawnParticles(World.java:106) | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at net.minecraft.world.World.spawnParticles(World.java:97) |
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
#include <iostream> | |
#include "Main.h" | |
using namespace std; | |
// /usr/lib/jvm/java-8-oracle/include/linux | |
JNIEXPORT void JNICALL Java_Main_test__(JNIEnv *env, jobject obj) { | |
cout << env << endl; | |
cout << obj << endl; |
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
// AFTER | |
public static Class<?>[] after(String str) throws Exception { | |
Conditions.nonNull(str, "str"); | |
str = str.substring(1, str.lastIndexOf(")")); | |
List<Class<?>> args = Lists.newArrayList(); | |
for (int i = 0 ; i < str.length(); i++) { | |
int a = i; | |
if (str.charAt(i) == '[') { // Process arrays | |
while (str.charAt(a) == '[' && i < str.length()) { |
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
#!/usr/bin/python3 | |
# Copyright 2016 Year4000. All Rights Reserved. | |
from urllib.request import urlopen | |
from xml.etree.ElementTree import fromstring | |
import re | |
def set_up(): | |
""" Ask the user for the url and file name """ | |
# protocol |
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
print("echo") |
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
# This python script is a lightweight script that ensures that the proper | |
# packages are installed on the remote host, must have hostname defined | |
# $ hostname new-host ; wget -O - goo.gl/G3JWa4 | python | |
import os | |
import sys | |
print('-' * 5 + ' [Ansible Bootstrap Script] ' + '-' * 5) |
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
https://drive.google.com/file/d/1-hi-m5kGRTPjfQYTFQnu9n2FsDGmgy9Zjg/view?usp=sharing | |
https://drive.google.com/file/d/1pTMeF8LtF785sxkJE0TrxByNDKIaL_WDxA/view?usp=sharing | |
https://drive.google.com/file/d/1NUc0rKIHIWOM_m8znxIWzrxVnWfrOYHI1A/view?usp=sharing | |
https://drive.google.com/file/d/1-9IsI3zWt_rzoLwY5gA5knQU36glM7um_Q/view?usp=sharing | |
https://drive.google.com/file/d/1ORuHH8gcoJ5F557VHJkWce1tCplbU9nSHw/view?usp=sharing | |
https://drive.google.com/file/d/1s3zlxuf6Ya5FpAj93GDXpfPPYBfi3oibpQ/view?usp=sharing | |
https://drive.google.com/file/d/1YXmpsZgGnvkMQD4guFTlsiC5SJceqD4OyQ/view?usp=sharing | |
https://drive.google.com/file/d/1xZG2wTV9L4uHlmwFgpLTf8SrXVok1PCSZg/view?usp=sharing | |
https://drive.google.com/file/d/1NtXSu2JTpqgI-aTnV9oVq8dE6lHXlS-YrQ/view?usp=sharing | |
https://drive.google.com/file/d/1vHaf7dNE_Lz9JtOzu-OBac_WLaP5depa8A/view?usp=sharing |