Skip to content

Instantly share code, notes, and snippets.

View kalupa's full-sized avatar

Paul Kalupnieks kalupa

View GitHub Profile
@kalupa
kalupa / .vimrc
Created October 8, 2013 23:59 — forked from sdizier/.vimrc
" Strip trailing whitespace
function! <SID>StripTrailingWhitespaces()
" Preparation: save last search, and cursor position.
let _s=@/
let l = line(".")
let c = col(".")
" Do the business:
%s/\s\+$//e
" Clean up: restore previous search history, and cursor position
let @/=_s
@kalupa
kalupa / facebookformfill.md
Last active April 19, 2016 16:25 — forked from johnnyopao/facebookformfill.md
Fill your Unbounce Forms using Facebook data
@kalupa
kalupa / code-review.ts
Last active September 20, 2022 20:04 — forked from tavisrudd/agenda.md
////////////////////////////////////////////////////////////////////////
// 1.1) If you saw something like this during a code review
// what would you say and how would you improve it?
// (If you don't know Typescript's type system well, pseudo-code it or talk about a typed language you know well.)
type Shape = {
type: "circle" | "square";
size: number;
radius: number;
};