Skip to content

Instantly share code, notes, and snippets.

View saiashirwad's full-sized avatar
🏠
Working from home

texoport saiashirwad

🏠
Working from home
View GitHub Profile
{
"[go]": {
"editor.formatOnSave": true,
"editor.tabSize": 4
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[json]": {
"editor.defaultFormatter": "richie5um2.vscode-sort-json",
@saiashirwad
saiashirwad / build
Last active July 15, 2022 11:44
Experimental typesafe email generation with heml, zx
#!/usr/bin/env zx
import Emails from "./templates.js";
const readFile = async (filePath) => fs.readFile(filePath, "utf8");
const populateTemplate = (template, card = "", footer = "") =>
template.replace("__CARD__", card).replace("__FOOTER__", footer);
const writeFile = (path, data) => fs.writeFile(path, data, "utf8");
const outputFolder = "./out/";
for_window [class=".*"] border pixel 2
set $mod Mod4
set $alt Mod1
font pango:monospace 10
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
set $refresh_i3status killall -SIGUSR1 i3status
Plug 'kana/vim-textobj-entire'
set surround
set clipboard+=unnamed
set ideajoin
set multiple-cursors
set visualbell
let mapleader = " "
set noh
@saiashirwad
saiashirwad / settings.json
Created December 5, 2021 04:24
VSCode settings.json
{
"[go]": {
"editor.tabSize": 4
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
@saiashirwad
saiashirwad / init.lua
Last active March 15, 2022 11:17
init.lua
local cmd = vim.cmd
local fn = vim.fn
local g = vim.g
local opt = vim.opt
g.mapleader = " "
vim.cmd[[
@saiashirwad
saiashirwad / lol.sql
Created September 3, 2021 17:20
wtf lol
drop table if exists "company" cascade;
create table "company"
(
id varchar(20) primary key,
name varchar(50) not null,
createdAt timestamptz not null default (now())
);
drop table if exists "userlist" cascade;
create table "userlist"
@saiashirwad
saiashirwad / init.vim
Last active August 22, 2021 07:11
init.vim
let loaded_matchparen = 1
let mapleader = " "
let maplocalleader="\<space>"
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>
nnoremap <leader>nn :!node %<CR>
This file has been truncated, but you can view the full file.
5.6030273e-02
4.5349121e-02
4.1198730e-02
3.9642334e-02
3.9093018e-02
3.9031982e-02
3.9154053e-02
3.9306641e-02
3.9520264e-02
3.9703369e-02
let loaded_matchparen = 1
let mapleader = " "
:imap kj <Esc>
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>