Skip to content

Instantly share code, notes, and snippets.

View TotallyNotChase's full-sized avatar
Time ain't on my side

Chase TotallyNotChase

Time ain't on my side
  • Hell
View GitHub Profile
#include<stdio.h>
#include<stdlib.h>
#define COLORS_SIZE 256
struct PixelTuple
{
int red;
int green;
int blue;
@TotallyNotChase
TotallyNotChase / README.md
Last active July 13, 2021 17:33
flask-jwt-backend example

To set up this project locally, follow this project structure:-

flask-jwt-backend-example

|--app/
   |--templates/  
        |--index.html
        |--account.html
        |--services.html
 |--__init__.py
@TotallyNotChase
TotallyNotChase / sieve.c
Last active March 12, 2020 11:26
Benchmark to sieve + string checks
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<stdint.h>
#include<inttypes.h>
#include<math.h>
#include<time.h>
typedef struct uint64_vector
@TotallyNotChase
TotallyNotChase / strfuncs.c
Last active April 26, 2020 16:29
Some string functions to review
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "strfuncs.h"
#include "strfuncsdef.h"
// Append given char to given string
// Returns NULL on failure
static char* str_append(char element, char* str, size_t end_index, size_t* size)
{
@TotallyNotChase
TotallyNotChase / host.json
Last active October 24, 2022 02:01
Native Messaging - C
{
"name": "pingpong",
"description": "Native messaging host example",
"path": "path/to/release_executable",
"type": "stdio",
"allowed_origins": [
"chrome-extension://extension_id/"
]
}
@TotallyNotChase
TotallyNotChase / host.json
Last active August 7, 2024 05:26
Native Messaging - Rust
{
"name": "pingpong",
"description": "Native messaging host example",
"path": "path/to/release_executable",
"type": "stdio",
"allowed_origins": [
"chrome-extension://extension_id/"
]
}
@TotallyNotChase
TotallyNotChase / yes.c
Created September 9, 2020 15:07
wow funne weezer macro in c
#include <stdio.h>
#define sleeping int
#define with main
#define mother (void)
#define theresa {
#define drifting char*
#define a =
#define brahmin ;
#define you puts
#include "iterator.h"
#include "maybe.h"
#include "typeclass.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <time.h>
#include <unistd.h>
@TotallyNotChase
TotallyNotChase / functors.c
Last active May 17, 2021 09:14
The Typeclass Design Pattern 2: Electric Functoraloo
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define Functor(T, A, B) Functor##T##A##B
#define Functorable(T, A, B) Functorable##T##A##B
#define DefineFunctorOf(ReturnT, A, B) \
typedef struct \
{ \
@TotallyNotChase
TotallyNotChase / example.ts
Last active March 27, 2022 13:37
Scoped, yet too unscoped - extensible records API in typescript, through expressive abstraction
import { stretch, stretchP } from './implementation';
interface IApplication {
wow: boolean;
great: string;
}
function stretchExample0(cond: boolean): IApplication {
// Reach for an `IApplication`, but start with `{}`.
const app = stretch<IApplication>()