Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafał Pocztarski rsp

View GitHub Profile
@rsp
rsp / test.html
Last active Jul 12, 2020
Valid HTML Test
View test.html
<!-- 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 Jul 1, 2020
Stop 'using' "useless" "\"QUOTES\""!
View my-style-of-html.html
<!-- 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>
View 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 Apr 6, 2021
Creating and using a Node library with TypeScript
View node-ts-hello-adventures.md

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 Mar 4, 2019
Git repo bare git log graph and branching complexity factor by @rsp
View git-complexity-examples.md

Git branching complexity

See scripts to calculate it for your repo below!

Example repositories and results

V8

  • 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
rsp / how-to-create-a-pull-request.md
Last active Jan 30, 2021
How to create a Pull Request on GitHub
View how-to-create-a-pull-request.md

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 Apr 18, 2018
Essential services for an agile software house
View essential-services.md

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 Mar 25, 2021
Git Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp
View GitHub-Project-Guidelines.md

Git Strict Flow and GitHub Project Guidelines

Or how to turn this:

into this: