Skip to content

Instantly share code, notes, and snippets.

View domuk-k's full-sized avatar
😃

dongwook.kim domuk-k

😃
View GitHub Profile
@domuk-k
domuk-k / crossentropyloss-0910.ipynb
Last active September 10, 2024 07:08
crossentropyloss-0910.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import { parse , preprocess } from 'svelte/compiler';
import sveltePreprocess from 'svelte-preprocess';
import { typescript, scss, globalStyle } from 'svelte-preprocess';
async function parseSvelte(source : string) {
const preprocessedResult = await preprocess( source, [
typescript({
"compilerOptions": {
"moduleResolution": "node",
@domuk-k
domuk-k / machine.js
Created July 14, 2021 17:25
Generated by XState Viz: https://xstate.js.org/viz
const spaceHeater = Machine({
id: 'spaceHeater',
initial: 'poweredOff',
states: {
poweredOff: {
on: {TOGGLE_POWER: 'poweredOn.hist'},
},
poweredOn: {
on: {TOGGLE_POWER: 'poweredOff'},
initial: 'low',
@domuk-k
domuk-k / machine.js
Last active July 12, 2021 12:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@domuk-k
domuk-k / what-forces-layout.md
Created December 24, 2020 07:12 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@domuk-k
domuk-k / tmux command basic.md
Created December 1, 2020 11:27 — forked from LeoHeo/tmux command basic.md
기본적인 tmux 사용법

Tmux Command

mac 기준으로 Tmux 설치부터 기본적인 명령어를 알아가고자 한다.
Tutorial용으로 참고할만한 블로그는 아래와같다.
Tmux-Part1 Tmux-Part2

Install