Skip to content

Instantly share code, notes, and snippets.

@Dykam
Dykam / x
Created May 9, 2009 09:18
Dykam's best Ubiqs.
CmdUtils.CreateCommand({
name: "execute",
icon: "http://example.com/example.png",
homepage: "http://Dykam.nl",
author: {name: "Dykam", email: "dev@dykam.nl"},
license: "GPL",
description: "Execute javascript.",
help: "Enter a javascript snippet.",
takes: {"code": /.*/},
preview: function(pblock, code) {
CmdeUtils.CreateCommand({
name: "execute",
icon: "http://example.com/example.png",
homepage: "http://Dykam.nl",
author: {name: "Dykam", email: "dev@dykam.nl"},
license: "GPL",
description: "Execute javascript.",
help: "Enter a javascript snippet.",
takes: {"code": /.*/},
preview: function(pblock, code) {
# .gitignore for .NET projects
# Thanks to Derick Bailey
# http://www.lostechies.com/blogs/derickbailey/archive/2009/05/18/a-net-c-developer-s-gitignore-file.aspx
# - Alexey Abramov
# Thanks to all others
# Standard VS.NET and ReSharper Foo
obj
bin
*.csproj.user
{
"from": "nus",
"tasks": [
{ "task": "systemmenu", "installIos": false, "version": 4.2, "region": "E" },
{ "task": "ios", "patchEsIdentify": false, "patchFakesign": false, "version": 70, "revision": 6687 },
{ "task": "channel", "name": "News Channel", "region": "J" },
{ "task": "title", "id": "000000010000001C", "revision": 1806, "patchEsIdentify": true, "patchFakesign": true, "patchNand": true, "from": "sd" }
]
}
typeToName = ["gb", "rb", "bb", "yb", "sgb", "srb", "sbb", "syb", "sb", "sub", "td", "tdm", "db", "1eab", "2eab", "sbv", "sbh", "sbc", "pgb", "prb", "pbb", "pyb"];
var bitsPerChar = 14; // 14 bits fit in the CJK character range, 0x4E00 -> 0x9FCF
var arrowBits = Math.ceil(Math.log( 20 )/Math.log(2));
var amountBits = Math.ceil(Math.log( 256 )/Math.log(2));
var gameWidth = 11;
var gameHeight = 14;
var types = typeToName.length;
nameToType = [];
var i = types;
@Dykam
Dykam / gist:749144
Created December 20, 2010 22:41
Html templates, how it is done currently and what I dislike about that
<h1>{title}</h1>
<p>{item}</p>
@Dykam
Dykam / gist:749167
Created December 20, 2010 22:55
Html templates, my way
<html>
<head>
<title>Template</title>
</head>
<body>
<div class="Content">
<h1>Post Title</h1>
<p class="Item"></p>
<p class="Author"></p>
</div>
<span id="NotLoggedIn">You are not logged in! Please log in.</span>
{
".Foo": [],
".Foo": "ContentWhichYouNeverWillSee"
}
<html>
<head>
<title>foo</title>
</head>
</html>