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 <stddef.h> | |
typedef struct List { | |
struct List *next; | |
struct List *prev; | |
} List; | |
typedef struct devices { | |
int first; |
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
package main | |
import ( | |
"bytes" | |
stdSQL "database/sql" | |
"encoding/gob" | |
"fmt" | |
"strings" | |
"time" |
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
version: '3' | |
services: | |
server: | |
image: golang:1.12 | |
restart: unless-stopped | |
depends_on: | |
- mysql | |
- postgres | |
volumes: | |
- .:/app |
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
package sshproxy | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
"io" | |
"io/ioutil" | |
"log" |
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
package maxopenfile | |
import ( | |
"log" | |
"syscall" | |
) | |
func MaxOpenFiles() { | |
var rLimit syscall.Rlimit |
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
package visitor | |
import ( | |
"context" | |
"errors" | |
"github.com/silverswords/pulse/pkg/message/retry" | |
"github.com/silverswords/pulse/pkg/message/timingwheel" | |
"log" | |
"time" | |
) |
From https://codesandbox.io/s/poker-m6olm?file=/src/index.js:0-2400
Use for texas poker
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
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility that Flutter provides. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; |
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
func equal(x, y map[string]int) bool { | |
if len(x) != len(y) { | |
return false | |
} | |
for k, xv := range x { | |
if yv, ok := y[k]; !ok || yv != xv { | |
return false | |
} | |
} | |
return true |