Skip to content

Instantly share code, notes, and snippets.

View marek-saji's full-sized avatar
:shipit:

Marek ‘saji’ Augustynowicz marek-saji

:shipit:
View GitHub Profile
" be (VI)iMproved
set nocompatible
" UTF-8, anyone?
if has("multi_byte")
if &termencoding == ""
let &termencoding=&encoding
if $TERM == "linux" || $TERM_PROGRAM == "GLterm"
let &termencoding="latin1"
elseif $TERM == "xterm" || $TERM == "xterm-color"
@marek-saji
marek-saji / config
Created February 27, 2014 10:17
Add this to ~/.ssh/config to be able to connect to your koding.com VM via vm-{N}.{NAME}.koding.kd.io
Host *.kd.io
User saji
ProxyCommand ssh %r@ssh.koding.com nc %h %p
@marek-saji
marek-saji / .gitconfig
Created April 17, 2014 11:40
git aliases for keeping worklog in .git/worklog
[alias]
# Worklog. Separate repository kept in .git/worklog
# Initialize (bare) repository in .git/worklog
workloginit = !"\
set -e ;\
mkdir .git/worklog;\
cd .git/worklog;\
git init --bare;\
echo '*' > .gitignore;\
@marek-saji
marek-saji / typescripttogif
Last active August 29, 2015 14:00 — forked from tg123/typescripttogif
convert script(1) recordings to gif
#!/bin/bash
# Changelog
# ---------
#
# origin from https://gist.github.com/tg123/6240128
# modified by marek-saji:
# - use single loop
# - skip frames delayed by 0
# - loop animation with additional delay after every loop
<h1>redrice</h1>
<style>
:root
{
background-color: #fff; color: #960000;
font-size: 5em; text-align: center; font-style: italic;
}
</style>
@marek-saji
marek-saji / dabblet.css
Created April 22, 2014 20:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.avoid-br { display: inline-block; }
@marek-saji
marek-saji / dabblet.css
Created May 13, 2014 10:13
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.avoid-br { display: inline-block; }
@marek-saji
marek-saji / dabblet.css
Created May 13, 2014 12:17
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
:root
{
font-size: 0.8em;
}
.container
@marek-saji
marek-saji / dabblet.css
Created May 13, 2014 12:26
min-width > max-width
/**
* min-width > max-width
*/
html
{
border-right: red solid thin;
width: 50%;
min-height: 100%;
}
@marek-saji
marek-saji / 01-xmas-tree.js
Last active August 29, 2015 14:01
async example: (1) get file contents, (2) parse it as a json, (3) add sth, (4) serialize back to string, (5) send a e-mail
function handleError (error) {}
function readFile (PATH, fail, win) {}
function parseJSON (DATA, fail, win) {}
function stringifyJSON (JSON, fail, win) {}
function sendMail (STRING, fail, win) {}
readFile(
PATH,
handleError,
function (DATA) {