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
handle_call({lookup_popular_replies, TweetId, AuthorId}, _From, #state{client=Client} = State) -> | |
% reduce fun to get valid tweet keys in tweet response bucket phase 3 | |
Fun = make_local_fun("fun(O, _) -> | |
lists:foldl(fun | |
([LinkedTweet = <<Id:128>>, <<Val:128>>, <<\"reply\">>], Acc) -> | |
[{{<<\"tweet_responses_bucket\">>, LinkedTweet}, {Id, Val}} | Acc]; | |
({{<<\"tweet_responses_bucket\">>, _}, _} = PreviousPass, Acc) -> | |
[PreviousPass | Acc]; | |
(_, Acc) -> | |
Acc |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
--- | |
- hosts: app | |
remote_user: vagrant | |
sudo: yes | |
vars: | |
download_url: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz | |
download_folder: /opt | |
java_name: "{{download_folder}}/jdk1.8.0_05" | |
java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz" |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of