Skip to content

Instantly share code, notes, and snippets.

View pstachula-dev's full-sized avatar
👾

Paweł Stachula pstachula-dev

👾
View GitHub Profile
#!/usr/bin/ruby
require 'benchmark'
require 'set'
$VERBOSE = nil
H = 'md'
N = 10
Size = 3
# H ='md'
@pstachula-dev
pstachula-dev / vim
Last active August 29, 2015 13:56
Vim cheat sheets
1. Useful Commands
gg - jump to begining of file
G - jumo to end of file
{ - jump to paragraph
i - insert mode
a - insert mode after cursor
o - insert in new line below and swtich to insert mode
O - insert in new line above and swtich to insert mode
r - change letter
x - delele character
@pstachula-dev
pstachula-dev / gist:9089169
Last active August 29, 2015 13:56
Bash_profile
# Aliases
# Navigation
alias ll='ls -alhF'
alias ls='ls -alhFG --color'
alias l='ls -lhFG --color'
alias md="mkdir -pv"
alias ~='cd ~'
alias ..='cd ..'
alias ...='cd ../..'
// Source http://www.thatjsdude.com/interview/js1.html
/*
|--------------------------------------------------------------------------
| Log p()
|--------------------------------------------------------------------------
|
*/
var p = function(a) {
@pstachula-dev
pstachula-dev / gist:efeac9b65ec1f554010a
Last active August 29, 2015 14:11
.gitignore delete files from the remote repository Git

.gitignore: vendor/*

Bash: git rm --cached vendor -r

// ==UserScript==
// @name GreenIsBad
// @namespace GreenIsBad
// @version 0.2
// @description Ukrywa wpisy/komentarze zielonek za spojlerami
// @author Feuer
// @match http://wykop.pl/*
// @match http://www.wykop.pl/*
// @grant none
// ==/UserScript==