Skip to content

Instantly share code, notes, and snippets.

View DarrenBishop's full-sized avatar
🧐

Darren Bishop DarrenBishop

🧐
View GitHub Profile
@DarrenBishop
DarrenBishop / yajl.rb
Created February 3, 2021 11:30
Update Yajl Formulae to enable Kafkacat's JSON Output Envelope
class Yajl < Formula
desc "Yet Another JSON Library"
homepage "https://lloyd.github.io/yajl/"
url "https://github.com/lloyd/yajl/archive/2.1.0.tar.gz"
sha256 "3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a"
license "ISC"
head "https://github.com/edenhill/yajl.git",
branch: "edenhill"

Keybase proof

I hereby claim:

  • I am darrenbishop on github.
  • I am darrenbishop (https://keybase.io/darrenbishop) on keybase.
  • I have a public key ASDE9yaeGMRaEABsxQNDnW6yReoWbaXKgliPQjwmv1foBwo

To claim this, I am signing this object:

@DarrenBishop
DarrenBishop / .NullSafeCoalescer.md
Last active January 11, 2016 19:31
NullSafeCoalescer

Null Safe Coalescer Operator and more for Scala

@DarrenBishop
DarrenBishop / ChronoTime.md
Last active April 13, 2018 23:01
ChronoTime

Ruby-on-Rails-style date arithmetic for Scala

# to install the latest stable version:
brew install scala --with-docs
# to install scala-2.10:
brew install https://gist.github.com/DarrenBishop/c906f3e895e48bfaf6fa/raw/a7b7ac28d4febc656995e2e58913ab4ea354ed8b/scala.rb --with-docs
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch scala 2.11.7
brew switch scala 2.10.5
@DarrenBishop
DarrenBishop / GoogleExampleGadget.xml
Created February 25, 2015 15:12
Google Example Gadget
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs height="300" title="BlogSocial">
<Require feature="opensocial-0.7"/>
<Require feature="google.blog"/>
<Require feature="skins"/>
<Require feature="views"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
@DarrenBishop
DarrenBishop / BlogPaginatorGadget.xml
Created February 25, 2015 14:49
BlogPaginator 1.1 Gadgetized for Blogger.com
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Blog Paginator" height="350" />
<Content type="html">
<![CDATA[
<script type="text/javascript">
jQuery(function ($) {
const UUID_RE = /^.*(uuid\:([\w-]+)).*$/i;
@DarrenBishop
DarrenBishop / BlogPaginatorUUID.html
Created February 25, 2015 14:19
BlogPaginator UUID 1.1
<script>
// <![CDATA[
jQuery(function ($) {
$.uuid = function () {
// http://www.ietf.org/rfc/rfc4122.txt
var s = [];
var hexDigits = "0123456789abcdef";
@DarrenBishop
DarrenBishop / BlogPaginator.html
Last active January 7, 2016 17:37
BlogPaginator 1.1
<script>
// <![CDATA[
jQuery(function ($) {
const UUID_RE = /^.*(uuid\:([\w-]+)).*$/i;
const PAGE_RE = /^.*(page(\d+|All)).*$/i;
const SECTION_RE = /^.*(section-(\d+(:?_\d+)+)).*$/i;
@DarrenBishop
DarrenBishop / AsyncUtils.as
Created July 10, 2011 16:36
FlexUnit4 Testing with Parsley: Missing example files
package com.darrenbishop.support.flexunit.async {
import flash.utils.setTimeout;
import mx.core.mx_internal;
import mx.rpc.AsyncResponder;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.RemoteObject;
use namespace mx_internal;