Skip to content

Instantly share code, notes, and snippets.

Jan Berkel jberkel

Block or report user

Report or block jberkel

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 brouter.gpx
<?xml version="1.0" encoding="UTF-8"?>
<!-- track-length = 79030 filtered ascend = 1046 plain-ascend = 380 cost=144766 -->
<gpx
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
creator="BRouter-1.4.11" version="1.1">
<trk>
<name>brouter_trekking_0</name>
<trkseg>
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:c9c29a04f05956705ec9
import com.almworks.sqlite4java.SQLiteConnection;
import com.almworks.sqlite4java.SQLiteException;
import com.almworks.sqlite4java.SQLiteStatement;
import de.tudarmstadt.ukp.jwktl.api.IWiktionaryEntry;
import de.tudarmstadt.ukp.jwktl.api.IWiktionarySense;
import de.tudarmstadt.ukp.jwktl.api.WiktionaryException;
import de.tudarmstadt.ukp.jwktl.api.entry.WiktionaryEntry;
import de.tudarmstadt.ukp.jwktl.api.entry.WiktionaryPage;
import de.tudarmstadt.ukp.jwktl.api.util.ILanguage;
import de.tudarmstadt.ukp.jwktl.parser.util.IDumpInfo;
View gist:9970719
<%
def html = new URL("http://www.gifbin.com/random").getText()
def images = html =~ /img src=['"](http:\/[^"']*\.gif)['"]/
def gif = images.collect { it[1] }[0]
if (gif != null) {
%>
<img src="<%= gif %>"/>
<% } %>
View gist:7692706
$ java \
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog \
-Dorg.apache.commons.logging.simplelog.showdatetime=true \
-Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG \
-Dorg.apache.commons.logging.simplelog.log.org.apache.http.wire=ERROR
@jberkel
jberkel / gist:7574502
Created Nov 21, 2013
simulating iOS reachability
View gist:7574502
$ host api.soundcloud.com
api.soundcloud.com is an alias for api-cdn.l.soundcloud.com.
api-cdn.l.soundcloud.com is an alias for cs97.wac.edgecastcdn.net.
cs97.wac.edgecastcdn.net has address 93.184.220.127
$ sudo route add -host 93.184.220.127 -interface gif0
add host 93.184.220.127: gateway gif0
$ scutil -r api.soundcloud.com
Reachable,Transient Connection,Connection Required
$ scutil
View gist:5542181
Pod::Spec.new do |s|
s.name = "sqlite3"
s.version = "3.7.16.2"
s.summary = "SQLite is an embedded SQL database engine."
s.homepage = "http://www.sqlite.org"
s.license = "Public Domain"
s.author = {"D. Richard Hipp" => "drh@hwaci.com"}
sqlite_version_format = "%.1d%.2d%.2d%.2d" % s.version.to_s.split('.').push(0)
@jberkel
jberkel / xctool.rb
Last active Dec 17, 2015
formula for xctool
View xctool.rb
# to install:
# curl https://raw.github.com/gist/5525293 > /usr/local/Library/Formula/xctool.rb && brew install xctool --HEAD
require 'formula'
class Xctool < Formula
homepage 'https://github.com/facebook/xctool.git'
head 'https://github.com/facebook/xctool.git'
def install
system "./build.sh"
View Mantle.podspec
Pod::Spec.new do |s|
s.name = "Mantle"
s.version = "0.3"
s.summary = "Model framework for Cocoa and Cocoa Touch."
s.homepage = "https://github.com/github/Mantle"
s.license = 'MIT'
s.author = { "GitHub" => "support@github.com" }
s.source = { :git => "https://github.com/github/Mantle.git", :tag => "0.3" }
View gist:3652835
09-06 08:56:06.278 I/System (18318): Failed to destroy process 18365
09-06 08:56:06.283 I/System (18318): libcore.io.ErrnoException: kill failed: ESRCH (No such process)
09-06 08:56:06.283 I/System (18318): at libcore.io.Posix.kill(Native Method)
09-06 08:56:06.283 I/System (18318): at libcore.io.ForwardingOs.kill(ForwardingOs.java:77)
09-06 08:56:06.283 I/System (18318): at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:257)
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.f.b(Unknown Source)
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.reader.LogcatReaderLoader.<init>(Unknown Source)
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.reader.LogcatReaderLoader.a(Unknown Source)
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.l.a(Unknown Source)
09-06 08:56:06.283 I/System (18318): at com.nolanlawson.logcat.b.c.doInBackground(Unknown Source)
You can’t perform that action at this time.