Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| - certain endpoints are always blocked | |
| if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
| ngx.exit(403) | |
| end | |
| -- import requirements | |
| local cjson = require "cjson" | |
| -- setup some app-level vars | |
| local app_id = "APP_ID" |
To use this module, do require('readline').
Takes two streams and creates a readline interface. The completer function is used for autocompletion. When given a substring, it returns [substr, completedStr]. TODO: write some code to make sure I'm right.
createInterface is commonly used with process.stdin and
process.stdout in order to accept user input:
| var connect = require('connect') | |
| , proxy = require('http-proxy') | |
| function redirect(loc) { | |
| return connect.createServer(function(req, res){ | |
| res.writeHead(301, { "Location": loc }); | |
| res.end(); | |
| }); | |
| } |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| ---------- Forwarded message ---------- | |
| From: Mark S. Miller <erights@google.com> | |
| Date: Tue, Nov 16, 2010 at 3:44 PM | |
| Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
| last week | |
| To: javascript-standard@google.com | |
| On November 10th and 11th, a number of Google teams representing a variety | |
| of viewpoints on client-side languages met to agree on a common vision for | |
| the future of Javascript. |
| # -*- coding: utf-8 -*- | |
| """ | |
| amazon_sender.py | |
| ~~~~~~~~ | |
| Python helper class that can send emails using Amazon SES and boto. | |
| The biggest feature of this class is that encodings are handled properly. | |
| It can send both text and html emails. | |
| This implementation is using Python's standard library (which opens up for a lot more options). |
| import re | |
| # http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone | |
| from metaphone import dm as double_metaphone | |
| # get the Redis connection | |
| from jellybean.core import redis | |
| import models | |
| # Words which should not be indexed |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |