- http://leigh.cudd.li/article/Bitlbee_and_Weechat_Mini-Tutorial
- Then
register
the account with a given password: http://wiki.bitlbee.org/Commands#register_.3Cpassword.3E - Use
identify
to test the password - http://wiki.bitlbee.org/HowtoFacebook
- http://wiki.bitlbee.org/HowtoGtalk
- Hipchat: https://gist.github.com/xbeta/8313475
- Setting &facebook,>alk,&hipchat specific channels: http://blog.wyrihaximus.net/2012/04/starting-with-bitlbee/
- account add jabber [email protected] 'PASSWORD'
- account hipchat set nick_source full_name
- account hipchat set resource bot
- account hipchat on
This file contains hidden or 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
public class RegexBuilder { | |
public boolean isMatch(String s, String p) { | |
if(p.length() == 0) | |
return s.length() == 0; | |
//p's length 1 is special case | |
if(p.length() == 1 || p.charAt(1) != '*'){ | |
if(s.length() < 1 || (p.charAt(0) != '.' && s.charAt(0) != p.charAt(0))) | |
return false; |
This file contains hidden or 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/ruby | |
# | |
# Find all words from a dictionary that are 1 edited distance away. | |
# | |
# dictionary = ['bat', 'batt', 'cat', 'beetle'] | |
# similar(q) => all words in dictionary that are edit distance <= 1 from q | |
# edits: adding a letter, changing, or deleting | |
# | |
# similar('bat') => ['bat', 'batt', 'cat'] | |
# similar('beatle') => ['beetle'] |
Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.
Terminology:
- Producers send messages to brokers
- Consumers read messages from brokers
- Messages are sent to a topic
This file contains hidden or 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
# To Setup and build Kafka: | |
$ git clone [email protected]:apache/kafka.git | |
$ cd kafka | |
$ git checkout -b 0.8 remotes/origin/0.8 | |
$ ./gradlew jarAll | |
# Start Zookeeper | |
$ bin/zookeeper-server-start.sh config/zookeeper.properties |
This file contains hidden or 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
$ brew install redis | |
$ redis-server |
This file contains hidden or 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
defmodule SecureRandom do | |
@moduledoc """ | |
Ruby-like SecureRandom module. | |
## Examples | |
iex> SecureRandom.base64 | |
"xhTcitKZI8YiLGzUNLD+HQ==" | |
iex> SecureRandom.urlsafe_base64(4) |
- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
OlderNewer