Skip to content

Instantly share code, notes, and snippets.

Cory Kolbeck ckolbeck

Block or report user

Report or block ckolbeck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View NumServer.java
package com.urbanairship.goro.task;
import com.google.common.collect.Lists;
import com.google.common.primitives.Ints;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.BufferedWriter;
View hilight.sh
#!/bin/bash
set -e
PATTERN=`echo $@ | tr ' ' '|'`
if [ -z "${PATTERN}" ]; then
cat -
exit $?
fi
View MinimalCase.java
package testing.integration;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.storm.Config;
import org.apache.storm.LocalCluster;
import org.apache.storm.shade.com.google.common.collect.ImmutableList;
import org.apache.storm.shade.com.google.common.collect.Maps;
import org.apache.storm.trident.TridentTopology;
import org.apache.storm.trident.operation.TridentCollector;
import org.apache.storm.trident.state.BaseStateUpdater;
View gist:c97da9900ee56f8acc1093f8f4fc373a
java.lang.RuntimeException: java.lang.UnsupportedOperationException: nth not supported on this type: AddressedTuple
at org.apache.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:464) ~[storm-core-1.0.2.jar:1.0.2]
at org.apache.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:430) ~[storm-core-1.0.2.jar:1.0.2]
at org.apache.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:73) ~[storm-core-1.0.2.jar:1.0.2]
at org.apache.storm.disruptor$consume_loop_STAR_$fn__7509.invoke(disruptor.clj:83) ~[storm-core-1.0.2.jar:1.0.2]
at org.apache.storm.util$async_loop$fn__624.invoke(util.clj:484) [storm-core-1.0.2.jar:1.0.2]
at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.UnsupportedOperationException: nth not supported on this type: AddressedTuple
at clojure.lang.RT.nthFrom(RT.java:933) ~[clojure-1.7.0.jar:?]
View copy-branch-poms.sh
for pom in `git ls-tree -r --name-only --full-tree ${COMMIT} | grep 'pom.xml$'`; do
DIR=`dirname ${pom}`
if [ ${DIR} != '.' ]; then
mkdir ${TMP_DIR}/${DIR}
fi
git show ${COMMIT}:${pom} > ${TMP_DIR}/${pom}
done
View architecture.txt
__________________
\ ) \
\ ( ( \
\ ) \
( ( \
/----------------) /\ -(-------------
//---------------/( // | (`' / |
// /_ -.;_/ \\--._ / __|
// //(_;-// | \ \-'.\ / / ||
// // ( `.__ _ ___,') / / ||
View .i3status.conf
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
output_format = i3bar
View collector.go
package main
import (
"flag"
"fmt"
"log"
"net/http"
"io"
"io/ioutil"
"encoding/json"
View gist:8818129
The Challenge
-------------
Given the following riddle, write a regular expression describing all possible answers,
assuming you never make a move which simply undoes the last one you made.
The Riddle
----------
You are on your way somewhere, taking with you your cabbage, goat, and wolf, as always.
You come upon a river and are compelled to cross it, but you can only carry one of the
three companions at a time. None of them can swim because this isn't THAT kind of riddle.
View AppTest.java
package com.urbanairship;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
You can’t perform that action at this time.