Skip to content

Instantly share code, notes, and snippets.

View JoDMsoluth's full-sized avatar
👋
Hello!

jodmsoluth JoDMsoluth

👋
Hello!
View GitHub Profile
@panarch
panarch / pick_2_items.js
Last active March 13, 2020 21:12
[JavaScript] Pick k items over size n array (nCk) - using Generator and flatMap
const items = ['Foo', 'Bar', 'Dog', 'Cat', 'Tea'];
const indexes = [0, 1, 2, 3, 4];
console.log('');
console.log('-------------------');
console.log('Pick 2 items using flatMap');
const picked = indexes.flatMap(i =>
indexes
.slice(i + 1)
.map(j => [items[i], items[j]])
@luncliff
luncliff / cmake-tutorial.md
Last active July 16, 2024 13:09
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@onetdev
onetdev / example.html
Last active December 12, 2022 19:15
VideoJS + XHR mod : Adding XHR interceptor
<link media="all" rel="stylesheet" href="https://unpkg.com/video.js@7.1.0/dist/video-js.css">
<script src="https://unpkg.com/video.js@7.1.0/dist/video.js"></script>
<video-js id="player">
<source src="//video/index.m3u8" type="application/x-mpegURL" />
</video-js>
<script>
var player = videojs("player");
var prefix = "key://";
var urlTpl = "https://domain.com/path/{key}";