This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
(function($routes, $uri, $method) { | |
(function($res) { | |
array_key_exists('__handler', $res[1]) | |
&& $res[1]['__handler']($res[0], null); | |
})( | |
array_reduce( | |
array_merge( | |
['/'], | |
explode( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<data> | |
<brand>Jennifer Doe</brand> | |
<title>About Me</title> | |
<routes> | |
<route href="/about">About Me</route> | |
<route href="/research">Research</route> | |
<route href="/publications">Publications</route> | |
<route href="/teaching">Teaching</route> | |
<route href="/gallery">Gallery</route> | |
<route href="/contact">Contact & Meet Me</route> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
count(`a.Karma`) AS `karma`, | |
`a.Title` AS `title`, | |
`a.Content`, | |
`a.Published`, | |
`u.id`, | |
`u.Name` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>Dom expression binding</title> | |
<body> | |
<script> | |
/** | |
* placeholder element | |
*/ | |
function $() { | |
const DOMNode = document.createTextNode('{{}}'); | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// used to retrieve template content | |
const templates = new Map; | |
// used to retrieve node updates | |
const updates = new WeakMap; | |
// hyperHTML, the nitty gritty | |
function hyperHTML(chunks, ...interpolations) { | |
// if the static chunks are unknown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define BSIZE 8 | |
#define ERRSCAN 1 | |
#define ERRMEM 2 | |
typedef struct vec { | |
char x; | |
char y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
let stack = []; | |
let consts = { | |
swapd: '[[swap] dip]', | |
popd: '[[pop] dip]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"boardSize": [8,8], | |
"player1": -1, | |
"player2": 1, | |
"initialBoard": [ | |
[0,0,0,0,0,0,0,0], | |
[1,1,1,1,1,1,1,1], | |
[1,1,1,1,1,1,1,1], | |
[0,0,0,0,0,0,0,0], | |
[0,0,0,0,0,0,0,0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Number je nakej primitivni datovy typ treba | |
[ > ] (Number Number) : vetsi-mensi | |
[ - ] (vetsi-mensi) : odcitani-co-skonci-kladne | |
; ta typova anotace se da udelat i anonymni | |
[ - ] ( > ) : odcitani-co-skonci-kladne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>pico-elm2</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
background-color: #E1E7EF; | |
} | |
.app { | |
width: 200px; | |
overflow: auto; |