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
export namespace api { | |
export interface Request<T extends string> { | |
params: any; | |
result: any; | |
__name: { | |
[name in T]: T | |
} | |
} |
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
import { spawn } from 'child_process'; | |
import { Writable, Readable } from 'stream'; | |
const child = spawn( | |
'perl', | |
['-e', ` | |
use IO::Handle; | |
my $in = IO::Handle->new_from_fd($ENV{JIPE_RHS_STDIN_FD}, 'r'); | |
my $out = IO::Handle->new_from_fd($ENV{JIPE_RHS_STDOUT_FD}, 'w'); |
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
-- styles for CPAN module Text::ANSITable | |
SELECT | |
time, priority, message | |
, | |
json_object( | |
'priority', | |
json_object( | |
'fgcolor', | |
CASE |
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
Hi, | |
Using the sqlite-tools-linux-x86-3250100 Linux binaries I find that | |
Window functions in VIEWS behave differently from PostgreSQL 9.6 and | |
from what I expect. | |
DROP TABLE IF EXISTS example; | |
CREATE TABLE example(t INT, total INT); | |
INSERT INTO example VALUES(0,2); | |
INSERT INTO example VALUES(5,1); |
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
SQLite version 3.11.0 2016-02-15 17:29:24 | |
Enter ".help" for usage hints. | |
sqlite> EXPLAIN QUERY PLAN | |
...> WITH RECURSIVE path(pos, vertex) AS ( | |
...> SELECT 0, ? | |
...> UNION ALL | |
...> SELECT path.pos + 1, (SELECT Edge.dst | |
...> FROM Edge | |
...> WHERE Edge.src = path.vertex | |
...> ORDER BY RANDOM() |
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
0 !| < > & A B == | |
+---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ | |
| 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | |
+---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ | |
| 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | |
+---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ | |
+---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ | |
| 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 0 | | 0 | 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
uses StrngTol; | |
type | |
parameter=record | |
FileName:String; | |
ExtractPath:String; | |
ShowHelpScreen:Boolean; {/?} | |
KeepInstName:boolean; {/K} | |
KeepSampName:boolean; {/S} | |
QuitOutput:Boolean; {/Q} | |
end; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <Windows.h> | |
int | |
main(int argc, char *argv[]) { | |
char* buffer; | |
BOOL bStatus; | |
COORD coords; | |
HANDLE hConsole; |
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
{ | |
"start": "State0", | |
"alphabet": { | |
... | |
}, | |
"symbols": { | |
"aA": { |
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
Request for status information | |
* ?action=about&... | |
* CAPABILITIES | |
* DATE | |
* ... | |
Retrieve some basic information about the service. For instance, | |
which authentication method the service would like to use, or if | |
some optional protocol features are implemented. Can also be used | |
to support the DATE command by looking at the Date header. If |