Always looking at connector side, lock on the right. Pin 1, 2 and 3 are defined on the connector by stripes on the side.
| Color | Signal | Pin|Pin | Signal | Color |
| import java.io.Closeable; | |
| import java.io.EOFException; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Objects; | |
| public final class BitInputStream implements Closeable { | |
| private final InputStream in; | |
| private long bitBuffer; | |
| private int bitCount; |
| [ | |
| { | |
| "type": "ROOT", | |
| "children": [ | |
| "MODEL", | |
| "ANIMATION", | |
| "INSTANCE", | |
| "METADATA" | |
| ], | |
| "properties": [] |
| use std::fs::File; | |
| use std::io; | |
| use std::io::BufReader; | |
| use std::io::Read; | |
| use std::rc::Rc; | |
| use byteorder::{LE, ReadBytesExt}; | |
| #[derive(Debug)] |
| #include <iostream> | |
| double toKelvin(double value, char unit) { | |
| switch (srcUnit) { | |
| case 'C': | |
| return num + 273.16; | |
| case 'F': | |
| return ((num - 32) / 1.8) + 273.16; | |
| case 'K': | |
| return num; |
| package be.twofold.test; | |
| import java.util.function.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| int diff61 = testFullRange((a, b) -> compare6(a, b, 1)); | |
| int diff63 = testFullRange((a, b) -> compare6(a, b, 3)); | |
| int diff41 = testFullRange((a, b) -> compare4(a, b, 1)); |
| import java.util.*; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.IntStream; | |
| public class Day05 { | |
| public static void main(String[] args) { | |
| String s = Utils.read("day05.txt"); | |
| Status status = parse(s); | |
| solve1(status); | |
| solve2(status); |
| import com.fasterxml.jackson.annotation.JsonCreator; | |
| import com.fasterxml.jackson.annotation.JsonValue; | |
| import java.util.Objects; | |
| public abstract class ValueOf<T> { | |
| private final T value; | |
| @JsonCreator | |
| protected ValueOf(T value) { |
| { | |
| "keyboard": "kbdfans/kbd67/mkiirgb/v1", | |
| "keymap": "basics", | |
| "layout": "LAYOUT_65_ansi_blocker", | |
| "layers": [ | |
| [ | |
| "KC_GESC", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
| import com.squareup.javapoet.* | |
| import java.util.* | |
| import javax.lang.model.element.Modifier | |
| private fun generateIndexOfTriple(typeName: TypeName): List<MethodSpec> { | |
| val arrayTypeName = ArrayTypeName.of(typeName) | |
| val indexOf4 = indexOf4(arrayTypeName, false) | |
| val indexOf2 = indexOf2(arrayTypeName, indexOf4, false) | |
| val lastIndexOf4 = indexOf4(arrayTypeName, true) | |
| val lastIndexOf2 = indexOf2(arrayTypeName, lastIndexOf4, true) |