Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Bullock jonbullock

View GitHub Profile
View Wikipedia.kt
import java.util.*
import kotlin.comparisons.compareBy
import kotlin.comparisons.thenBy
fun main(args: Array<String>) {
if (args.size == 0) {
println("Provide a Wikipedia page to fetch")
return
}
val apiEndpoint = "https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=" + args[0]
@jonbullock
jonbullock / Renderer.java
Last active Jan 30, 2017
RendererTest for path with dot in it and output file without extension
View Renderer.java
/**
* Creates a new instance of Renderer with supplied references to folders.
*
* @param db The database holding the content
* @param destination The destination folder
* @param templatesPath The templates folder
* @param config
* @param renderingEngine The instance of DelegatingTemplateEngine to use
*/
public Renderer(ContentStore db, File destination, File templatesPath, CompositeConfiguration config, DelegatingTemplateEngine renderingEngine) {
View WifiPixelTest.ino
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 4
#define NUM_LEDS 16
#define BRIGHTNESS 25
@jonbullock
jonbullock / contributing.asciidoc
Last active Jul 25, 2016
JBake proposed contributors guide
@jonbullock
jonbullock / asciidoc.adoc
Created Oct 30, 2014
JBake custom feed file
View asciidoc.adoc

Asciidoc Feed

This file is created just to trigger the rendering of a file using the template file customfeed.ftl which wouldn’t use any of the content in this file.

View keybase.md

Keybase proof

I hereby claim:

  • I am jonbullock on github.
  • I am jonbullock (https://keybase.io/jonbullock) on keybase.
  • I have a public key whose fingerprint is 53CF 77A4 0901 23B5 0351 65C3 6ACB F2EE DC33 2822

To claim this, I am signing this object:

@jonbullock
jonbullock / .project
Created Feb 18, 2014
JBake Eclipse settings
View .project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jbake-core</name>
<comment>JBake is a Java based open source static site/blog generator for developers. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>
@jonbullock
jonbullock / test.ad
Last active Dec 20, 2015
AsciiDoc formatted content file for JBake.org
View test.ad
title=AsciiDoc Test
type=post
tags=asciidoc
date=2013-07-29
status=published
~~~~~~
= Enjoy the magic of Asciidoctor in Java
Alex Soto
2013-04-18
:revdate: 2013-04-18 21:43:51 -0600
@jonbullock
jonbullock / maven.log
Created Aug 8, 2013
Error while building CommaFeed using: mvn clean package tomee:build -Pprod
View maven.log
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CommaFeed 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ commafeed ---
[INFO] Deleting /home/jon/tmp/commafeed-master/target
[INFO]
[INFO] --- git-commit-id-plugin:2.1.5:revision (default) @ commafeed ---
@jonbullock
jonbullock / error.log
Last active Dec 18, 2015
CommaFeed error during Maven build
View error.log
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CommaFeed 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ commafeed ---
[INFO]
[INFO] --- gmaven-plugin:1.5:execute (default) @ commafeed ---
[INFO]
You can’t perform that action at this time.