Skip to content

Instantly share code, notes, and snippets.

{"count":10,"totalRecords":"12","titles":[{"id":22552,"title":"Arredare","slug":"arredare-load-n-run-it","turn_types_text":null,"turn_type_id":null,"availability_id":"1","availability_text":"Available","no_players":"1","entry_type_id":"35","entry_type_text":"Domestic","entry_group":"utilities","is_x_rated":"0","is_crap":"0","comments":"Appeared on issue 25.#Design your home utility.","roles":[{"role":"(Unknown)","role_slug":"unknown","person":"Gianluca Lazzarin","person_slug":"gianluca-lazzarin","person_id":"3863","role_id":"20628"}],"features":[],"controls":[],"themes":[],"series":[],"publishers":[{"id":"7844","name":"Load 'n' Run [IT]","slug":"Load-n-Run-IT"}]},{"id":11602,"title":"Dan Dare Collection","slug":"dan-dare-collection-dro-soft","turn_types_text":null,"turn_type_id":null,"availability_id":"4","availability_text":"MIA","no_players":"1","entry_type_id":"78","entry_type_text":"Compilation","entry_group":"compilations","is_x_rated":"0","is_crap":"0","comments":null,"roles":[],"features":[],"controls"
@craigbutcher
craigbutcher / pull_json.sh
Last active June 19, 2017 09:58
Curl to pull down jsons
curl "https://api.github.com/users/craigbutcher/gists" | python -m json.tool | pbcopy
@craigbutcher
craigbutcher / convert-UNIX-timestamp.js
Created May 17, 2017 19:29 — forked from kmaida/convert-UNIX-timestamp.js
Convert a UNIX timestamp to user's local time via JavaScript
function convertTimestamp(timestamp) {
var d = new Date(timestamp * 1000), // Convert the passed timestamp to milliseconds
yyyy = d.getFullYear(),
mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0.
dd = ('0' + d.getDate()).slice(-2), // Add leading 0.
hh = d.getHours(),
h = hh,
min = ('0' + d.getMinutes()).slice(-2), // Add leading 0.
ampm = 'AM',
time;
@craigbutcher
craigbutcher / keybase.md
Last active January 31, 2017 20:47
Keybase

Keybase proof

I hereby claim:

  • I am craigbutcher on github.
  • I am legobot (https://keybase.io/legobot) on keybase.
  • I have a public key whose fingerprint is 7FDC B51B 8FEE 0F53 394C 873A B0F2 293B 05A8 E7E9

To claim this, I am signing this object:

@craigbutcher
craigbutcher / css-better-paragraph-introduction.css
Created February 3, 2016 09:37
CSS better paragraph introduction
article p:first-of-type {
// code
}
article h1 + p {
// code
}
@craigbutcher
craigbutcher / truncate.css
Created August 10, 2015 08:26
Truncate String with Ellipsis
/*
* Accessibility wise, it may bring up various issues.
*
* Long file names with similar names, for example:
*
* + Gauntlet I - In The Beginning - becomes - Gauntlet I
* + Gauntlet II - In The Middle - becomes - Gauntlet I...
* + Gauntlet III - In The End - becomes - Gauntlet I...
*
* The only way to overcome this is to either produce shorter titles
@craigbutcher
craigbutcher / global.js
Created August 7, 2015 14:28
Checking for spaces and replacing them with HTML URL encoding %20
// Get the href path
var path = linkClicked.attr('href');
// Does it contain spaces? If so, convert them to HTML URL Encoding Reference - %20
path = path.replace(/ +/g, '%20');
@craigbutcher
craigbutcher / ck-config.js
Last active August 29, 2015 14:26
CKEditor Configuration
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/* Updates for this file:
+ Moved all variables to top
+ MS Word configurations
+ Font Style
@craigbutcher
craigbutcher / contents.css
Last active August 29, 2015 14:26
CKEditor numerical fixes.
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/* Ordered list add ons by Craig Butcher (TSO) */
/*