On page 137 of The Little Schemer, this rather convoluted function appears:
(define multirember&co
(lambda (a lat col)
(cond
((null? lat)
(col (quote ()) (quote ())))
<?hh | |
async function stream_check(resource $stream, string $mode, int $usec): Awaitable<void> | |
{ | |
$r = $w = $e = null; | |
do { | |
if ($mode == "r") { | |
$r = Vector{$stream}; | |
} |
function Record (template) { | |
if (Record.prototype.isPrototypeOf(this)) { | |
var struct = this; | |
Object.keys(template).forEach(function (key) { | |
Object.defineProperty(struct, key, { | |
enumerable: true, | |
writable: true, | |
value: template[key] | |
}); |
# get rid of template groups | |
TRUNCATE TABLE exp_template_groups; | |
INSERT INTO exp_template_groups | |
(group_name, group_order, is_site_default) | |
VALUES | |
('home', '1', 'y'); | |
# get rid of templates | |
TRUNCATE TABLE exp_templates; | |
INSERT INTO exp_templates |
#!/bin/bash | |
# | |
# This script creates symlinks from a self contained directory to theirappropriate | |
# places in your site directory, allowing you to maintain addons as Git submodules. | |
addon_dir="submodule_addons" | |
# FieldFrame | |
ln -sf ../"$addon_dir"/bk.fieldframe.ee_addon/extensions/ext.fieldframe.php ../extensions/ext.fieldframe.php | |
ln -sf ../../"$addon_dir"/bk.fieldframe.ee_addon/language/english/lang.fieldframe.php ../language/english/lang.fieldframe.php |
<?php | |
/* | |
EE2 hidden configuration variables | |
Last updated: Jun 20 2010 | |
Obtain this list by putting print_r($this->EE->config->config); on a PHP-enabled template. | |
See: http://eeinsider.com/tips/view/config-overrides-for-ee-1-and-2/ | |
*/ |
<!DOCTYPE html> | |
<title>Datalist test</title> | |
<meta charset="utf-8"> | |
<form> | |
<label for="source">How did you hear about us?</label> | |
<datalist id="sources"> | |
<select name="source"> | |
<option>please choose...</option> | |
<option value="television">Television</option> | |
<option value="radio">Radio</option> |
<? | |
/* | |
Name: nameparse.php | |
Version: 0.2a | |
Date: 030507 | |
First: 030407 | |
License: GNU General Public License v2 | |
Bugs: If one of the words in the middle name is Ben (or St., for that matter), | |
or any other possible last-name prefix, the name MUST be entered in | |
last-name-first format. If the last-name parsing routines get ahold |
{!-- | |
# FIELDS | |
1. Matrix: images | |
* File: image | |
* PT Pill: alignment (left, right, or block) | |
* Text: description | |
* PT Pill: width | |
2. Textarea/WYSIWYG: body |