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
% src/view/greeting/live.html | |
<html><head> | |
<title>Fresh hot greetings!</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> | |
<script> | |
function listen_for_events(timestamp) { | |
$.ajax("/greeting/pull/"+timestamp, { success: | |
function(data, code, xhr) { | |
for (var i=0; i<data.greetings.length; i++) { |
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
%%%------------------------------------------------------------------- | |
%%% @author Jose Luis Gordo Romero <[email protected]> | |
%%% @doc Chicago Boss rebar functions, called from boss_plugin | |
%%% Managing compilation/configuration/scripts stuff, the boss way | |
%%% @end | |
%%%------------------------------------------------------------------- | |
-module(boss_rebar). | |
-export([run/4, | |
help/0, |
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
process(Data) -> | |
gen_server:cast(?SERVER, {process, Data}); | |
... | |
handle_cast({process, Data}, {}) -> | |
do_some_funky_stuff(Data), | |
reader:pop(self); | |
{ok, {}} |