Skip to content

Instantly share code, notes, and snippets.

View ianAndrewClark's full-sized avatar

Ian Clark ianAndrewClark

View GitHub Profile
@ianAndrewClark
ianAndrewClark / trello_to_markdown.py
Created June 20, 2018 14:23 — forked from rungta/trello_to_markdown.py
Render a Trello board’s contents from JSON into a more human readable format (Markdown).
#-*- coding: utf-8 -*-
"""
Render a Trello board's contents from JSON into a more human readable format (Markdown)
Sample output:
Board Name
==========
List Name
@ianAndrewClark
ianAndrewClark / index.html
Last active December 16, 2015 02:28
A import•io js client library example by Ian Clark.
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Query Example</title>
<link rel="stylesheet" href="style.css">
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/2/importio.js"></script>
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/0.1/hmac-sha1.js"></script>
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/0.1/enc-base64-min.js"></script>
@ianAndrewClark
ianAndrewClark / index.html
Created April 11, 2013 10:21
A CodePen by Ian Clark.
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/2/importio.js"></script>
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/0.1/hmac-sha1.js"></script>
<script src="//d7xe6yl2ckrgs.cloudfront.net/js/0.1/enc-base64-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
DELIMITER |
CREATE FUNCTION uuid_from_bin(b BINARY(16))
RETURNS CHAR(36) DETERMINISTIC
BEGIN
DECLARE hex CHAR(32);
SET hex = HEX(b);
RETURN LOWER(CONCAT(LEFT(hex, 8), '-', MID(hex, 9,4), '-', MID(hex, 13,4), '-', MID(hex, 17,4), '-', RIGHT(hex, 12)));
END
|
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/java");</script>
@ianAndrewClark
ianAndrewClark / boolean-flag-problem.sh
Created December 14, 2012 11:52
problem with boolean fields
echo "\nSetup test index"
curl -XDELETE "http://localhost:9200/booltest"
curl -XPUT 'http://localhost:9200/booltest/' -d '
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
@ianAndrewClark
ianAndrewClark / dabblet.css
Created December 14, 2012 10:03
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@ianAndrewClark
ianAndrewClark / dabblet.css
Created September 19, 2012 15:51
A logo example
/**
* A logo example
*/
/* a web font */
@import url(http://fonts.googleapis.com/css?family=Lemon);
#logo : {
font-family: 'Lemon', cursive;
font-size: 2em;
@ianAndrewClark
ianAndrewClark / gist:2648093
Created May 9, 2012 19:10 — forked from louischatriot/gist:2601571
d3 introduction: animated graph in 11 LOC
<!DOCTYPE html>
<html manifest="cache.manifest">
<head> <title>d3 example</title> </head>
<body>
<div id='d3TutoGraphContainer'></div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
{
_index: "fap-property-16-01-2012_1037",
_type: "property",
_id: "3266695",
_version: 1326714530333,
exists: true,
_source: {
AreaIds: [
],