Skip to content

Instantly share code, notes, and snippets.

💻
hacking on projects!

Heechul Ryu ryuheechul

💻
hacking on projects!
Block or report user

Report or block ryuheechul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ryuheechul
ryuheechul / Kakoune-mimicking.md
Last active Feb 2, 2020
Kakoune keys `w`, `e` and `b` clone attempts
View Kakoune-mimicking.md

v1

function! s:selectwordfoward() abort 
  normal! wvel
endfunction

function! s:selectwordbackward() abort 
  call search('\S', 'b')
  normal! vb
@ryuheechul
ryuheechul / editor-buddies.md
Last active Jan 27, 2020
my editor buddies
View editor-buddies.md
@ryuheechul
ryuheechul / 0-README.md
Last active Jan 17, 2020
My SpaceVim minimal personalisation
View 0-README.md

My SpaceVim minimal personalisation

  • SPC p / project fuzzy search
  • q to quit fuzzy search window after done using it
@ryuheechul
ryuheechul / use-stream.js
Last active Nov 3, 2019
useStream React Hook
View use-stream.js
import { useEffect, useState } from "react";
export function useStream($) {
const [value, setValue] = useState([]);
useEffect(() => {
const subs = $.subscribe({
next: v => setValue(v),
complete: () => console.log("stream completed in useStream"),
error: e => { console.error(e)}
});
@ryuheechul
ryuheechul / patter-match-ish.ts
Last active Oct 25, 2019
My approach to deal with pattern matching types in Typescript
View patter-match-ish.ts
// Type enum (meta type)
enum Type {
Animal,
Digit
}
// types
enum Animal {
Cat,
Dog
You can’t perform that action at this time.