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 |
#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) |
package be.tjoener.test; | |
@SuppressWarnings("PointlessArithmeticExpression") | |
public final class Feistel { | |
/** | |
* Sets the number of rounds, security/speed trade-off | |
*/ | |
private static final int ROUNDS = 16; |
package com.example.demo; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import lombok.Data; | |
import lombok.Getter; | |
import lombok.NoArgsConstructor; | |
import org.hibernate.annotations.CreationTimestamp; | |
import org.springframework.boot.CommandLineRunner; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; |
public final class Person { | |
private final String firstName; | |
private final String lastName; | |
private Person(String firstName, String lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} |