Skip to content

Instantly share code, notes, and snippets.

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
@gerald-kim
gerald-kim / estimate.py
Last active September 7, 2023 06:19
프로젝트 종료일 예측
import requests
from requests.auth import HTTPBasicAuth
import pandas as pd
from datetime import datetime, timedelta
import numpy as np
import warnings
warnings.filterwarnings("ignore")
# Authentication for Jira API
USERNAME = "" # Put your Jira username here.
@gerald-kim
gerald-kim / sim.py
Created April 10, 2023 07:17
프로젝트 종료일 monte carlo simulation
import random
import numpy as np
data = [
[1, 100, 2, 10],
[2, 108, 10, 9],
[3, 109, 5, 8],
[4, 106, 2, 11]
]
@gerald-kim
gerald-kim / co2.ino
Last active December 21, 2019 00:01
home air
#include "MHZ19.h" // include main library
#include "SoftwareSerial.h"
#include "EspMQTTClient.h"
#define RX_PIN D6 // Rx pin which the MHZ19 Tx pin is attached to
#define TX_PIN D7 // Tx pin which the MHZ19 Rx pin is attached to
#define BAUDRATE 9600
char* ID = "sensor_1";
String TOPIC = "sensors/sensor_1";
(defadvice intero-repl-load (after intero-repl-after activate)
(interactive "P")
(if (eq evil-state 'insert)
(evil-force-normal-state))
(switch-to-buffer-other-window (intero-repl-buffer prompt-options t)))
@gerald-kim
gerald-kim / Info.plist
Created May 25, 2017 13:15
신한 은행 EZPlus 영문상위에서 한글 파일 덤프, 디폴트 로케일 한글로
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleName</key>
<string>ezplus</string>
<key>CFBundleIdentifier</key>
<string>com.initech.shb.app.SHBForMacApp</string>
<key>CFBundleVersion</key>
<string>100.0</string>
@gerald-kim
gerald-kim / agile.recipe
Last active June 29, 2023 08:32
Agile blog recipe for Calibre
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
class AgileRecipe(BasicNewsRecipe):
title = u'Agile Blog'
__author__ = 'Gerald Kim'
publisher = 'agile.egloos.com'
category = 'info'
@gerald-kim
gerald-kim / GIF-Screencast-OSX.md
Created March 21, 2016 00:57 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@gerald-kim
gerald-kim / generate_dev_cert.sh
Created March 21, 2016 00:49
*.dev ssl cert generation script
#! /usr/bin/env sh
FILE="test_require_sudo"
SUDO=`touch $FILE 2>/dev/null && rm $FILE || echo "sudo"`
if [ ! -e dev.key ]; then
$SUDO openssl genrsa -out dev.key 2048
fi
if [ ! -e dev.csr ]; then
require 'goliath'
class Echo < Goliath::API
use Goliath::Rack::Params
use Goliath::Rack::Validation::RequiredParam, {:key => 'delay'}
def response(env)
EM::Synchrony.sleep params['delay']
[200, {}, params['delay']]
end