Skip to content

Instantly share code, notes, and snippets.

View rsp's full-sized avatar

Rafał Pocztarski rsp

View GitHub Profile
rsp / test.html
Last active July 12, 2020 12:59
Valid HTML Test
View test.html
<!-- Valid HTML Test -->
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>Valid HTML Test</title>
alert('It works');
rsp / my-style-of-html.html
Created July 1, 2020 18:32
Stop 'using' "useless" "\"QUOTES\""!
View my-style-of-html.html
<!-- find incorrect html below -->
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<link rel=stylesheet href=https://example.coms/style.css>
<img alt src=icon.gif>
<div id=foo></div>
rsp /
Created May 21, 2019 12:52

Keybase proof

I hereby claim:

  • I am rsp on github.
  • I am pocztarski ( on keybase.
  • I have a public key ASAN7WeF8FkqRIzzSBLQnwADPTEhHfKvsGfijHnCMfBvqAo

To claim this, I am signing this object:

rsp /
Last active July 4, 2023 12:00
Creating and using a Node library with TypeScript

node-ts-hello adventures

This is what I was really doing while creating an example from this answer on Stack Overflow:

It turned out that I made several stupid mistakes and wasted a lot more time than it might look like from reading the answer. I eventually removed from the answer not so much out of embarrassment but because I didn't want to be accused that I am complicating the process on purpose to make Deno look better in comparison. The truth is that below ius exactly what I did while trying to create and publish a new module on npm written in TypeScript and use it with ts-node later:

rsp /
Last active March 4, 2019 19:13
Git repo bare git log graph and branching complexity factor by @rsp

Git branching complexity

See scripts to calculate it for your repo below!

Example repositories and results


  • Complexity: 1
View click.c
// Compile instructions:
// gcc -o click click.c -Wall -framework ApplicationServices
#include <ApplicationServices/ApplicationServices.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
int x = 0, y = 0, n = 1;
float duration = 0.1;
rsp /
Last active January 30, 2021 06:43
How to create a Pull Request on GitHub

How to create a Pull Request on GitHub

1. Fork the repository:

![Fork the repo][fork-repo]

2. Select user or organization to fork as:

(if you belong to one or more organizations with appropriate permissions)

rsp /
Last active April 18, 2018 00:35
Essential services for an agile software house

Prices as of April 2018.

Essential communication and collaboration:

  • G Suite:
    • Basic plan (30GB storage) $5 / user / month
    • Business plan (1TB storage) $10 / user / month
  • Slack:
    • Free plan $0 / month
  • Standard plan $8 / user / month
rsp /
Last active November 15, 2023 03:50
Git Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp

Git Strict Flow and GitHub Project Guidelines

Or how to turn this:

into this: