Skip to content

Instantly share code, notes, and snippets.

View krissemicolon's full-sized avatar

Kris Huber krissemicolon

View GitHub Profile
@krissemicolon
krissemicolon / emacsCoreCommands.md
Created April 21, 2024 20:07 — forked from k2052/emacsCoreCommands.md
Emacs Shortcuts + Commands

Emacs Commands

Text

  • C-f: move cursor forward one char
  • C-b: mover cursor back one chart
  • C-n: mover cursor to next line
  • C-p: go to previous line
  • M-f: forward one word
  • M-b: move backward one word
@krissemicolon
krissemicolon / Q_rsqrt.c
Created February 12, 2024 19:08
Quake III's fast inverse square root
#include <math.h>
#include <stdio.h>
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
%:include <stdio.h>
int main()
{<%{<%{<%{<%{<%{<%{<%{<%{<%{<%{<%
<%<%<%puts("hello, world");%>%>%>
}%>}%>}%>}%>}%>}%>}%>}%>}%>}%>}%>

Keybase proof

I hereby claim:

  • I am krissemicolon on github.
  • I am krissemicolon (https://keybase.io/krissemicolon) on keybase.
  • I have a public key whose fingerprint is F77C 71F8 EA91 77AF 27CC BA45 1B82 D510 089E 3432

To claim this, I am signing this object:

4AkqW3mvKPFSGFSBhdgKkd71E3E9QY1siCZHQgxryMSFWjGdAz2eW2s4YfLaUqKHeiZxVjLcGDaBGEFGkAF1GmKWTSkQJBz
<script>
alert("XSS");
</script>
pub fn xor(text: &str, key: u8) -> String {
text.chars().map(|c| ((c as u8) ^ key) as char).collect()
}
#include <stdio.h>
#include <stdlib.h>
typedef struct _node {
int data;
struct _node *next;
} node;
typedef struct {
node *head;
/*
* This file is part of the NAME distribution (https://github.com/krissemicolon/NAME).
* Copyright (c) 2021 Kris Huber.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
.POSIX:
NAME=
EXT=
C=
$(NAME): src/*$(EXT)
$(C) src/*(EXT) -o $(NAME)
clean:
rm $(NAME) src/*.hi src/*.o