Skip to content

Instantly share code, notes, and snippets.

View ryuheechul's full-sized avatar
💻
hacking on projects!

Heechul Ryu ryuheechul

💻
hacking on projects!
View GitHub Profile
@ryuheechul
ryuheechul / editor-buddies.md
Last active January 27, 2020 21:42
my editor buddies
@ryuheechul
ryuheechul / Kakoune-mimicking.md
Last active February 2, 2020 14:53
Kakoune keys `w`, `e` and `b` clone attempts

v1

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

function! s:selectwordbackward() abort 
  call search('\S', 'b')
 normal! vb
@ryuheechul
ryuheechul / prometheus-config.yaml
Last active August 12, 2021 17:07
scraping URL with prometheus
# in case you want to scrape 'https://my-url.com:9999/metrics?a=1&b=2'
- job_name: your-job-name
scheme: https
static_configs:
- targets: ['my-url.com:9999']
metrics_path: /metrics
params:
a: ['1']
b: ['2']
@ryuheechul
ryuheechul / pipe-first.md
Last active July 26, 2021 12:08
My ReasonML gists
/* After learning how to do testing for rxjs6 from here, https://medium.com/@kevinkreuzer/marble-testing-with-rxjs-testing-utils-3ae36ac3346a.
* I'm saving/sharing this gist to remember and understand again quickly in the future.
* I've altered some parts in the code to work with Jest and Javascript and CommonJS.
* In the post originally it was for Typescript and ES modules and Other(?) testing framework.
*/
const { TestScheduler } = require("rxjs/testing");
const { Observable } = require("rxjs");
const { filter, map } = require("rxjs/operators");
@ryuheechul
ryuheechul / 0-leetcode-solutions.md
Last active June 15, 2020 14:59
My Leetcode solutions

June 2020 Challenges

date challenge
6th Queue Reconstruction by Height
7th Coin Change 2
8th Power of Two
12th Insert Delete GetRandom O(1)
@ryuheechul
ryuheechul / lastweek.md
Created July 3, 2020 22:05
My Jira query to search what I did last week
watcher = currentUser() AND lastviewed >= startOfWeek(-1w) ORDER BY lastViewed DESC

I named this query, What I possibly worked on last week

The query actually searches for issues that I viewed so I still filter some manually but it's quite close to what I actually did because usually I mostly view what I work on not other issues that much.

@ryuheechul
ryuheechul / 00-triangle-readme.md
Last active July 26, 2020 19:14
About Exercism Rust Triangle

This is about https://exercism.io/tracks/rust/exercises/triangle

Non generic solution wasn't so hard.

at least compare to the generic one that I tried to make afterawards

But I sturuggled quite a bit with making it a generic solution.

I wasn't super familiar with (Rust concepts of) generic nor lifetime.

First attempt was making the validate_triangle generic, which you can see it here

@ryuheechul
ryuheechul / my-python-notes.md
Last active May 19, 2021 16:47
Python tips to myself

Python tips to myself

Let me be honest. I'm not a big fan of Python. Wait a minute, I know it's everywhere and it's loved by many people. It's just not for me though. It doesn't agree with me a lot. I just never cared too much of it. It simply wouldn't be my first choice of programming language.

However sometimes, I simply can't avoid using packages (thanks for all the people who worked on them thought!) and maintaining python code/projects.

So I decided to keep track of things that makes me confused many times (because I don't get to work with python not so often, too)

@ryuheechul
ryuheechul / every-case.js
Created January 6, 2021 22:17
get every possible case from ranges
// get every possible case from ranges
const ranges = {
a: [1, 2, 3],
b: [4, 5],
c: [6, 7, 8],
};
console.log('ranges:');
console.log(ranges);