Skip to content

Instantly share code, notes, and snippets.

View black7375's full-sized avatar
💭
I may be slow to respond.

MS_Y black7375

💭
I may be slow to respond.
View GitHub Profile
@black7375
black7375 / Makefile
Created September 18, 2019 01:25
친구 코드 리팩토링 해줬던 것(데이터구조)
couple: couple.o
gcc couple.o -lm -o couple
couple.o: couple.c
gcc -c -O2 couple.c
clean:
rm -f couple couple.o
@black7375
black7375 / fibo.cpp
Created December 16, 2019 23:56
Fibonacci BenchMark
#include "bench.h"
using SOURCE = u64;
using RESULT = u64;
SOURCE src[ 10000 ];
constexpr u32 SIZE = sizeof src / sizeof *src;
RESULT dst0[ SIZE ], dst1[ SIZE ], dst2[ SIZE ], dst3[ SIZE ], dst4[ SIZE ],
@black7375
black7375 / bvzsh_install.sh
Last active March 22, 2020 20:13
BVZSH Install
## == Brew Package Install ====================================================
BRW_PACKAGE_NAME="autojump fzf ripgrep thefuck"
export PATH="$PATH:/home/linuxbrew/.linuxbrew/bin/"
{
brew install $BRW_PACKAGE_NAME
} || {
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
brew vendor-install ruby
brew install $BRW_PACKAGE_NAME
}
@black7375
black7375 / include-media fail.log
Created September 2, 2020 04:13
Include-media fali log
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /home/black7375/include-media/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /home/black7375/include-media/node_modules/node-sass
@black7375
black7375 / init.zsh
Created March 8, 2021 06:37
z-a-eval init.zsh
complete -W "2to3
7z
7za
7zr
R
a2disconf
a2dismod
a2dissite
a2enconf
a2enmod
@black7375
black7375 / create_dataset.py
Created April 6, 2021 00:19
Font File to hdf5
import h5py
import PIL, PIL.ImageFont, PIL.Image, PIL.ImageDraw, PIL.ImageChops, PIL.ImageOps
import os
import random
import string
import numpy
import sys
# -------------------- Convert to Numpy Array --------------------
w, h = 64, 64
@black7375
black7375 / Proton_compact_touch.css
Last active January 30, 2023 20:23
Firefox Proton's compact, touch
/* Each Mode - Reduce Padding */
/** Variable Compact General Touch
* --tab-min-height 29px 36px 41px
* --toolbarbutton-outter-padding 3px 2px 2px
* --toolbarbutton-inner-padding 6px 8px 9px
* --bookmark-block-padding 1px 4px 7px
* --urlbar-min-height 26px 32px 41px
* --urlbar-icon-padding 3px 6px 7px
* .tab-content[pinned] padding 0 --inline-tab-padding; 0 10px; 0 10px
@black7375
black7375 / RevealEffect.ts
Created May 29, 2021 14:29
Fluent Reveal Effect Typescript Version
// This is Refactoring Version of https://github.com/d2phap/fluent-reveal-effect
// Plan to PR when there is time
// ** Interfaces ***************************************************************
// Global
interface resourceI {
oriBg: string;
el: HTMLElement;
}
@black7375
black7375 / re_builder_prototype.js
Created September 10, 2021 18:22
Regex Builder Prototype
//== RE::ASSERTIONS ============================================================
const WORD_BOUNDARY = String.raw`\b`;
function lookahead(x, y) {
const symbol = "?=";
return x + group(symbol + y);
}
function lookbehind(x, y) {
const symbol = "?<=";
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000