Skip to content

Instantly share code, notes, and snippets.

View kastner's full-sized avatar
🕳️
actively choosing...

Erik Kastner kastner

🕳️
actively choosing...
View GitHub Profile
URL_MAPPINGS = {
"/" => "index.html",
"subscribe" => "subscribe.html",
"edition/baseball" => "edition/baseball.html",
"edition/basketball" => "edition/basketball.html",
"edition/football" => "edition/football.html",
"edition/hockey" => "edition/hockey.html"
}
desc "Make a static version of the site"

API Survey

  • With services like Mashery, is it still important to have multiple onramps and offramps (data interchange formats, etc)?
  • What are you most unhappy with your current API?
  • How do you track the usage of your API?
  • How much of the Developer facing documentation is generated using the api itself?
  • Do you use your API (or ANY API) for some / all of your site (eating your own dogfood)?
  • How do you go about testing your API?
Host project1.github.com
HostName github.com
User git # Probably not needed but just a note if you want to skip it
IdentityFile ~/.ssh/your_key_file
IdentitiesOnly yes # This is only if you want to avoid trying other identities which can speed things up a bit.
<?php
require( './wp-load.php' );
$episode = intval($_REQUEST["episode"]);
$post_id = $wpdb->get_var($wpdb->prepare("select post_id from wp_postmeta
where meta_key = 'episode' and meta_value=%d", $episode));
if ( $permalink =& get_permalink( $post_id ) ) {
Header("Location: $permalink");
}
$ORIGIN .
$TTL 1500
garyvaynerchuk.com IN SOA ns1.winelibrary.com. ns2.winelibrary.com. (
7 ; Serial
3600 ; Refresh
15m ; Retry
3w12h ; Expire
8400 ; minimum
)
NS ns1.winelibrary.com
so it's a comic book on the web. Each story starts with a panel on the "left", from there the story goes to the right, panel by panel, and to get from one to the next you can use your keyboard so each panel is centered without having to worry about the scroll bar.
When it starts, there's just one panel, and anyone can come and make the "next panel" for the story
or ten panels, whatever they want to push the story forward how they feel it should go
but, let's say I disagree with their panel, I can branch the story off and make my own panel there and there's a new story line
so ultimatly, it's a choose your own adventure reading experience
and the story lines that get the most views will be visually different, like a well-worn carpet
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="file:///Users/acaldelas/Desktop/Wine Library Concept/Code/wine-lib-script.js"></script>
<link rel="stylesheet"type="text/css"href="wine-lib-styles.css"/>
<title>Wine Library</title>
</head>
$sql = "SELECT c.name, c.cust_num, SUM(qty) bottles,
GROUP_CONCAT(h.order_num) orders
FROM orders o INNER JOIN hist h ON h.order_num = o.order_num
INNER JOIN users c ON c.cust_num = o.cust_num
WHERE o.order_num IN ! GROUP BY o.cust_num";

High Scores Wordpress Plugin

This is a plugin for the soon-to-be-released iPhone game "Binary Game".

Usage

Install as a normal wordpress plugin and activate. This plugin provides both a classic plugin and a widget for your sidebar.

Interfaces are Dumb (and that's a Very Good Thing)
Webhooks and Protocols (like Rack) don't care what's on the other side of the
abyss, if they follow the interface, everyone gets along. We'll look at a
whole class of problems that can be solved creatively using "protocols". We
will also look at some popular (and successful) real-world interface
implementations.
Webhooks are the unix pipes of the web. Rack is greasing the rails as we speak.
How can you leverage the synergy of these ocean-boiling enterprise-ready