Skip to content

Instantly share code, notes, and snippets.

View rsp's full-sized avatar

Rafał Pocztarski rsp

View GitHub Profile
@rsp
rsp / ci-systems.md
Last active March 16, 2018 04:42
Hosted and self-maintained continuous integration systems - CI recommendations by Rafał Pocztarski

Here are links to some reports, my own projects and my opinions regarding CI systems - mostly Travis, Circle and Jenkins.

Reports

Usage, Costs, and Benefits of Continuous Integration in Open-Source Projects by Oregon State University and University of Illinois:

@rsp
rsp / rsp-ps1.sh
Last active July 26, 2018 16:41
A nice shell prompt by @rsp
# A nice shell prompt by Rafał Pocztarski
# With error code display and commands to switch between styles
# From https://gist.github.com/rsp/fd71cad1ba91fc1777ef0b12bb36c9dc
TR="\[$(tput sgr0)\]"
Tr="\[$(tput setaf 1)\]"
Tb="\[$(tput bold)\]"
__err() {
e=$?
@rsp
rsp / .tmux.conf
Last active April 3, 2019 02:44
The best and greatest tmux.conf ever - improved! 2.0
# The best and greatest tmux.conf ever - improved! 2.0
# https://gist.github.com/rsp/eda949a908804c3b36456a8794045a91
# See also my previous config:
# The best and greatest tmux.conf ever - improved!
# https://gist.github.com/rsp/f4770a1fe8ea7e2378ac3a16e01a2b53
# Here are some customizations done by Rafał Pocztarski:
# use Ctrl+Backslash instead of Ctrl+A or Ctrl+B
# use Slash to split vertically
@rsp
rsp / releasing-internal-libs-as-open-source.md
Last active December 20, 2017 12:45
Releasing internal libraries as open source

Releasing Internal Libraries as Open Source

My recomentation of releasing internal company libraries as open source.

Writing from scratch

If there is a need to write code that can be abstracted away as a library and used in many projects and it is not written yet:

  1. define the needed functionality and interface
@rsp
rsp / releasing-open-source-libs.md
Last active April 20, 2018 09:06
Releasing Open Source Libraries for Node.js and Other Platforms

Releasing Open Source Libraries for Node.js and Other Platforms

My recommendation of releasing open source libraries - not only for Node.

This guide was written specifically for Node modules but it can be adapted to other languages and environments simply by changing "npm" to the main place where open source libraries are published for the given platform (e.g. CPAN for Perl, RubyGems for Ruby etc.)

It is divided into three main stages - a one-time Setup being the first thing to do and ongoing Development and Maintainance stages, plus some useful Tips and Services as a bonus.

const input1 = x => y => x(y);
const input2 = x => y => x(x(y));
const input3 = x => y => x(x(x(x(x(x(x(x(x(x(y))))))))));
const input4 = x => input3(input3(x));
const input5 = x => input3(input4(x));
const count = f => f(x => x + 1)(0);
@rsp
rsp / ifm-lw-r1-links.md
Last active November 30, 2017 16:34
inFullMobile Language Wars: Round 1 - Links
@rsp
rsp / ifm-lw-r1-scheme-solution-2.scm
Last active November 29, 2017 14:10
inFullMobile Language Wars: Round 1 - Scheme Solution 2 by @rsp - See: https://gist.github.com/rsp/d8bdbafa09f24f99eebc8ed60fe205c8
(define (f a) (lambda (b) (lambda (c)
(((a (lambda (d) (lambda (e) (e (d b)))))
(lambda (f) c)) (lambda (g) g)))))
@rsp
rsp / ifm-lw-r1-scheme-solution-1.scm
Last active November 29, 2017 14:09
inFullMobile Language Wars: Round 1 - Scheme Solution 1 by @rsp - See: https://gist.github.com/rsp/d8bdbafa09f24f99eebc8ed60fe205c8
(define (e a b c) (if (= c 0) a (e (b a) b (- c 1))))
(define (f a) (lambda (b) (lambda (c)
(e c b (- ((a (lambda (a) (+ a 1))) 0) 1)))))