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
| -module(fmt_csv). | |
| %% API | |
| -export([row/1]). | |
| row(Row) when is_tuple(Row) -> | |
| row(tuple_to_list(Row)); | |
| row(Row) -> | |
| [string:join([case Field of | |
| null -> ""; |
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
| -module(shq_atomics). | |
| -export([init/1, | |
| in/2, | |
| in_r/2, | |
| out/1, | |
| out_r/1, | |
| size/1, | |
| test_in_out/1]). |
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
| -module(shq_ets_counters). | |
| -export([init/1, | |
| in/2, | |
| in_r/2, | |
| out/1, | |
| out_r/1, | |
| size/1, | |
| test_in_out/1]). |
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
| %% Extract basic information from PEM | |
| -module(pem_info). | |
| -export([details/1]). | |
| -include_lib("public_key/include/public_key.hrl"). | |
| details(Pem) -> | |
| [{'Certificate',Cert,_}|_] = public_key:pem_decode(Pem), |
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
| Diff with io:format debugging | |
| diff --git a/src/locus_http_download.erl b/src/locus_http_download.erl | |
| index 222d6c5..39ac326 100644 | |
| --- a/src/locus_http_download.erl | |
| +++ b/src/locus_http_download.erl | |
| @@ -259,6 +259,7 @@ send_request(State) | |
| Insecure = proplists:get_value(insecure, Opts, 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
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "1.0.0", | |
| "title": "Swagger Petstore", | |
| "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification", | |
| "termsOfService": "http://swagger.io/terms/", | |
| "contact": { | |
| "name": "Swagger API Team" | |
| }, |