Skip to content

Instantly share code, notes, and snippets.

😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
Block or report user

Report or block minhoryang

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
View poc.scala
/*
scalaVersion := "2.12.8"
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-Ypartial-unification"
)
libraryDependencies += "org.typelevel" %% "cats-core" % "1.0.0"
libraryDependencies += "org.typelevel" %% "cats-effect" % "1.3.1"
libraryDependencies += "org.typelevel" %% "cats-effect-laws" % "1.3.1" % "test"
*/
View *PreloadableWorker.md

PreloadableWorker

There's no way to <link rel=preload> a Web Worker. This fixes that.

npm i -S gist:developit/567dde2346d785b2628224fddbf6783c

<!-- workers are now just a normal script preload: -->
<link rel=preload href=/path/to/worker.js as=script crossorigin>
@alexellis
alexellis / GUIDE.md
Last active Aug 18, 2019
Customise OpenFaaS helm chart for Raspberry Pi / ARM
View GUIDE.md

Guide

You can use the OpenFaaS helm chart to generate custom YAML files for your OpenFaaS installation on ARMHF and ARM64.

Why? tiller is not available for ARM so we cannot customize the chart that way. So instead we ship some defaults for the community which you can then tweak as you see fit.

But what might you want to change?

  • httpProbe - this is a much faster way to check functions are healthy than the default execProbe
@huewu
huewu / gist:ed8bf1485864e3ca1768740c740e19f6
Created Apr 17, 2019
Get a Widevine DEVICE UNIQUE ID by using MediaDrm API in Android (28+)
View gist:ed8bf1485864e3ca1768740c740e19f6
val WIDEVINE_UUID = UUID(-0x121074568629b532L, -0x5c37d8232ae2de13L)
val wvDrm = try {
MediaDrm(WIDEVINE_UUID)
} catch (e: UnsupportedSchemeException) {
//WIDEVINE is not available
null
}
wvDrm!!.apply {
@dahlia
dahlia / vscode.md
Last active Aug 14, 2019
Libplanet 개발 환경 설정
View vscode.md

Libplanet 개발 환경 설정 (VS Code)

[Libplanet]은 널리 쓰이는 게임 엔진인 Unity를 염두에 두어, C#으로 작성되었습니다. 따라서 C# 개발 환경이 필요합니다. 다행히 .NET은 요 몇 년 사이 여러 플랫폼에서 두루 개발할 수 있는 여건이 마련되었습니다. 이 문서는 Linux, macOS, Windows 모두에서 Libplanet 개발을 하는 데에 필요한 환경을 설정하고 빌드하는 방법을 설명합니다.

따라하면서 잘 안되는 게 있으시면 [저희 Discord 서버][1]에 있는

@pmalek
pmalek / shared_tmux.sh
Created Feb 9, 2018
Tmux read only shared session setup
View shared_tmux.sh
#/bin/bash
SHARED_SESSION_FILE=/tmp/shared_tmux_session
set -e
tmux -2 -S ${SHARED_SESSION_FILE} new -s guest -d
sudo chown $(whoami) ${SHARED_SESSION_FILE}
sudo chmod 777 ${SHARED_SESSION_FILE}
View init_for_mac.md

Init

brew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

git

View simple_cnn_keras_tensorflow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View apt.conf
# Choose only one
# For Tor transparent proxy
Acquire::BlockDotOnion "false";
# Fox Tor SOCKS proxy
Acquire::tor::proxy "socks5h://192.168.82.1:9050";
You can’t perform that action at this time.