I hereby claim:
- I am joa on github.
- I am joa (https://keybase.io/joa) on keybase.
- I have a public key whose fingerprint is 5435 66F5 CEFD 8CD1 B9DF CE65 BD93 DD10 BF67 5F0F
To claim this, I am signing this object:
class Main { | |
public static void main(final String[] args) { | |
System.out.println("Hello World!"); | |
} | |
} |
FROM alpine:latest as builder | |
WORKDIR /usr/local/bin | |
RUN apk add --no-cache curl && \ | |
export KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) && \ | |
curl -sLO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \ | |
chmod +x kubectl | |
FROM alpine:latest |
function archiveInbox() { | |
var query = 'label:inbox is:read older_than:28d -label:unanswered -label:unread'; | |
var batchSize = 100; | |
while(GmailApp.search(query, 0, 1).length == 1) { | |
GmailApp.moveThreadsToArchive(GmailApp.search(query, 0, batchSize)); | |
} | |
} |
package go | |
import java.util.concurrent.{ | |
BlockingQueue => JBlockingQueue, | |
ArrayBlockingQueue => JArrayBlockingQueue | |
} | |
object Channel { | |
def empty[A]: Channel[A] = new BlockingChannel() | |
def make[A]: Channel[A] = make(1) |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; | |
/** | |
* | |
*/ | |
public final class StackBlur { | |
private static final int PARALLEL_THRESHOLD = 2048 * 2048; |
I hereby claim:
To claim this, I am signing this object:
function onGLC(glc) { | |
glc.loop(); | |
glc.size(400, 400); | |
glc.setDuration(2); | |
glc.setFPS(60); | |
glc.setMode('single'); | |
glc.setEasing(false); | |
var list = glc.renderList, | |
width = glc.w, | |
height = glc.h, |
class Base { | |
void meth() { | |
System.out.println("Base::meth"); | |
} | |
} | |
class Derived extends Base { | |
public static void main(String[] args) { | |
Base x = new Derived(); | |
x.meth(); |
class Shadowing { | |
private float x; | |
public Shadowing(float x) { | |
this.x = x; | |
} | |
public void foo() { | |
if(x < 0.5f) { | |
x = Math.round(x); |
static int[] t = {0, 5, 1, 6, 4, 3, 2, 7}; | |
int foo(final byte value) { | |
int x = value & 0xff; | |
x |= x >> 1; | |
x |= x >> 2; | |
x |= x >> 4; | |
x *= 0x1d; | |
x &= 0xff; | |
x >>= 5; |