Skip to content

Instantly share code, notes, and snippets.

@swcho
swcho / devlog.md
Last active January 14, 2024 02:48
[20-03-4주] 지극히 주관적인 devlog
@swcho
swcho / devlog-20-01-w5.md
Last active January 30, 2020 03:59
[19-01-5주] 지극히 주관적인 devlog
@swcho
swcho / devlog.md
Created December 12, 2019 02:02
[19-12-2주] 지극히 주관적인 devlog
@swcho
swcho / devlog.md
Created November 14, 2019 02:07
[19-11-2주] 지극히 주관적인 devlog
@swcho
swcho / Makefile
Created September 10, 2019 02:44
Makefile For Docker Build
NAME=your-image
PORT=8888
CONTEXT=.
include common.mk
@swcho
swcho / exex-sh.ts
Created May 17, 2018 05:52
Please Use TypeScript For Shell Programming
import cp = require('child_process');
import chalk from 'chalk';
import readline = require('readline');
import { SpawnOptions } from 'child_process';
let sh,
cmd,
defSpawnOptions = { stdio: 'inherit' };
/**
@swcho
swcho / controllable.ts
Created April 10, 2018 06:58
Controllable
import * as React from 'react';
import cloneDeep from 'lodash-es/cloneDeep';
// import isEqual from 'lodash-es/isEqual';
export abstract class Controllable<P, S>
extends React.Component<Controllable.Props<P>, Controllable.State<P, S>> {
constructor(props, private options: Controllable.Options<P>) {
super(props);
@swcho
swcho / jest.config.js
Created April 10, 2018 06:42
Just Jest Config
module.exports = {
verbose: true,
"moduleDirectories": ["node_modules", "src"],
globals: {
"__TS_CONFIG__": {
"module": "es2016",
"allowjs": true,
},
"ts-jest": {
#!/bin/bash
VM_NAME=$1
if [ -z "$VM_NAME"]
then
# https://stackoverflow.com/questions/9449417/how-do-i-assign-the-output-of-a-command-into-an-array
IFS=$'\n'
VM_NAMES=( $(VBoxManage list vms | sed -En 's/"(.*)".*/\1/p') )
unset IFS
@swcho
swcho / dialog.css
Last active October 18, 2017 06:05
CSS For Modal Dialog
@keyframes :local(fadeIn) {
0% {
background-color: rgba(0, 0, 0, 0);
}
100% {
background-color: rgba(0, 0, 0, 0.3);
}
}