Skip to content

Instantly share code, notes, and snippets.

View rsp's full-sized avatar

Rafał Pocztarski rsp

View GitHub Profile
@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 / .tmux.conf
Last active December 12, 2023 19:50 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever - improved!
# 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
# use Backslash to split horizontally
unbind-key C-b
set -g prefix 'C-\'
bind-key 'C-\' send-prefix
@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:

@rsp
rsp / text-editors.md
Last active September 21, 2023 20:51
Text Editors
@rsp
rsp / better-box-model-no-box-model.md
Last active July 19, 2023 04:12
Better Box Model == No Box Model - how to solve problems with CSS3 box-sizing: border-box; https://twitter.com/pocztarski/status/489619558991675393

Better Box Model == No Box Model

The premise is that a better box model would be no box model at all, or rather no dependence on any particular box model that happens to be in use.

This proposal specifies new CSS properties that would make working with issues related to box-sizing easier and less error prone.

Problems

@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

// 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 / 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: