Skip to content

Instantly share code, notes, and snippets.

View rsp's full-sized avatar

Rafał Pocztarski rsp

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

Keybase proof

I hereby claim:

  • I am rsp on github.
  • I am pocztarski (https://keybase.io/pocztarski) on keybase.
  • I have a public key ASAN7WeF8FkqRIzzSBLQnwADPTEhHfKvsGfijHnCMfBvqAo

To claim this, I am signing this object:

@rsp
rsp / node-ts-hello-adventures.md
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:

https://github.com/rsp/node-ts-hello

@rsp
rsp / git-complexity-examples.md
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

V8

  • Complexity: 1
// 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
rsp / how-to-create-a-pull-request.md
Last active February 26, 2024 10:56
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
rsp / essential-services.md
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
rsp / GitHub-Project-Guidelines.md
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: