Skip to content

Instantly share code, notes, and snippets.

View clintecker's full-sized avatar
🎯
Focusing

Clint Ecker clintecker

🎯
Focusing
View GitHub Profile
<?
// Boilerplate goes here
$_resource = new Placeholder();
$_resource->entries_etc = new ResourceList(array('/apple/news/2011/05/apple-has-released-security-update.ars', '/science/news/2011/05/-science-is-also-backing.ars', '/software/news/2011/05/skype-has-released-an-updated.ars', '/tech-policy/news/2011/05/facebook-and-google-are-facing.ars', '/web/news/2011/05/google-released-a-new-flight.ars', '/apple/news/2011/05/ea-has-put-most-of.ars', '/science/news/2011/05/-ars-own-jonathan-gitlin.ars', '/microsoft/news/2011/05/microsoft-has-shipped-internet-explorer.ars', '/science/news/2011/05/-nasa-has-given-up.ars', '/tech-policy/news/2011/05/the-phantom-data-lawsuit-against.ars', '/tech-policy/news/2011/05/comcast-wont-adopt-usage-based-billing.ars', '/gadgets/news/2011/05/verizon-wireless-has-announced-that.ars', '/gadgets/news/2011/05/amazon-has-added-an-ad-supported.ars', '/apple/news/2011/05/macworld-has-a-neat-how-to.ars', '/apple/news/2011/05/samsung-has-been-ordered-to.ars', '/apple/news
<?
// Some boilerplate goes here, loading in all our classes and whatnot...
// If this looks hella janky to you, then you'd be justified in thinking so. But it works quite well.
// This file is auto-generated by MovableType, and as such doesn't look amazingly efficient, but that's
// why things sometimes get defined and then redefined immediately.
$_resource = new Entry();
$_resource->related_urls = 'http://www.archive.org/download/gov.uscourts.cand.239768/gov.uscourts.cand.239768.56.0.pdf Motion to Compel Apple to Produce Reciprocal Expedited Discovery';
$_resource->next = false;
<?
$GLOBALS['published_dir'] = getenv('ARS_PUBLISHED_DIR');
if(!$GLOBALS['published_dir']){
$GLOBALS['published_dir'] = '/var/www/published/';
}
$GLOBALS['app_engine_dir'] = getenv('ARS_APP_ENGINE_DIR');
if(!$GLOBALS['app_engine_dir']){
$GLOBALS['app_engine_dir'] = '/var/www/published/app/';
<?
$GLOBALS['published_dir'] = getenv('ARS_PUBLISHED_DIR');
if(!$GLOBALS['published_dir']){
$GLOBALS['published_dir'] = '/var/www/published/';
}
$GLOBALS['app_engine_dir'] = getenv('ARS_APP_ENGINE_DIR');
if(!$GLOBALS['app_engine_dir']){
$GLOBALS['app_engine_dir'] = '/var/www/published/app/';
}
require_once($GLOBALS['published_dir'] . 'includes_c/classes.inc.php');
cpanm (App::cpanminus) 1.1008 on perl 5.010000 built for darwin-thread-multi-2level
Work directory is /Users/clintecker/.cpanm/work/1304377199.72165
You have make /usr/bin/make
You have LWP 5.837
You have /usr/bin/tar: bsdtar 2.6.2 - libarchive 2.6.2
You have /usr/bin/unzip
Searching Data::Dumper on cpanmetadb ...
--> Working on Data::Dumper
Fetching http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Data-Dumper-2.128.tar.gz
-> OK
$.fn.extend
myplugin: (options) ->
self = $.fn.myplugin
opts = $.extend self.default_options, options
$(this).each (i, el) ->
self.init el, opts
self.log el if opts.log
$.extend $.fn.myplugin,
default_options:
@clintecker
clintecker / gist:768353
Created January 6, 2011 19:01
da-storefront-product.jsz
/*
** Copyright (C) 2011 Apple Inc.
** All rights reserved.
*/
function ItsDaScreenshotsController() {}
ItsDaScreenshotsController.prototype.domReady = function domReady() {
this.bindToElements("#screenshots")
};
iTSKit.registerController(ItsDaScreenshotsController);
@clintecker
clintecker / homepage.html
Created November 8, 2010 17:18
yet another proof
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@clintecker
clintecker / new-scroller-demo.html
Created November 8, 2010 16:57
A proof of concept
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
x = navigator.userAgent
y = new RegExp('/safari/')
z = new RegExp('/firefox/')
switch x
when x.match(y) then safari()
when x.match(z) then firefox()
else usuck()