Skip to content

Instantly share code, notes, and snippets.

View BastianBlokland's full-sized avatar
⌨️
Probably building something...

Bastian Blokland BastianBlokland

⌨️
Probably building something...
View GitHub Profile
@BastianBlokland
BastianBlokland / qmk-config-dz60.md
Last active March 10, 2019 09:41
Configuration for dz-60 keyboard

DZ-60 Keyboard mapping

Preview image

Hardware

  • Board: dz-60 rev-3 (usb-c) (QMK compatible)
  • Switches: Cherry browns
  • Caps: DSA blanks
  • Case: Kbd-fans
@BastianBlokland
BastianBlokland / unity_ios_verificationsignature.md
Last active February 16, 2024 22:19
Way to get the game-center verification signature with Unity.

Even tho Unity has implemented a game-center api (Social api) it doesn't have a way to generate a verification signature, which you need to use game-center as a authentication method.

Luckily the objective-c code required is pretty straight forward. (Apple documentation: generateIdentityVerificationSignature)

#import <Foundation/Foundation.h>
#import <GameKit/GameKit.h>

typedef void (*IdentityVerificationSignatureCallback)(const char * publicKeyUrl, const char * signature, int signatureLength, const char * salt, int saltLength, const uint64_t timestamp, const char * error);
@BastianBlokland
BastianBlokland / dotnet_intrinsics_search.md
Last active September 10, 2021 12:31
Playing around with the new hardware intrinsics of .net core 3.0

.Net Core 3.0 (currently in preview) adds support for hardware intrinsics.

So now we can write simd instructions in c# 🎉

Intel has a nice website for browsing through the available instructions: Intel intrinsics guide

Everything from Avx2 down seems supported. (Given that your cpu supports it ofcourse)

For double checking what c# call maps to what instruction you can check the summary of the methods: