Skip to content

Instantly share code, notes, and snippets.

View benburton's full-sized avatar
👨‍💻
Content-Type: application/person

Ben Burton benburton

👨‍💻
Content-Type: application/person
View GitHub Profile
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: NullPointerException when executing ViewGroup.dispatchDraw method
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: java.lang.NullPointerException: Attempt to read from field 'versioned.host.exp.exponent.modules.api.components.svg.SVGLength$UnitType versioned.host.exp.exponent.modules.api.components.svg.SVGLength.unit' on a null object reference
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: at versioned.host.exp.exponent.modules.api.components.svg.VirtualView.relativeOnWidth(VirtualView.java:360)
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: at versioned.host.exp.exponent.modules.api.components.svg.RectView.getPath(RectView.java:79)
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: at versioned.host.exp.exponent.modules.api.components.svg.RenderableView.draw(RenderableView.java:335)
10-28 11:51:57.801 20072 20072 E unknown:ReactNative: at versioned.host.exp.exponent.modules.api.components.svg.RenderableView.render(RenderableView
1: Frank Ocean: Blonde (2016)
2: Kanye West: My Beautiful Dark Twisted Fantasy (2010)
3: Beyoncé: Beyoncé (2013)
4: Kendrick Lamar: To Pimp a Butterfly (2015)
5: Fiona Apple: The Idler Wheel Is Wiser Than the Driver of the Screw and Whipping Cords Will Serve You More Than Ropes Will Ever Do (2012)
6: Solange: A Seat at the Table (2016)
7: Vampire Weekend: Modern Vampires of the City (2013)
8: Robyn: Body Talk (2010)
9: D’Angelo and the Vanguard: Black Messiah (2014)
10: Frank Ocean: Channel Orange (2012)
$ ./compile.sh [ruby-2.2.1]
Error: Couldn't find preset "es2015" relative to directory "/Users/bburton/Workspace/corespring-multiple-choice-react"
at /Users/bburton/.nvm/versions/node/v6.0.0/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:321:17
at Array.map (native)
at OptionManager.resolvePresets (/Users/bburton/.nvm/versions/node/v6.0.0/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:305:20)
at OptionManager.mergePresets (/Users/bburton/.nvm/versions/node/v6.0.0/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:288:10)
at OptionManager.mergeOptions (/Users/bburton/.nvm/versions/node/v6.0.0/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:14)
at OptionManager.init (/
@benburton
benburton / PlayWSWithoutPlayExample.scala
Last active January 22, 2018 04:56
An example of using the Play-WS library without the Play! Framework
package com.benburton
import com.ning.http.client.AsyncHttpClientConfig
import play.api.libs.ws.WSResponse
import play.api.libs.ws.ning.NingWSClient
import scala.concurrent.duration.Duration
import scala.concurrent.{Await, Future}
object PlayWSWithoutPlayExample extends App {

Keybase proof

I hereby claim:

  • I am benburton on github.
  • I am benburton (https://keybase.io/benburton) on keybase.
  • I have a public key whose fingerprint is 895B A15A A0F1 2547 3758 9690 C046 2450 9001 0D58

To claim this, I am signing this object:

@benburton
benburton / gist:2b799c3b6afd4daea3de
Created November 16, 2014 02:09
PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQENBFRoBcwBCADQ785S44m2i5O1SL9bsW/DK31UbsSzlUHZ2v7vyHPYFuasAD5M
IHwkqaA+eG3miv2gjpeMxv5KhI47Zz11niO9RyR+fyjEzNQ/7iqW21oDgHlaGMCy
A4NWVHj7B9/hlCJE2hhfKc0ARZKz7pC5bBDa4mTKYuEGoftqjgyQPO+1YozLNj4J
rpu8TcXPNcJICbCeZGdgNXDM1ULvSnuxYLIsNxGH2ZBdkzJ0L8ErHp+30kd6o0gu
pdnLO9QJCKV7M2apsd4jOLhvapoAuONhMOnUupeBErJyvsoilaXJE3XONYEbu6Cn
t3FYXUb7WqQ8Dqv56p/zbF5J+qPi0Bh2RdYRABEBAAG0MkJlbmphbWluIEJ1cnRv
biA8YmVuamFtaW4uam9zZXBoLmJ1cnRvbkBnbWFpbC5jb20+iQE4BBMBAgAiBQJU
@benburton
benburton / why.sh
Created April 18, 2013 21:44
Poll whytheluckystiff.net for new pages, download them, and provide notifier alerts.
#!/bin/sh
RECENT=`curl -s http://whytheluckystiff.net | awk '/./{line=$0} END{print line}' | awk '{print $1}'`
while [ true ]
do
LATEST=`curl -s http://whytheluckystiff.net | awk '/./{line=$0} END{print line}' | awk '{print $1}'`
if [ "$RECENT" != "$LATEST" ]
then
wget http://whytheluckystiff.net/${LATEST}
terminal-notifier -message $LATEST -title '_why'
RECENT=$LATEST
@benburton
benburton / mailFilters.xml
Created January 10, 2013 14:17
GMail filter to mark annoying HipChat @ALL emails as read automatically.
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1357827393586</id>
<updated>2013-01-10T14:16:38Z</updated>
<author>
<name>Ben Burton</name>
<email>ben@neo.com</email>
</author>
<entry>
<category term='filter'></category>
@benburton
benburton / fab.user.js
Created June 7, 2012 16:51
Fab.com - Remove signup blocker
// ==UserScript==
// @name Fab.com - Remove signup blocker
// @match http://fab.com/*
// @match http://www.fab.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
script.addEventListener('load', function() {
// ==UserScript==
// @match http://*.fab.com/*
// ==/UserScript==
$(document).ready(function() {
$(".newLoginProcess").hide();
$(".modal-bg").hide();
});