This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/usr/bin/env python | |
# requires py_interface | |
# http://www.lysator.liu.se/~tab/erlang/py_interface/ | |
import sys, os, time | |
from py_interface import erl_node, erl_eventhandler | |
from py_interface.erl_opts import ErlNodeOpts | |
from py_interface.erl_term import ErlAtom, ErlBinary |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
%% -*- mode: nitrogen -*- | |
-module (index). | |
-compile(export_all). | |
-include_lib("nitrogen_core/include/wf.hrl"). | |
-include("video.hrl"). | |
main() -> #template { file="./site/templates/bare.html" }. | |
title() -> "FFmpeg frontend". |
Gem List Deployed in ruby applications monitored by New Relic, September 2011 | |
Note: Efforts have been made to remove any "private" gems from this list. All gems in this list are publicly available on rubygems.org are are considered public. Please send an email to [email protected] if you feel that a gem on this list should not be made public. | |
Count Gem Name | |
---------------- | |
7570 rack | |
7444 rake | |
7425 rails | |
7424 activesupport |
-module(calltime_trace). | |
-behaviour(gen_server). | |
%% The purpose of this module is to continiously log calltime statistics | |
%% of a function calculated over short intervals. The tracing support of the | |
%% erlang runtime system is to trace entry and return from the function in | |
%% all processes. The tracing is aborted if the time it takes to process all | |
%% trace messages generated during an interval lags behind with more than a | |
%% full interval. If the tracing lags behind with a smaller amount of time | |
%% the logger attempts to compensate for the lag. |
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |
import os | |
for i in range(19): | |
if i < 10: | |
os.system("wget http://s3.amazonaws.com/bearwithclaws.baconfile.com/hackermonthly-issue00%s.zip" % str(i+1)) | |
else: | |
os.system("wget http://s3.amazonaws.com/bearwithclaws.baconfile.com/hackermonthly-issue0%s.zip" % str(i+1)) |
linus@Newton:~$ redis-cli | |
redis 127.0.0.1:6379> publish /updates.foo "hello there!" | |
(integer) 1 | |
redis 127.0.0.1:6379> |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'mqtt' | |
require 'pp' | |
NOW_NEXT_RADIO_URL = 'http://www.bbc.co.uk/iplayer/ion/multinownext/service_type/radio/format/json' |
This is a simple example of the MQTT protocol with Node.js. The client code has also been tested with a combination of C++ servers and clients.