Skip to content

Instantly share code, notes, and snippets.

@YiPrograms
YiPrograms / simple_program.c
Created January 28, 2024 17:49
simple_program
#include <stdio.h>
#include <unistd.h>
#include <ctype.h>
int main(int argc, char **argv) {
int c;
int has_option = 0;
char *echo_msg = NULL;
@YiPrograms
YiPrograms / .zshrc
Created November 23, 2020 13:19
.zshrc
# Powerlevel10k instant prompt (Prompt will flash on start)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
#fi
## zsh-newuser-install
@YiPrograms
YiPrograms / pi.jl
Last active January 5, 2020 07:34
JuliaPi
function mypi(n)
return sqrt(6*sum(map(x->1/x^2, 1:n)))
end

Keybase proof

I hereby claim:

  • I am yiprograms on github.
  • I am qqcute (https://keybase.io/qqcute) on keybase.
  • I have a public key ASBMNSqJ3yIOc_skfvgn44DcBiz5a5ZYgqs5rlCQgBPSxQo

To claim this, I am signing this object: