npm install pino
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
| int* range(int start, int end) { | |
| int len; | |
| if (start <= end) { | |
| len = end - start + 1; | |
| } else { | |
| len = start - end + 1; | |
| } | |
| int* array = malloc(sizeof(int) * len); | |
| if (start == end){ | |
| array[0] = start; |
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 tinygowifi | |
| go 1.18 | |
| replace device/arm => /usr/local/lib/tinygo/src/device/arm | |
| replace internal/reflectlite => /usr/local/lib/tinygo/src/internal/reflectlite | |
| replace internal/task => /usr/local/lib/tinygo/src/internal/task |
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
| CREATE OR REPLACE FUNCTION restful.put(auri character varying, ajson_text text) | |
| RETURNS text | |
| LANGUAGE plperlu | |
| SECURITY DEFINER | |
| AS $function$ | |
| use REST::Client; | |
| use Encode qw(encode); | |
| my $client = REST::Client->new(); | |
| $client->getUseragent()->proxy( 'https', 'http://some-proxy/' ); # use for proxy authentication | |
| $client->addHeader('Content-Type', 'application/json'); # headers |
NewerOlder