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
var sleep = require('sleep'); | |
var Gpio = require('onoff').Gpio; | |
SO = new Gpio(6, 'out'), | |
SI = new Gpio(13, 'in', 'both'), | |
SD = new Gpio(19, 'in', 'rising'), | |
SC = new Gpio(26, 'out'); | |
function sendByte(byte) { | |
for (var b = 0; b < 8; b++) { |
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
#!/usr/bin/env python3 | |
## Highly advise running `setserial /dev/ttyUSB0 low_latency` before flashing | |
from spidriver import SPIDriver | |
import struct | |
import time | |
import sys | |
import getopt |
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
function derEncodeECDSASignatureToUinit8Array(signatureUint8Array) { | |
let out_sigder = new ArrayBuffer(72); | |
let out_sigder_DV = new DataView(out_sigder); | |
let out_sigder_BA = new Uint8Array(out_sigder); | |
// Need to caress into dumb der format .. | |
let i; | |
let lead_s = 0; // leading zeros | |
let lead_r = 0; |
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
Index: src/main/java/org/example/questionn/csv/CsvRenderer.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- src/main/java/org/example/questionn/csv/CsvRenderer.java (revision 13e0a8fb07a40e89c39ea8f8176f4c2e6b590774) | |
+++ src/main/java/org/example/questionn/csv/CsvRenderer.java (date 1592660439551) | |
@@ -3,11 +3,13 @@ | |
import ratpack.handling.Context; | |
import ratpack.render.RendererSupport; |
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 com.lmax.disruptor; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.BenchmarkMode; | |
import org.openjdk.jmh.annotations.Fork; | |
import org.openjdk.jmh.annotations.Group; | |
import org.openjdk.jmh.annotations.Measurement; | |
import org.openjdk.jmh.annotations.Mode; | |
import org.openjdk.jmh.annotations.OutputTimeUnit; | |
import org.openjdk.jmh.annotations.Scope; |
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
/opt/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Release -G Ninja -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CROSSCOMPILING=ON /tmp/project | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /tmp/project/cmake-build-release-docker-wine | |
Cannot get compiler information: | |
Compiler exited with error code 2: /opt/msvc/bin/x86/cl @/tmp/misc/response-file15603522667233498293 /tmp/misc/compiler-file16351311352593759053 | @response-file15603522667233498293=/TP /DPROJECT_EXPORTS /DProject_EXPORTS /DNDEBUG /DWIN32 /D_MBCS /D_USRDLL /D_WINDOWS /EHsc /EHsc -MD /GL /Oi /GF /Gy /W3 /Zi /EHsc /FI/tmp/project/cmake-build-release-docker-wine/Project/CMakeFiles/Project.dir/cmake_pch.hxx /Be /Bd /EP | |
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 | |
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 | |
0012:err:ole:get_local_server_stream Failed: 80004002 |
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
/opt/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Release -G Ninja -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CROSSCOMPILING=ON /tmp/msvc-wine_issue-41_repro | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /tmp/msvc-wine_issue-41_repro/cmake-build-release-docker-wine | |
Cannot get compiler information: | |
Compiler exited with error code 2: /opt/msvc/bin/x86/cl @/tmp/misc/response-file12954642806412015051 /tmp/misc/compiler-file7185106763504052988 | @response-file12954642806412015051=/TP /DIssueRepro_EXPORTS /DNDEBUG /DWIN32 /D_MBCS /D_USRDLL /D_WINDOWS /EHsc /EHsc -MD /GL /Oi /GF /Gy /W3 /Zi /EHsc /FI/tmp/msvc-wine_issue-41_repro/cmake-build-release-docker-wine/IssueRepro/CMakeFiles/IssueRepro.dir/cmake_pch.hxx /Be /Bd /EP | |
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 | |
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 | |
0012:err:ole:get_local_serve |
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 com.lmax.disruptor; | |
import net.openhft.affinity.Affinity; | |
import net.openhft.affinity.AffinityLock; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.BenchmarkMode; | |
import org.openjdk.jmh.annotations.Fork; | |
import org.openjdk.jmh.annotations.Measurement; | |
import org.openjdk.jmh.annotations.Mode; | |
import org.openjdk.jmh.annotations.OutputTimeUnit; |
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 org.example; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; |
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 uk.co.palmr.benchmarks; | |
import org.agrona.collections.IntHashSet; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; |