Skip to content

Instantly share code, notes, and snippets.

View chitacan's full-sized avatar
:shipit:

Kyungyeol Kim (Bret) chitacan

:shipit:
View GitHub Profile
@sorentwo
sorentwo / start_oban_web.livemd
Created July 27, 2022 16:38
Single Page Oban Web

Single Page Oban Web

Application.put_env(:sample, Sample.Repo, database: "oban_dev")

Application.put_env(:phoenix, :json_library, Jason)

Application.put_env(:sample, Sample.Endpoint,
  http: [ip: {127, 0, 0, 1}, port: 5001],
  server: true,
@sindresorhus
sindresorhus / esm-package.md
Last active May 16, 2024 16:10
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@azlen
azlen / bulletpaths.js
Last active April 15, 2024 14:06
All Paths Lead to Roam
/*
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield)
* for the original concept which was part of their RoamGames submission
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/
*
*/
/* ======= OPTIONS ======== */
/* note: if you change these, reload the page to see the effect */
@cblavier
cblavier / ntest.ex
Created October 7, 2019 16:17
Parallel test runner
defmodule Mix.Tasks.NTest do
use Mix.Task
@wildcard "apps/*/test/**/*_test.exs"
def run([i, n | args]) do
{i, _} = Integer.parse(i)
{n, _} = Integer.parse(n)
test_paths =
@stubailo
stubailo / graphql-field-finder.js
Last active November 9, 2020 18:55
Find all GraphQL queries in your codebase that use a certain field
// This is a script that looks for usage of a specific field in GraphQL
// queries in your codebase.
//
// First, add a .graphqlconfig in your directory pointing to your schema
// Then, run the script with:
//
// node graphql-field-finder.js Field.name
//
// It will output a list of files and queries that contain the field you're
// looking for:
@HelloWorld017
HelloWorld017 / KAIST_courseRegistration.md
Last active March 14, 2024 14:26
카이스트 수강신청 뽀개기

카이스트 수강신청

NetFunnel

  • 트래픽을 관리하기 위한 하나의 솔루션, 흔히 보는 접속자 대기가 그것
  • https://traffic.kaist.ac.kr/ 에서 동작 중
    • 혹시 모르지만 서버 시간을 여기서 제공해준다.

GET https://traffic.kaist.ac.kr/ts.wseq

Global Params:

  • opcode: 실행할 명령어 이름 (Opcode Table 참고)
@aprxi
aprxi / Makefile
Last active July 26, 2021 07:13
Makefile_docker_20190214
# --------------------------------------------------------------------
# Copyright (c) 2019 LINKIT, The Netherlands. All Rights Reserved.
# Author(s): Anthony Potappel
#
# This software may be modified and distributed under the terms of the
# MIT license. See the LICENSE file for details.
# --------------------------------------------------------------------
# If you see pwd_unknown showing up, this is why. Re-calibrate your system.
PWD ?= pwd_unknown
@QuAzI
QuAzI / tmux-connect.sh
Last active August 16, 2021 17:03
Reverse shell for NAT users with tmux+socat+ssh
#!/bin/sh
#
# Run this script on relay_server to connect shared session
#
read -p "Port number: " relay_port
socat file:`tty`,raw,echo=0 tcp-connect:localhost:${relay_port}
@syntagmatic
syntagmatic / boids.gif
Last active December 10, 2019 20:31
D3 and Canvas
boids.gif
@nbremer
nbremer / .block
Last active January 1, 2020 08:38
Simplified Baby Names Chart - I
license: mit