Skip to content

Instantly share code, notes, and snippets.

View sigmadream's full-sized avatar
😆

Sangkon, Han sigmadream

😆
View GitHub Profile

HTTPS 인증서

  • certbot를 사용해서 인증서 발급
sudo certbot certonly --manual --preferred-challenges dns -d "*.codemetrics.app" -d "codemetrics.app"

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for *.codemetrics.app and codemetrics.app
@sigmadream
sigmadream / myAngular.html
Created November 8, 2024 17:44 — forked from faustinoaq/myAngular.html
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;
시군구별 1997.01 1997.01 1997.01 1997.02 1997.02 1997.02 1997.03 1997.03 1997.03 1997.04 1997.04 1997.04 1997.05 1997.05 1997.05 1997.06 1997.06 1997.06 1997.07 1997.07 1997.07 1997.08 1997.08 1997.08 1997.09 1997.09 1997.09 1997.10 1997.10 1997.10 1997.11 1997.11 1997.11 1997.12 1997.12 1997.12 1998.01 1998.01 1998.01 1998.02 1998.02 1998.02 1998.03 1998.03 1998.03 1998.04 1998.04 1998.04 1998.05 1998.05 1998.05 1998.06 1998.06 1998.06 1998.07 1998.07 1998.07 1998.08 1998.08 1998.08 1998.09 1998.09 1998.09 1998.10 1998.10 1998.10 1998.11 1998.11 1998.11 1998.12 1998.12 1998.12 1999.01 1999.01 1999.01 1999.02 1999.02 1999.02 1999.03 1999.03 1999.03 1999.04 1999.04 1999.04 1999.05 1999.05 1999.05 1999.06 1999.06 1999.06 1999.07 1999.07 1999.07 1999.08 1999.08 1999.08 1999.09 1999.09 1999.09 1999.10 1999.10 1999.10 1999.11 1999.11 1999.11 1999.12 1999.12 1999.12 2000.01 2000.01 2000.01 2000.02 2000.02 2000.02 2000.03 2000.03 2000.03 2000.04 2000.04 2000.04 2000.05 2000.05 2000.05 2000.06 2000.06 2000.06 2000.07 2
@sigmadream
sigmadream / pokemon.json
Created October 24, 2024 06:31 — forked from mrcsxsiq/pokemon.json
List of pokemon
[
{
"name": "Bulbasaur",
"id": "#001",
"imageurl": "https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png",
"xdescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"ydescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"height": "2' 04\"",
"category": "Seed",
"weight": "15.2 lbs",

Ubuntu에서 Flutter 개발 환경 구성 하는 방법

JDK 설치

$ sudo apt install default-jdk

Android Studio 설치

Haskell

module MyList where

data MyList a = Cons a (MyList a) 
                | MyNil deriving (Show, Eq)

myHead :: MyList a -> a
myHead l = case l of
        Cons a _ -> a
@sigmadream
sigmadream / linear.py
Last active January 21, 2024 16:01
공학 선형대수학에 사용된 코드
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
def back_substitution(U,Y):
'''
back_substitution(U,Y)
back_substitution은 역치환을 수행하여 UX = Y의 해를 구합니다.
U가 전체 순위인지 확인하기 위해 오류를 검사하지 않습니다.
from IPython.display import set_matplotlib_formats, display
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import mglearn
from mglearn import plot_helpers
from cycler import cycler
set_matplotlib_formats('pdf', 'png')
plt.rcParams['savefig.dpi'] = 300
$ sudo apt install postgresql postgresql-contrib
$ sudo service postgresql start
$ sudo -i -u postgres # postgres에 접속
# create user sd password 'qwer1234' superuser;
# create database sd owner sd;
$ sudo vi vi /etc/postgresql/14/main/pg_hba.conf => `peer`을 `md5`로 수정
$ sudo apt-get -y install postgresql-14-cron
$ sudo vi /etc/postgresql/14/main/postgresql.conf

파일 결합

텍스트 파일

import pandas as pd
from glob import glob

if __name__ == "__main__":
    files = glob("./data/**/**/*")
    df_list = []