Skip to content

Instantly share code, notes, and snippets.

View fcharlie's full-sized avatar

J23 fcharlie

View GitHub Profile
@fcharlie
fcharlie / FlappyBird.c
Created May 11, 2021 08:55 — forked from smvd/FlappyBird.c
flappy bird writen in c running in the terminal
/*
_ _ _ _____ _ ____ _
| \ | | ___ | |_ | ___| | __ _ _ __ _ __ _ _ | _ \ _ _ ___| | __
| \| |/ _ \| __| | |_ | |/ _` | '_ \| '_ \| | | | | | | | | | |/ __| |/ /
| |\ | (_) | |_ | _| | | (_| | |_) | |_) | |_| | | |_| | |_| | (__| <
|_| \_|\___/ \__| |_| |_|\__,_| .__/| .__/ \__, | |____/ \__,_|\___|_|\_\
|_| |_| |___/
compiler : GCC
command : gcc source.c -o FlappyBird.exe -Werror -Wall -W -s
license : www.unlicense.org (Please credit my channel tho)
@fcharlie
fcharlie / complete.go
Created August 31, 2020 08:48
create too many commits
package main
import (
"fmt"
"os"
"time"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
@fcharlie
fcharlie / blobview.go
Created August 19, 2020 14:02
golang lookup git object
package main
import (
"compress/zlib"
"crypto/sha1"
"encoding/hex"
"errors"
"fmt"
"hash"
"io"
# ~/AppData/Local/nvim/init.vim
# ~/.config/nvim/init.vim
set guicursor=a:ver25-blinkon10
//
#include <Windows.h>
class ProcessGroup {
public:
ProcessGroup() = default;
ProcessGroup(const ProcessGroup &) = delete;
ProcessGroup &operator=(const ProcessGroup &) = delete;
~ProcessGroup() {
if (hJob != nullptr) {
https://mirrors.tuna.tsinghua.edu.cn/github-release/be5invis/
https://mirrors.tuna.tsinghua.edu.cn/github-release/be5invis/Sarasa-Gothic/
https://www.lanzous.com/b405554/
@fcharlie
fcharlie / profile.json
Last active July 22, 2024 08:08
My Windows Terminal profile.json
// This file was initially generated by Windows Terminal 0.11.1333.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// You can add more global application settings here.
@fcharlie
fcharlie / vadefs.h
Created April 29, 2019 12:58
vadefs.h
//
// vadefs.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Definitions of macro helpers used by <stdarg.h>. This is the topmost header
// in the CRT header lattice, and is always the first CRT header to be included,
// explicitly or implicitly. Therefore, this header also has several definitions
// that are used throughout the CRT.
//
@fcharlie
fcharlie / ProjectedFSLib.h
Last active December 7, 2022 03:09
ProjFs
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
projectedfslib.h
Abstract: