Skip to content

Instantly share code, notes, and snippets.

View bonedaddy's full-sized avatar
🌍
pfSense > cisco

bonedaddy bonedaddy

🌍
pfSense > cisco
  • Canada
View GitHub Profile
==================
WARNING: DATA RACE
Write at 0x000003b8d092 by goroutine 611:
github.com/RTradeLtd/TemporalX/v3/server.(*testEnvironment).close()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/server_testenv_test.go:149 +0x1b0
github.com/RTradeLtd/TemporalX/v3/server.TestNodeAPI.func1()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/node_test.go:685 +0x5a6
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
@bonedaddy
bonedaddy / main.ino
Created March 9, 2020 23:26 — forked from dmiddlecamp/main.ino
Photon Audio Example
#define MICROPHONE_PIN A5
#define AUDIO_BUFFER_MAX 8192
int audioStartIdx = 0, audioEndIdx = 0;
uint16_t audioBuffer[AUDIO_BUFFER_MAX];
uint16_t txBuffer[AUDIO_BUFFER_MAX];
// version without timers
unsigned long lastRead = micros();
{"level":"error","ts":1583207618.1777937,"caller":"backend/backend.go:125","msg":"encountered non 200 status code from sendgrid","code":400,"stacktrace":"github.com/RTradeLtd/baple/backend.(*Backend).MainEventHandler\n\t/home/solidity/Code/RTradeLtd/baple/backend/backend.go:125\ngithub.com/RTradeLtd/baple/backend.(*Backend).WatchPaymentMade\n\t/home/solidity/Code/RTradeLtd/baple/backend/backend.go:75\nmain.loadCommands.func2\n\t/home/solidity/Code/RTradeLtd/baple/cmd/baple/main.go:106\ngithub.com/urfave/cli/v2.(*Command).Run\n\t/home/solidity/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:161\ngithub.com/urfave/cli/v2.(*App).RunContext\n\t/home/solidity/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:302\ngithub.com/urfave/cli/v2.(*App).Run\n\t/home/solidity/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:211\nmain.main\n\t/home/solidity/Code/RTradeLtd/baple/cmd/baple/main.go:33\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:203"}
&{CommunityID:+3 LoanID:+0 Amount:+5123287 Asset:[160 184 105 14
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreigqjpxobp24xv5oeyujylvc4ypm26ui7qlyzkbbknejfq43cqodvy ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
package main
import (
"bytes"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
@bonedaddy
bonedaddy / client.go
Created February 15, 2020 07:28 — forked from ZenGround0/client.go
Golang HTTP multipart streaming
package main
import (
"io"
"mime/multipart"
"net/http"
"net/url"
"os"
"fmt"
)
/*
Firmata is a generic protocol for communicating with microcontrollers
from software on a host computer. It is intended to work with
any host computer software package.
To download a host software package, please click on the following link
to open the list of Firmata client libraries in your default browser.
https://github.com/firmata/arduino#firmata-client-libraries
@bonedaddy
bonedaddy / cgo.md
Created February 5, 2020 23:19 — forked from zchee/cgo.md
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.

@bonedaddy
bonedaddy / future.c
Created February 4, 2020 04:45 — forked from Geal/future.c
small future and promise library in C with pthreads
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <stdbool.h>
#include <time.h>
#include <stdarg.h>
#include <string.h>
#include "future.h"