Skip to content

Instantly share code, notes, and snippets.

View ChangJoo-Park's full-sized avatar
:octocat:
๐ŸŒฑ

ChangJoo Park(๋ฐ•์ฐฝ์ฃผ) ChangJoo-Park

:octocat:
๐ŸŒฑ
View GitHub Profile
@josephan
josephan / setup_tailwind_in_phoenix.md
Last active August 8, 2023 05:50
Add Tailwind CSS to an Elixir/Phoenix Project with PurgeCSS
import 'dart:math' as math;
import 'package:flutter/material.dart';
void main() => runApp(TestApp());
class TestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
@slmingol
slmingol / 90f3831f-k8s-objects2-timeline-1024x800.png
Last active October 12, 2021 01:16
Kubernetes & OpenShift URLs
90f3831f-k8s-objects2-timeline-1024x800.png
@NaStillmatic
NaStillmatic / Instruments.md
Created June 6, 2018 14:51
๋ชจ๋“  iOS ๊ฐœ๋ฐœ์ž๊ฐ€ Instruments์—์„œํ•ด์•ผ ํ•  ์ผ

๋ชจ๋“  iOS ๊ฐœ๋ฐœ์ž๊ฐ€ Instruments์—์„œํ•ด์•ผ ํ•  ์ผ

Introduction

๋ฐฉ๊ธˆ ๋ฐ˜์ง ๋ฐ˜์ง ๋น›๋‚˜๋Š” ์ƒˆ๋กœ์šด iOS ํ”„๋กœ์ ํŠธ์— ๊ฐœ๋ฐœ์„ ๋งˆ๋ฌด๋ฆฌํ•˜๊ณ  ์•ฑ์ด ์ถฉ๋Œํ•˜์ง€ ์•Š๊ณ  ํ…Œ์ŠคํŠธ ์žฅ์น˜์—์„œ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•˜์ง€๋งŒ ์ œ์ถœํ•  ์ค€๋น„๊ฐ€๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด ์ตœ์„ ์„ ๋‹ค ํ–ˆ์Šต๋‹ˆ๊นŒ? Instruments์—์„œ ํ”„๋กœํŒŒ์ผ ๋ง์„ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด ๋Œ€๋‹ต์€ ์•„๋งˆ๋„ ๋ถ€์ •์ž…๋‹ˆ๋‹ค. ์ถฉ๋Œ์ด ๋ฐœ์ƒํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ ํ•ด์„œ ๊ทธ๊ฒƒ์ด ์‚ฌ์šฉ์ž์˜ ๊ธฐ๊ธฐ์—์„œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž‘๋™ํ•˜๊ณ  ์ž‘๋™ํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.

Xcode์—๋Š” ๋ชจ๋“  ์ข…๋ฅ˜์˜ ๋‹ค์–‘ํ•œ ์ธก์ • ํ•ญ๋ชฉ์„ ์‚ฌ์šฉํ•˜์—ฌ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ํ”„๋กœํŒŒ์ผ ๋งํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•  ์ˆ˜์žˆ๋Š” Instruments๋ผ๋Š” ์„ฑ๋Šฅ ํŠœ๋‹ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์ด ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—๋Š” CPU ์‚ฌ์šฉ๋Ÿ‰, ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋Ÿ‰, ๋ˆ„์ถœ, ํŒŒ์ผ / ๋„คํŠธ์›Œํฌ ํ™œ๋™ ๋ฐ ์—๋„ˆ์ง€ ์‚ฌ์šฉ๋Ÿ‰์„ ๊ฒ€์‚ฌํ•˜๋Š” ๋„๊ตฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. Xcode์—์„œ ์•ฑ ํ”„๋กœํŒŒ์ผ ๋ง์„ ์‹œ์ž‘ํ•˜๋Š” ๊ฒƒ์€ ์ •๋ง ์‰ฝ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํ”„๋กœํŒŒ์ผ ๋ง์‹œ ํ‘œ์‹œ๋˜๋Š” ๋‚ด์šฉ์„ ์ดํ•ดํ•˜๋Š” ๊ฒƒ์ด ์‰ฝ์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์ผ๋ถ€ ๊ฐœ๋ฐœ์ž๋Š”์ด ๋„๊ตฌ๋ฅผ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•  ์ˆ˜ ์—†๊ฒŒ๋ฉ๋‹ˆ๋‹ค.

compile group: 'com.amazonaws', name: 'aws-java-sdk-ses', version: "${awsSesVersion}"

Language basics

let is just an expression and akin to a function!

let greeting = hello
let greeting = "hi"; /* shadowed */
let scoped = {
@xeoncross
xeoncross / logger.js
Last active April 21, 2024 00:26
Expressjs Server Monitoring with Winston + Morgan
const { createLogger, format, transports } = require("winston");
// https://github.com/winstonjs/winston#logging
// { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5 }
const level = process.env.LOG_LEVEL || "debug";
function formatParams(info) {
const { timestamp, level, message, ...args } = info;
const ts = timestamp.slice(0, 19).replace("T", " ");
@Elevista
Elevista / vueLodashArray.js
Last active December 19, 2017 16:36
lodash๋กœ vue ๋ชจ๋ธ์˜ ๋ฐฐ์—ด์„ ๋‹ค๋ฃฐ๋•Œ ๋ฎคํ…Œ์ด์…˜ ๊ฐ์ง€๋ฅผ ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ๊ธฐ๋ณธ ํ•จ์ˆ˜๋ฅผ ๋ž˜ํ•‘ํ•ฉ๋‹ˆ๋‹ค.
let lodash = _.runInContext()
export let wrapLodashArrForVue = _(['pull', 'pullAll', 'pullAllBy', 'pullAllWith', 'pullAt', 'remove'])
.map(fnName => {
let fn = lodash[fnName]
return [
fnName,
function (v, โ€ฆargs) {
let ret = fn(v, โ€ฆargs)
if (v instanceof Array) v.push()
return ret
@Shourai
Shourai / namecheap SSL.md
Created October 21, 2017 12:49
Letsencrypt SSL certificate with namecheap hosting

source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/

The โ€œPositive SSLโ€ certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesnโ€™t offer auto installation of free letโ€™s encrypt certificates, even though, they are saying โ€œNamecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.โ€

Let me show you what it needs to be done in order to โ€œencrypt nearly all web trafficโ€.

First, not required but itโ€™s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.