Skip to content

Instantly share code, notes, and snippets.

View keyle's full-sized avatar
👾

keyle

👾
View GitHub Profile
<!DOCTYPE html>
<script type="text/javascript" src="taml.js"></script>
<taml xmlns:ren="org.noben.widgets.renderers">
<application title='yello!'>
<background color="#344556">
<hgroup left="5" right="5" top="5" bottom="5">
@keyle
keyle / taml1.taml
Created December 7, 2011 06:06
taml 1
taml {
div #left {
ul #list @items {
li {
a .item {
@item.text
}
}
}
}
@keyle
keyle / taml2.taml
Created December 7, 2011 06:07
taml 2
#application
#leftcol
#list
@listtemplate * {datalist}
#rightcol
#page
@listtemplate
@keyle
keyle / taml3.taml
Created December 7, 2011 06:32
taml 3
css "styles/app.css"
#application
#leftcol
#list
@listtemplate * {m.todolist}
#rightcol
#page
@keyle
keyle / taml4.taml
Created December 16, 2011 07:11
taml 4
ns machines="domain.machines"
ns orgs="domain.orgs"
html {
body {
h2 content="Hello world"
p {
"This is some paragraph text"
}
@keyle
keyle / Parser.cs
Created December 20, 2011 07:08
Parser taken from Halite.Parse as reference
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Halite.Parse
{
/// <summary>
/// Contains parsers and functions related to parsing. Parsers are functions that process a string starting at a certain index and
/// either give a meaningful interpretation an update the index, or return false (leaving the index unaltered). Some parser have a
@keyle
keyle / bullet1.js
Created December 21, 2011 07:13
bullet 1
// declaring a function
// has a conditional in the return value
(flip val) = !val if (val == false) || null
// declaring a variable or function with no arguments
(b) = false
b = flip(b)
// b is now true
@keyle
keyle / Glow.go
Last active December 25, 2015 06:48
humble beginnings.
package main
import (
"fmt"
"strings"
)
const (
END = "<END>"
ASSIGN = "<ASSIGN>"
@keyle
keyle / sample.spritefont
Created October 26, 2013 01:55
A simple of a .spritefont file - which is really an xml file - used to compile fonts in XNA and MonoGame.
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<FontName>Segoe UI Mono</FontName>
<Size>14</Size>
<Spacing>0</Spacing>
(function($) {
// My micro jQuery templating engine
// Usage:
//
// <section data-html="content"></section>
//
// Will load <content.html> into <section>
$(document).ready(function() {