Skip to content

Instantly share code, notes, and snippets.

View bentranter's full-sized avatar

Ben Tranter bentranter

View GitHub Profile
@bentranter
bentranter / README.md
Last active August 29, 2015 14:21
Thinky Schema Example

Possible error in the Thinky docs at the post example. It says that createdAt should be type.string().default(r.now()), but I think it's supposed to say type.date().default(r.now()).

See the code below for an example, it should throw an error because of line 19.

(function() {
'use strict';
function BenTranter() {
this.contactInfo = {
positon: 'Front-End Dev',
email : '[email protected]',
phoneNo: 8076213561
};
this.education = {
@bentranter
bentranter / index.html
Created March 11, 2015 23:09
Render templates from a collection using Exoskeleton and Microtemplate
<script id='itemTemplate' type='text/template'>
<li><%= someValue %></li>
</script>
<ul id='item'></ul>
//
// Style the Kirby - don't change anything but the variables
//
// For an example, see http://codepen.io/bentranter/pen/QwWNrx
//
// Variables - hopefully verbose enough!
//
$kirby : 300px;
<!-- Make the Kirby -->
<!-- For an exmaple, see http://codepen.io/bentranter/pen/QwWNrx -->
<div class="kirby">
<div class="left-arm"></div>
<div class="right-arm"></div>
<div class="left-eye">
<div class="left-eye-white"></div>
<div class="left-eye-shimmer"></div>
//
// These are used to generate equilateral or isoceles triangles.
//
// @param {int-px} distance from top of div
// @param {int-px} height of triangle
// @param {int-px} width of triangle
// @param {colour-hex} color of triangle
//
//
;
; RULES
;
; Basic person template
;
(deftemplate person
(slot name)
(slot age)
(slot gender (allowed-symbols male female other))