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
/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 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 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 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 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 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 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 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
//Draw a wrapped sting | |
private static boolean isBreakable(char c) { | |
return (c == ' ' || c == '\t' || c == '-' || c == '\\' || c == '/' || c == '_'); | |
} | |
private static boolean isNewLine(char c) { | |
return (c == '\n' || c == '\r'); | |
} | |
/** | |
* Draw a string onto a graphics2d object, wrapping words at pWidth pixels wide. |
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 whatever has your JSON before you call the tagger | |
var tagItemsJSON = ... | |
// This takes the JSON and splits it into an array of the items in it | |
// It then sorts that array by the suggestion field on each item | |
var sortedBySuggestion = $.map(tagItemsJSON, function(p){return p;}).sort(function(a, b){ | |
if(a.suggestion < b.suggestion ) return -1; | |
if(a.suggestion > b.suggestion ) return 1; | |
return 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
// for some reason the challenege only let you use these letters, not full A-Z | |
var letters = "acdegilmnoprstuw"; | |
// Implementation of their hash function to test against | |
function doHash(string) { | |
var hash = 7; | |
for(var i = 0; i < string.length; i++) { | |
hash = (hash * 37 + letters.indexOf(string[i])); | |
} | |
return hash; |
NewerOlder