Skip to content

Instantly share code, notes, and snippets.

View nikachu2012's full-sized avatar
:atom:
Programming

nikachu nikachu2012

:atom:
Programming
View GitHub Profile
### Keybase proof
I hereby claim:
* I am nikachu2012 on github.
* I am nikachu2012 (https://keybase.io/nikachu2012) on keybase.
* I have a public key ASDXIhO5bluTp-l2vDafuu8rlCb2Nro9a6Q65cnFkVETkAo
To claim this, I am signing this object:
@nikachu2012
nikachu2012 / main.c
Created October 15, 2024 04:07
Output to stdout (system call)
#include <unistd.h>
#include <string.h>
int main()
{
char p[] = "hotarukawaii\n";
write(1, p, strlen(p));
return 0;
}
@nikachu2012
nikachu2012 / proof.md
Last active March 18, 2024 10:20
Keyoxide

openpgp4fpr:0e493481f60b4e700c84a984c6dbd4a947c5eaaf

@nikachu2012
nikachu2012 / main.py
Created February 11, 2024 11:26
Fullscratch SHA-256 on Python
def Ch(x, y, z) -> int:
return (x & y) ^ (~x & z)
def Maj(x, y, z) -> int:
return (x & y) ^ (x & z) ^ (y & z)
def Rotr(x: int, n: int) -> int:
return (x << (32 - n)) & 0xFFFFFFFF | (x >> n)
@nikachu2012
nikachu2012 / 6.1.cpp
Created February 9, 2024 22:56
nitnc_programming_kiso
#include <Arduino.h>
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
char c;
for (;;)
{