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":875825248,"keymap":[[{"col":0,"row":0,"val":41},{"col":1,"row":0,"val":58},{"col":2,"row":0,"val":59},{"col":3,"row":0,"val":60},{"col":4,"row":0,"val":61},{"col":5,"row":0,"val":62},{"col":6,"row":0,"val":63},{"col":7,"row":0,"val":64},{"col":8,"row":0,"val":65},{"col":9,"row":0,"val":66},{"col":10,"row":0,"val":67},{"col":11,"row":0,"val":68},{"col":12,"row":0,"val":69},{"col":13,"row":0,"val":168},{"col":14,"row":0,"val":32264},{"col":15,"row":0,"val":32266},{"col":16,"row":0,"val":30753},{"col":17,"row":0,"val":104},{"col":18,"row":0,"val":105},{"col":19,"row":0,"val":106},{"col":0,"row":1,"val":53},{"col":1,"row":1,"val":30},{"col":2,"row":1,"val":31},{"col":3,"row":1,"val":32},{"col":4,"row":1,"val":33},{"col":5,"row":1,"val":34},{"col":6,"row":1,"val":35},{"col":7,"row":1,"val":36},{"col":8,"row":1,"val":37},{"col":9,"row":1,"val":38},{"col":10,"row":1,"val":39},{"col":11,"row":1,"val":45},{"col":12,"row":1,"val":46},{"col":13,"row":1,"val":42},{"col":14,"row":1,"val":21025},{"col":15,"row":1,"va |
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
BasedOnStyle: LLVM | |
SeparateDefinitionBlocks: Always | |
EmptyLineBeforeAccessModifier: LogicalBlock |
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
// Package main demonstrates how to emulate virtual methods in Go. | |
// This implementation doesn't show what the constructors should be; nor does it practice proper information-hiding. | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type Shape interface { |
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
package signalprop | |
import ( | |
"context" | |
) | |
func PropagateCancel(ctx context.Context, done chan struct{}) (context.Context, context.CancelFunc) { | |
ctx, cancel := context.WithCancel(ctx) | |
go func() { | |
select { |
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 NonEmpty exposing (..) | |
type alias NonEmpty a = | |
{ head : a, tail : List a } |
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
#include <stdio.h> | |
#include <zconf.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
typedef struct IntNode { | |
int leaf; | |
int value; | |
int numChildren; | |
struct IntNode **children; |
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
#include <stdlib.h> | |
#include <zconf.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <memory.h> | |
#include <errno.h> | |
#include <assert.h> | |
#include "test_runner.h" | |
int runTests(Test *tests, int numTests) { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
typedef int Foo; | |
// repetitive approach | |
int foosToJsonArray(FILE *file, Foo *foos, int n) { | |
if (fputc('[', file) == EOF) { | |
return -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
#include <string.h> | |
#include <stdio.h> | |
#include <setjmp.h> | |
#include <unistd.h> | |
typedef struct { | |
char *data; | |
size_t offset; | |
size_t capacity; | |
} Buffer; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder