Skip to content

Instantly share code, notes, and snippets.

View maxterry's full-sized avatar

Max Terry maxterry

View GitHub Profile
@maxterry
maxterry / Reconciliation.txt
Created December 1, 2010 04:24
Reconciling the haves and have-nots by aligning use- and exchange-value
Incentives drive behavior, and mutual incentives reconcile problems.
When bartering within a community of participants that all know one another, actions that are detrimental to some members are acknowledged as such by others too. In such a case, one would benefit from not only optimizing goods and services for specific individuals, but also by avoiding doing harm to others, since your target would be aware of it, to you're detriment. When value can be extracted out of the world (historically, out of the *ground*, now, ridiculously, from mere authority) as a general purpose tool of exchange, the focus shifts from thinking in terms of giving and getting to/from others, to miopically capturing that item of exchange. As McLuhan said, we become what we behold: inadimate, dehumanized objects; people no more. And as Marx saw, we compromise our social nature and deevolve to commodity fetish.
When one thinks of use-value, they yield food and tools which are beneficial to oneself and others alike. In turn, seeking i
@maxterry
maxterry / each.js
Created June 29, 2009 20:14
Iterate over each element and apply a callback function.
function(xs, fn) {
for (var it=[], i=0, l=xs.length; i<l; i++) {
it.push(fn.apply(xs[i], xs[i], i))
}
return(
it.length?
it.length == 1 ?
it[0] :
it :
[]
/* appjet:version 0.1 */
/**
* Scrape the denoted URL and subpath.
*
* @params {string} url Location.
* @params {string} path Request path.
* @return {string} The page source.
*/
<!--div id="credit">
<span id="doauthor">
<a href="/users/{author}">
+
</a>
</span>
<!--span id="dovote">
+=
</span>
<input id="entervote" type="text" maxlength=2 onkeypress="return verify.num(event, 24)" /-->
//var t = []
//for (var topic in storage.topics) {
//t.push("name", topic.date, topic.author)
//}
var t = [
[ "energy", 20081018, "max" ],
[ "computation", 20081014, "max" ],
server = server.slice(0,9)+"main"+server.slice(9)
self.same = function(other) {
// Is self other?
if (no(other)) return self
return self === other
}
self.istypeof = function(other) {
// Is self the same type as other?
}
self.isany = function(types) {
// take nums, chars, lists and maybe args
// can't see any reason to take hashes
}
self.eq = function(other) {
// Is self equal to other?
if (self.length !== other.length) return 0
var equal = 1
for (var i=0; i<self.length; i++) {
if (self[i] !== other[i])
equal = 0
}
return equal
}
// do as self.isany()
self.isa = function(/* args */) {
if (arguments.length > 0) {
// Prepare arguments and constructors
var args = Array.prototype.slice.call(arguments), // args provide an .isany() feature; could do in sep method
makers = [] //: list