Skip to content

Instantly share code, notes, and snippets.

Darren Bishop DarrenBishop

View GitHub Profile
View keybase.md

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:

View .NullSafeCoalescer.md

Null Safe Coalescer Operator and more for Scala

View ChronoTime.md

Ruby-on-Rails-style date arithmetic for Scala

View How to install Scala 2.10 homebrew
# 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
View GoogleExampleGadget.xml
<?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 Feb 25, 2015
BlogPaginator 1.1 Gadgetized for Blogger.com
View BlogPaginatorGadget.xml
<?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;
View BlogPaginatorUUID.html
<script>
// <![CDATA[
jQuery(function ($) {
$.uuid = function () {
// http://www.ietf.org/rfc/rfc4122.txt
var s = [];
var hexDigits = "0123456789abcdef";
View BlogPaginator.html
<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 Jul 10, 2011
FlexUnit4 Testing with Parsley: Missing example files
View AsyncUtils.as
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;
You can’t perform that action at this time.