Skip to content

Instantly share code, notes, and snippets.

package userdb;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.junit.Test;
import java.beans.PropertyVetoException;
import java.sql.*;
import static org.junit.Assert.assertEquals;
declare module goog.string {
/**
* Wrapper for compile-time-constant strings.
*
* Const is a wrapper for strings that can only be created from program
* constants (i.e., string literals). This property relies on a custom Closure
* compiler check that {@code goog.string.Const.from} is only invoked on
* compile-time-constant expressions.
*
@georgewfraser
georgewfraser / gist:9c9122ec8f819d8f912f
Created September 17, 2014 23:48
famo.us module as closure
goog.provide('famous.core.Entity');
/**
* A singleton that maintains a global registry of Surfaces.
* Private.
*
* @static
* @class Entity
*/
DROP TABLE IF EXISTS test;
CREATE TABLE test (
id SERIAL PRIMARY KEY,
value TEXT
);
DROP TABLE IF EXISTS etl_queue;
CREATE TABLE etl_queue (
["account","account","account","assignee","assignee","assignee","assignee","assignee","assignee","assignee email","assignee email","assignee email","assignee email","assignee email","assignee email","author","author email","booleans","booleans","campaign","campaign type","category","category","city","city","city","city","city","company","company","company size","company size","company size","company size","company size","country","country","country","country","country","country","country","country","country","creator","creator city","creator department","creator email","creator title","date","date","date","date","date","date","date","date","date","date","date","date","date","date","date","dates","day dates","day of month","doubles","email","email","email client","email client","email client","email client","floats","forum","forum type","group","group","group","group","group","group","indices","industry","industry","ints","language","language","language","language","list","list","list","list","list rating","li
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/george/.m2/repository/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/george/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Cached fake data found in /tmp/sim-data, will skip generating new data.
Exception in thread "main" org.postgresql.util.PSQLException: ERROR: relation "_application_fees" does not exist
Position: 159
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
@georgewfraser
georgewfraser / CsvOrder
Last active August 29, 2015 14:14
Jackson CSV column order bug
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvSchema;
import org.junit.Test;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.SequenceWriter;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvSchema;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
package com.fivetran.donkey.serialization;
import com.fasterxml.jackson.core.io.IOContext;
import com.fasterxml.jackson.dataformat.csv.CsvFactory;
import com.fasterxml.jackson.dataformat.csv.CsvGenerator;
import java.io.IOException;
import java.io.Writer;
/**
<script type="text/javascript">
(function(e){var c=document.getElementsByTagName("script")[0],b=document.createElement("script");
b.type="text/javascript";b.async=!0;b.src="https://cdn.fivetran.com/xenomorph.js";
c.parentNode.insertBefore(b,c);var d=[];window.Fivetran={account:e,google_analytics:function(a,
b,f,g){d.push({trackingId:a,tracker:b,hitType:f,fields:g})},q:d};var a=window.GoogleAnalyticsObject||
"ga";(window[a]=window[a]||function(){(window[a].q=window[a].q||[]).push(arguments)})(function(){var b=
window[a],c=b.create;b.create=function(b){var a=c.apply(this,arguments),d=a.send;
a.send=function(c,e){d.apply(this,arguments);window.Fivetran.google_analytics(b,a,
c,e)};return a}})})("$ACCOUNT");
</script>