This file contains hidden or 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.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Queue; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.locks.LockSupport; | |
/** |
This file contains hidden or 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
public void draw() { | |
GLES20.glEnable(GLES20.GL_STENCIL_TEST); | |
//Disable writing to the color and depth buffers: this is just for creating the stencil | |
GLES20.glColorMask(false, false, false, false); | |
GLES20.glDepthMask(false); | |
/* | |
GLES20.GL_NEVER: For every pixel, fail the stencil test (so we automatically overwrite the pixel's stencil buffer value) | |
1: write a '1' to the stencil buffer for every drawn pixel because glStencilOp has 'GLES20.GL_REPLACE' |
This file contains hidden or 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
/* <![CDATA[ */ | |
//============================================================ | |
// ZALGO text script by tchouky | |
//============================================================ | |
// data set of leet unicode chars | |
//--------------------------------------------------- | |
//those go UP | |
var zalgo_up = [ |
This file contains hidden or 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
old syntax: | |
pgm0:(pgm |[] |[] |[] [] | |
(inj [] | |
(str "Hello World") | |
[SYNC_FRONT now 1 forever root nil] | |
) | |
(set [this.vw.act 0]) | |
1) |[] | |
new syntax 1: |
This file contains hidden or 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 hacks; | |
import bbcursive.Cursive; | |
import bbcursive.std; | |
import java.nio.ByteBuffer; | |
import java.nio.IntBuffer; | |
import java.util.ArrayList; | |
import java.util.concurrent.atomic.AtomicInteger; |
This file contains hidden or 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.*; | |
import java.util.concurrent.*; | |
public class CoroutineMain { | |
public static void main(String[] args) { | |
final Coroutine bob = new Coroutine() { | |
@Override | |
public void corun() throws InterruptedException { | |
count("Bob", this); |
This file contains hidden or 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 com.sun.tools.attach.AttachNotSupportedException; | |
import com.sun.tools.attach.VirtualMachine; | |
import sun.tools.attach.HotSpotVirtualMachine; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.lang.management.ManagementFactory; | |
import java.lang.management.RuntimeMXBean; |
This file contains hidden or 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
var DEFAULT_MAX_LISTENERS = 12 | |
function error(message, ...args){ | |
console.error.apply(console, [message].concat(args)) | |
console.trace() | |
} | |
class EventEmitter { | |
constructor(){ | |
this._maxListeners = DEFAULT_MAX_LISTENERS |
This file contains hidden or 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 static java.util.Arrays.asList; | |
import static java.util.Arrays.stream; | |
import static java.util.stream.Collectors.joining; | |
import static java.util.stream.Collectors.toCollection; | |
import static java.util.stream.Collectors.toList; | |
import static java.util.stream.IntStream.range; | |
import static java.util.stream.Stream.concat; | |
import static java.util.stream.Stream.of; | |
import java.io.Console; |
This file contains hidden or 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
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 François de Campredon | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |