Skip to content

Instantly share code, notes, and snippets.

import React, { Component, PropTypes } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
import { createStore, combineReducers, applyMiddleware} from 'redux';

Keybase proof

I hereby claim:

  • I am 0x6e6562 on github.
  • I am 0x6e6562 (https://keybase.io/0x6e6562) on keybase.
  • I have a public key ASDR4r-qlycciJO2qUgs5g7Db2Izgna3ubAL0F23fQSGYgo

To claim this, I am signing this object:

@0x6e6562
0x6e6562 / build_output.log
Last active March 16, 2016 22:59
Solaris Freeswitch build issue
$ CFLAGS="-m64" CXXFLAGS="-m64" ./configure
$ gmake
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: WARNING: 'apr-config.in' seems to ignore the --datarootdir setting
config.status: creating apr.pc
config.status: creating test/Makefile
public class OffsetAwareGenerator extends JavaGenerator {
@Override
protected String getJavaTypeReference(Database db, DataTypeDefinition type) {
if (type.getUserType().equals("java.time.OffsetDateTime")) {
// TODO Not very type safe, extremely hacky
return "new org.jooq.impl.DefaultDataType<oracle.sql.TIMESTAMPTZ>(org.jooq.SQLDialect.ORACLE12C, oracle.sql.TIMESTAMPTZ.class, \"timestamp with time zone\")";
} else {
return super.getJavaTypeReference(db, type);
}
public class InstantAwareGenerator extends JavaGenerator {
@Override
protected String getJavaTypeReference(Database db, DataTypeDefinition type) {
if (type.getUserType().equals("java.time.Instant")) {
// TODO Not very type safe
return "new org.jooq.impl.DefaultDataType<Object>(org.jooq.SQLDialect.ORACLE12C, Object.class, \"timestamp with time zone\")";
} else {
return super.getJavaTypeReference(db, type);
}
package se.qall.middleton.services;
import com.jayway.restassured.RestAssured;
import com.relops.snowflake.Snowflake;
import com.xebialabs.restito.server.StubServer;
import org.glassfish.grizzly.http.Method;
import org.glassfish.grizzly.http.server.Response;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@0x6e6562
0x6e6562 / gist:778d2ca2b72d4ad7645b
Created October 30, 2014 15:04
Travis ccm SIGQUIT
Using worker: worker-linux-4-1.bb.travis-ci.org:travis-linux-16
travis_fold:start:git.1
travis_time:start:2f433f65
$ git clone --depth=50 git://github.com/gocql/gocql.git gocql/gocql
Cloning into 'gocql/gocql'...
remote: Counting objects: 1063, done.
remote: Compressing objects: 0% (1/501) 
remote: Compressing objects: 1% (6/501) 
remote: Compressing objects: 2% (11/501) 
Using worker: worker-linux-10-2.bb.travis-ci.org:travis-linux-8
$ git clone --depth=50 git://github.com/gocql/gocql.git gocql/gocql
Cloning into 'gocql/gocql'...
remote: Counting objects: 1063, done.
remote: Compressing objects: 100% (501/501), done.
remote: Total 1063 (delta 627), reused 982 (delta 557)
Receiving objects: 100% (1063/1063), 397.04 KiB | 0 bytes/s, done.
Resolving deltas: 100% (627/627), done.
Checking connectivity... done.
Using worker: worker-linux-5-1.bb.travis-ci.org:travis-linux-8
travis_fold:start:git.1
travis_time:start:08144280
$ git clone --depth=50 git://github.com/gocql/gocql.git gocql/gocql
Cloning into 'gocql/gocql'...
remote: Counting objects: 1063, done.
remote: Compressing objects: 0% (1/501) 
remote: Compressing objects: 1% (6/501) 
remote: Compressing objects: 2% (11/501) 
@0x6e6562
0x6e6562 / gist:3aad3895dab4242a67ae
Created October 27, 2014 19:20
Multiline Swagger annotations
/**
* Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
* totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
* dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
* sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est,
* qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi
* tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam,
* quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?
* Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,
* vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"