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
| note(a). | |
| note(b). | |
| note(c). | |
| %note(d). | |
| %note(e). | |
| %note(f). | |
| %note(g). | |
| %note(csharp). | |
| %note(asharp). | |
| %note(dsharp). |
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
| test() -> | |
| Years = [1,2,3,4], | |
| Sex = [male,female], | |
| Age = [toddler, teen, grownup], | |
| Headers = [origin,citizenship,other], | |
| [H|T] = Headers, | |
| lists:foldl(fun(Y,YAcc) -> | |
| YG = lists:foldl(fun(S,SAcc) -> | |
| SG = lists:foldl(fun(A,AAcc) -> | |
| Ag = list_to_tuple(T), |
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
| test() -> | |
| Years = [1,2], | |
| Sex = [male,female], | |
| Age = [toddler, teen, grownup], | |
| Headers = [something,or_other,and_also], | |
| Excpected [ | |
| {1,male,toddler,something,{or_other,and_also}, | |
| {1,male,teen,something,{or_other,and_also}, | |
| {1,male,grownup,something,{or_other,and_also}, | |
| {2,female,toddler,something,{or_other,and_also}, |
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
| { | |
| _id: "GUID", | |
| _rev: "4-8029d009bb439f3c15dd27fd6663df57", | |
| name:"amqp_client", | |
| version:'3.0.1' | |
| src:{git,path,branch}, | |
| _attachments: { | |
| download: { | |
| content_type: "application/octet-stream", | |
| revpos: 4, |
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
| { | |
| _id: "GUID", | |
| _rev: "4-8029d009bb439f3c15dd27fd6663df57", | |
| name:"amqp_client", | |
| version:'3.0.1' | |
| deps:[ | |
| {druna, Name, _rev}, | |
| {git, repo, branch} | |
| ], | |
| _attachments: { |
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
| 2013-01-31 09:38:10.729 [info] <0.77.0>@riak_core_sysmon_handler:handle_event:92 monitor long_gc <0. | |
| 934.0> [{name,' 24311'},{initial_call,{mbo_book,init,1}},{almost_current_function,{mbo_book,'-get_or | |
| der/3-lc$^0/1-0-',2}},{message_queue_len,94606}] [{timeout,63},{old_heap_block_size,8024355},{heap_b | |
| lock_size,1346269},{mbuf_size,0},{stack_size,25},{old_heap_size,3476907},{heap_size,25464}] |
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
| import mechanize | |
| br = mechanize.Browser() | |
| br.addheaders = [('User-agent', 'Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11')] | |
| br.set_handle_robots(False) | |
| br.open("http://hagstofa.is/?PageID=618&src=/temp/Dialog/varval.asp?ma=UMH01101%26ti=Fri%F0l%FDst+sv%E6%F0i+1928%2D2011+%26path=../Database/land/landfr/%26lang=3%26units=Fj%F6ldi%20/ferk%EDl%F3metri") | |
| print "page opened" | |
| for link in br.links(): | |
| if(link.text == None): | |
| br.open(link.url) |
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
| deal(0,_,_). | |
| deal(NumCards,Deck,Out) :- | |
| get_card(C,Deck,Rest), | |
| NewNum is NumCards-1, | |
| append(Out,[C],Result), | |
| deal(NewNum,Rest,Result), | |
| Out = [C|Result],!. |
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
| Dispatch = [{'_', [ | |
| {[<<"index.htm">>,'...'], cowboy_static, | |
| [ {directory, {priv_dir, monterl_carlo_websocket,[]}}, | |
| {file,<<"index.htm">>}, | |
| {mimetypes, [{<<".html">>, [<<"text/html">>]}]}]}, | |
| {[<<"flot.jquery.js">>,'...'],cowboy_static, | |
| [ {directory, {priv_dir, monterl_carlo_websocket,[]}}, | |
| {file,<<"flot.jquery.js">>}, | |
| {mimetypes, [{<<".js">>, [<<"text/javascript">>]}]}]}, | |
| {'_', monterl_carlo_websocket_handler, []} |
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
| Dispatch = [{'_', [ | |
| {[<<"index.htm">>,'...'], cowboy_static, | |
| [ {directory, {priv_dir, monterl_carlo_websocket,[]}},{mimetypes,[<<"text/html">>,<<".html">>,<<".htm">>]}]}, | |
| {[<<"flot.jquery.js">>,'...'],cowboy_static, | |
| [ {directory, {priv_dir, monterl_carlo_websocket,[]}}, | |
| {file,<<"flot.jquery.js">>}]}, | |
| {'_', monterl_carlo_websocket_handler, []} | |
| ]}], |