Skip to content

Instantly share code, notes, and snippets.

View kizmo04's full-sized avatar
๐ŸŽฏ
Focusing

Joonmo Kim kizmo04

๐ŸŽฏ
Focusing
View GitHub Profile
{
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,POST,OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Authorization"
},
"data": {
"agreeTermType": "AGREE_TERM",
"adult": false,
"persona": {
@kizmo04
kizmo04 / xxx.js
Last active August 13, 2024 05:22
alert(document.cookie);
console.log('cookie')
[
{
"id": null,
"name": null,
"username": "Bret",
"email": "[email protected]",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
@kizmo04
kizmo04 / get-npm-package-version
Created March 30, 2022 04:33 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@kizmo04
kizmo04 / simplebot.js
Created June 15, 2019 07:34
simple bot (@Joonmo Kim)
// =======================
// Derived from the work done by @makenai on the
// SumoBot Jr
// =======================
var five = require("johnny-five");
var keypress = require('keypress');
var RSTOPVAL = 93;
var LSTOPVAL = 90;
class Recipes:
"""
์žฌ๋ฃŒ๋ฅผ ํ™œ์šฉํ•ด ์กฐ๋ฆฌ๋ฒ•์— ๋งž๊ฒŒ ์š”๋ฆฌ๋ฅผ ๋งŒ๋“ค์ž
"""
description = '๋ ˆ์‹œํ”ผ๋ฅผ ํ™œ์šฉํ•ด ์Œ์‹์„ ๋งŒ๋“ค์ž'
prepare = '์†์„ ๊นจ๋—์ด ์”ผ์–ด์š”'
display = '์›ํ˜• ์ ‘์‹œ์— ๋‹ด์„๊ฒ๋‹ˆ๋‹ค'
def __init__(self, ingredient, food):
self.__ingredient = ingredient
@kizmo04
kizmo04 / class_pokemon.py
Created February 2, 2017 11:43
๊ณผ์ œ์‹ค์Šต์šฉ ํŒŒ์ด์ฌ
class Pokemon:
def __init__(self, mon_type, level, name):
'''
ํฌ์ผ“๋ชฌ ์ดˆ๊ธฐํ™” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค. ๋‹น์‹ ์˜ ํฌ์ผ“๋ชฌ์˜ ๊ธฐ๋ณธ์ ์ธ ์ •๋ณด๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
:param mon_type: ํฌ์ผ“๋ชฌ์˜ ์†์„ฑ
:param level: ํฌ์ผ“๋ชฌ์˜ ์ฒ˜์Œ ๋ ˆ๋ฒจ
:param name: ํฌ์ผ“๋ชฌ์˜ ์ด๋ฆ„
'''
self.mon_type = mon_type