Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Jul 12, 2020
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Sunday, July 12, 2020, 11:25:55 PM
Loaded mods:
RimWaldoCoreKorean_1.1(AuthorName.KoreanTestMod.Specific)[mv:20.1.15]: LanguageWorker(2.1.6)
[RKTM] Mod(DesTiNy.RKTM.Mod): (no assemblies)
Harmony(brrainz.harmony): 0Harmony(2.0.1), HarmonyMod(1.0.2)
Core(Ludeon.RimWorld): (no assemblies)
Stack XXL(Indeed.StackXXL)[ov:1.0.0]: $HugsLibChecker(0.5.0)
HugsLib(UnlimitedHugs.HugsLib)[ov:7.2.1]: 0Harmony(av:2.0.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:7.2.1)
Achtung!(brrainz.achtung)[mv:3.0.1.0]: 0Harmony(av:2.0.1,fv:1.2.0.1), 0MultiplayerAPI(av:0.1.0,fv:0.1.0), AchtungMod(3.0.1)
Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.8.4)
View logicbelief-master-puwork_.gitignore
*/.ipynb_checkpoints/*
.ipynb_checkpoints/*
db
db8
sendsms.py
__pycache__/*
nohup.out
venv
*.swp
buy
View gist:b5871ad75266c462bdd510b1087c1f28
32237 /nix/store/4fw7nziajnq4r9shx0z02l2d5r5zymgp-traefik-2.2.4/bin
32238 /nix/store/4fw7nziajnq4r9shx0z02l2d5r5zymgp-traefik-2.2.4
View gist:62167d120c01a1c59c7080ad7a1da5b8
/nix/store/4fw7nziajnq4r9shx0z02l2d5r5zymgp-traefik-2.2.4
└── bin
└── traefik
1 directory, 1 file
@manufonn
manufonn / PY0101EN-4-2-WriteFile.ipynb
Created Jul 12, 2020
Created on Skills Network Labs
View PY0101EN-4-2-WriteFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaeldlfx
michaeldlfx / dockerReady.sh
Created Jul 12, 2020
[MacOS] Start docker if daemon is not running
View dockerReady.sh
# This snippet works well as part of a .bash_profile file.
# It's based on this StackOverflow post: https://stackoverflow.com/a/48843074/11488212
# This docker daemon is a resource hog, and doesn't always need to be running imho.
# I predent the below declared alias "dr" to all my docker aliases to start up the docker daemon if it's not already running.
# This way, I don't get the annoying 'ERROR: Couldn't connect to Docker daemon. You might need to start Docker' message anymore.
# Example usage: "alias dcu="dr ; docker-compose up"
alias dr="dockerReady"
@hudaprs
hudaprs / auth.js
Created Jul 12, 2020
Medium - NodeJS - Make Full Authentication API - With JWT, MongoDB & JWT - Full auth route
View auth.js
const router = require("express").Router();
// Controllers
const {
register,
verify,
login,
resendVerification,
getAuthenticatedUser,
} = require("../../app/controllers/api/AuthController");
View openWeatherMapAPI.js
navigator.geolocation.getCurrentPosition(position => { // 현재 위치 정보 가져오기
latitude = position.coords.latitude;
longtitude = position.coords.longitude;
fetch(`https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longtitude}&appid=2b209244e53928eb8ee5cfbf7021a81f&units=metric`)
.then(function(response) { // fetch 이용하여 API와 통신
return response.json();
})
.then(function(json) {
console.log(json);
const location = document.querySelector('#location'); // HTML에 보여주기
View Module.kt
class Module {
val declarationRegistry: MutableMap<KClass<*>, Declaration<Any>> = ConcurrentHashMap()
inline fun <reified T: Any> factory(noinline declaration: Declaration<T>) {
declarationRegistry[T::class] = declaration
}
operator fun plus(module: Module) = listOf(module, this)
}
View PY0101EN-4-1-ReadFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.