Skip to content

Instantly share code, notes, and snippets.

View rdingwall's full-sized avatar

Richard Dingwall rdingwall

View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@rdingwall
rdingwall / ebcdic.java
Last active November 11, 2016 09:37
ASCII to IBM 1047 EBCDIC Go mapping table generator
import org.jpos.iso.ISOUtil;
import sun.nio.cs.ext.IBM1047;
import sun.nio.cs.ext.IBM1140;
import java.awt.event.KeyEvent;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
/**
* Created by richard on 10/11/2016.
@rdingwall
rdingwall / users.email.get.json
Created November 14, 2015 13:35
users.email.get
{
"id": "150d439b14573a7c",
"threadId": "150d439b14573a7c",
"labelIds": [
"INBOX",
"CATEGORY_UPDATES",
"Label_14"
],
"snippet": "Beatport Pro Top 100 DJ Charts Twitter Facebook Instagram Order Number: 28056409 User ID: #1806151",
"historyId": "6283996",
<p style="text-align: center;">
<a href="http://www.charitystaff.org.uk/" target="_blank"><img class="aligncenter wp-image-8130" alt="CSVA WINNERSLOGO 2014" src="http://www.sparkinside.org/wp-content/uploads/2014/06/CSVA-WINNERSLOGO-2014.jpg" width="150" height="150" /></a>
<a href="http://womenofthefuture.co.uk/" target="_blank"><img class="aligncenter wp-image-8130" alt="WOF_shortlist_button" src="http://www.sparkinside.org/wp-content/uploads/2014/10/WOF_shortlist_button.png" width="150" height="150" /></a>
</p>
@rdingwall
rdingwall / lessjs.rb
Last active August 29, 2015 14:07 — forked from andyfowler/lessjs.rb
Modified lessjs.rb to process included dependencies in the correct order, starting from main.less
module Jekyll
class LessCssFile < StaticFile
def write(dest)
# do nothing
end
end
# Expects a lessc: key in your _config.yml file with the path to a local less.js/bin/lessc
# Less.js will require node.js to be installed
@rdingwall
rdingwall / StandaloneSeqHiloGenerator.cs
Created September 19, 2012 10:07
StandaloneSeqHiloGenerator - ported from NHibernate
using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlTypes;
using System.Runtime.CompilerServices;
using Oracle.DataAccess.Client;
namespace Foo
{
/// <summary>
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using CsvHelper.Configuration;
using Xunit;
namespace CsvHelper.Tests
{
@rdingwall
rdingwall / StripAuthorXMLComments.ps1
Created June 19, 2012 09:25
PowerShell script to strip <author> tags from C# files
# Powershell to recursively strip all <author> XML comments out of *.cs files.
# See 'collective code ownership' for why we do not want to encourage individual
# developers claiming/marking sections of code
# http://jamesshore.com/Agile-Book/collective_code_ownership.html.
#
# (And if for some reason you really want to know who worked on a class, SVN
# blame will give you a MUCH better picture anyway).
dir -recurse -filter *.cs $src | foreach ($_) {
$file = $_.fullname
echo $file
@rdingwall
rdingwall / teamcity_reporter.html
Created June 17, 2012 19:15
Jasmine PhantomJS event based exit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Console Reporter Spec</title>
<link rel="stylesheet" href="../ext/jasmine.css" type="text/css" />
<script type="text/javascript" src="../ext/jasmine.js"></script>
<script type="text/javascript" src="../ext/jasmine-html.js"></script>
@rdingwall
rdingwall / mocha-tc.html
Created April 29, 2012 20:33
Mocha.js TeamCity reporter async bug
<!DOCTYPE html>
<html>
<head>
<!-- Mocha 1.0.2 at time of writing -->
<script type="text/javascript" src="https://raw.github.com/visionmedia/mocha/master/mocha.js"></script>
<link rel="stylesheet" type="text/css" href="https://raw.github.com/visionmedia/mocha/master/mocha.css" />
</head>
<script lang="text/javascript">
mocha.setup({
ui: "bdd",