Skip to content

Instantly share code, notes, and snippets.

View griimick's full-sized avatar
🦫
Where's my fish?

Soumik griimick

🦫
Where's my fish?
View GitHub Profile
@griimick
griimick / .vimrc
Created April 29, 2021 12:31
VIM Vite Typescipt
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'sheerun/vim-polyglot'
Plugin 'morhetz/gruvbox'
@griimick
griimick / debounce.js
Last active April 13, 2021 07:02
Debounce & Throttle
/*
* Call dembounced function only after `limit` amount of time
* has passed since the last call. The limit resets if the function is called
* before before `limit` amount of duraction has passed from the last call.
* This impliesa delay between the last event and handle function call.
*/
export default customDebounce (func, limit) {
let timeout;
return debouncedFunction () {
let context = this, args = arguments;
@griimick
griimick / command
Created February 10, 2021 20:52
Recursively download pkg and its deps
apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances vim | grep "^\w" | sort -u)
@griimick
griimick / template.cpp
Last active April 20, 2020 02:34
Competitive Programming C++ template
#include<bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int32_t main() {
fastio
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
@griimick
griimick / profiles.json
Last active May 18, 2020 01:30
Windows Terminal config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"copyOnSelect": false,
"copyFormatting": false,
"launchMode" : "maximized",
"profiles":
{
"defaults":
{
@griimick
griimick / config.cfg
Last active January 25, 2020 11:54
Counter Strike User Data Backup
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "use weapon_knife;use weapon_hegrenade"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
@griimick
griimick / griim.cfg
Last active March 21, 2019 23:18
Counter Strike Global Offensive Player Config
echo "GriiM's Config"
echo "initializing crosshair........"
cl_crosshair_drawoutline "1.000000"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "1.000000"
cl_crosshair_sniper_show_normal_inaccuracy "0"
@griimick
griimick / .vimrc
Last active December 1, 2020 11:01
Vim configurations
set nocompatible
filetype off
"
" Vim Vundle configurations and package list
"
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'