Skip to content

Instantly share code, notes, and snippets.

View rorisme's full-sized avatar
🏠
Working from home

Rijkaard Orismé rorisme

🏠
Working from home
View GitHub Profile
@rorisme
rorisme / catch-helper.ts
Last active July 8, 2022 22:19
typescript-catch-helper.ts
type ItemResponse = {
items: number[];
error?: Error;
};
function getItems(shouldReject: boolean): Promise<ItemResponse> {
return new Promise((resolve, reject) => {
if (!shouldReject) return resolve({ items: [1, 2, 3, 4, 5] });
reject(new Error("Something wrong happened."));
});
vim.wo.foldcolumn = '1'
vim.wo.foldlevel = 99 -- feel free to decrease the value
vim.wo.foldenable = true
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
require('packer').startup(function()
use {'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async'}
-- using coc.nvim as LSP client
use {'neoclide/coc.nvim', branch = 'master', run = 'yarn install --frozen-lockfile'}
@rorisme
rorisme / init.vim
Last active June 30, 2022 05:35
Neovim config
lua require('plugins')
:set number
:set autoindent
:set tabstop=2
:set shiftwidth=2
:set expandtab
:set smartindent
:set mouse=a
@rorisme
rorisme / rearct-native-app-in-wsl2.md
Created April 4, 2022 15:28 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2

Keybase proof

I hereby claim:

  • I am rorisme on github.
  • I am rorisme (https://keybase.io/rorisme) on keybase.
  • I have a public key ASA6xlqCTFlNT--NuAkUgmWkd0X7lemuLsA8z0JIvVlS1Qo

To claim this, I am signing this object: