# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* INSTALL: | |
* ---- | |
* > yarn add express request | |
* | |
* RUN: | |
* ---- | |
* > node ./audio-proxy-server | |
*/ | |
const os = require('os'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
License: MIT - https://opensource.org/licenses/MIT | |
ChromeLogger is a protocol which allows sending logging messages to the Browser. | |
This module implements simple support for Django. It consists of two components: | |
* `LoggingMiddleware` which is responsible for sending all log messages | |
associated with the request to the browser. | |
* `ChromeLoggerHandler` a python logging handler which collects all messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# generates text based on sample text | |
# | |
# @author: starenka | |
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1] | |
# @version: 1.0.3 | |
# @since 6/1/11 | |
# @depends nltk, BeautifulSoup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
from argparse import ArgumentParser | |
from xml.dom import minidom | |
try: | |
from urllib.request import urlopen | |
from urllib.parse import urlencode | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Knife plugin to set node environment | |
# See http://wiki.opscode.com/display/chef/Environments | |
# | |
## Install | |
# Place in .chef/plugins/knife/set_environment.rb | |
# | |
## Usage | |
# Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env | |
# Looking for mynode.net | |
# Setting environment to my_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0x00, 0xAB, 0xCB, 0xCD, 0xDE, 0x02 }; | |
IPAddress ip(192,168,0,140); | |
IPAddress server(173,194,70,103); | |
EthernetClient client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redisconf Notes: | |
"We will begin this morning with a performance" | |
"Is this a key store..." Bohemian Rhapsody Key/Value Store ballad. Epic Win! | |
"Any way the data flows doesn't really matter to me... flushdb..." | |
"Lua killed a db by writing after calling a nondeterministic function..." | |
"Got to leave SQL behind and face the truth..." | |
"Redis, I don't want to join, sometimes I wish I'd never described a query..." | |
"The ZSET has some data set aside for me, for me, for MEEEEEEE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redis Pain - Matt @mranney from Voxer (did node-redis) | |
* Asked to talk about redis stress points.. "no stress, things work for a while and there is no stress and then... you enter a world of pain." | |
* Pain from how we use it at Voxer. Explanation of Voxer and its use cases. | |
* People assume Voxer is "how hard can it be?".. "That's how it used to be until we got a bunch of pictures..." | |
* Growth curve looks like Pinterests "might be the same because there was no label on the y-axis.. might be EXACTLY the same." | |
* Computers are hard... nothing works as it is supposed to... and eventually you fly into nerd rage and then you become a curmmudgeon... getting serious, this isn't real pain -- we aren't selling stree sheets -- this are great problems to have... | |
* They use redis as cache for Riak, also for rapidly changing data, "data we can afford to lose", throttling, NO SAVING. | |
* "We really like redis." | |
* "When we first started building voxer, I never understood why people use Redis at all... we have a db and . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lightning talk: BigCache: | |
* redis distributed fault-tolerant memory cache as a service (OSS) | |
* memcache binary protocol compatible | |
* TCP loadbalanced / consistent hashing algo, ZK for coordination services | |
* github.com/mercadolibre/bigcache | |
EvilSha: misadventures in the land of lua. Adam Baldwin: @adam_baldwin | |
* What can we do that is evil with Redis? | |
* Listed all functions you have access to in lua in redis; pretty locked-down |
NewerOlder