Skip to content

Instantly share code, notes, and snippets.

@moon9342
moon9342 / instances_train2017_jq.json
Last active October 26, 2021 06:38
COCO instances_train2017_jq.json
{
"info": {
"description": "COCO 2017 Dataset",
"url": "http://cocodataset.org",
"version": "1.0",
"year": 2017,
"contributor": "COCO Consortium",
"date_created": "2017/09/01"
},
"licenses": [
@moon9342
moon9342 / index.html
Last active January 30, 2022 09:37
(Django) LectureSampleProject의 index.html
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>LectureSampleProject</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
@moon9342
moon9342 / base.html
Last active July 26, 2021 08:29
(Django) LectureSampleProject의 base.html
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<!-- JQuery CDN -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<!-- Bootstrap core CSS -->
@moon9342
moon9342 / multiple_numerical_derivative.py
Last active September 26, 2020 08:27
다변수 수치미분 코드
# 다변수 수치미분코드
import numpy as np
def numerical_derivative(f,x):
# f : 미분하려고 하는 다변수 함수
# x : 모든 변수를 포함하고 있는 numpy array(차원상관없음)
@moon9342
moon9342 / simple_numerical_derivative.py
Last active September 26, 2020 08:21
단변수 수치미분 코드
# 입력으로 들어오는 x에서 아주 미세하게 변화할때
# 함수 f는 얼마나 변하는지를 수치적으로 계산해서 return
def numerial_derivative(f,x):
# 입력인자 f는 미분하려는 함수
# 외부에서 def, lambda를 이용하여 정의
# 입력인자 x는 미분값을 알고자 하는 입력값.
@moon9342
moon9342 / package.json
Created June 24, 2020 15:37
GitHub Page 블로그용 package.json 파일
{
"name": "blog",
"description": "",
"version": "1.0.0",
"engines": {
"ghost": ">=1.2.0"
},
"license": "MIT",
"devDependencies": {
"autoprefixer": "^7.2.6",
@moon9342
moon9342 / author_archive.txt
Created June 24, 2020 09:13
GitHub Page 블로그용 author_archive.md 파일
---
layout: page
current: archive
title: All Tags
navigation: true
logo:
class: page-template
subclass: 'post page'
---
@moon9342
moon9342 / archive.txt
Last active June 24, 2020 09:13
GitHub Page 블로그용 archive.md 파일
---
layout: page
current: archive
title: All Posts
navigation: true
logo:
class: page-template
subclass: 'post page'
---
@moon9342
moon9342 / gulpfile.js
Last active June 9, 2020 07:02
GitHub Page 블로그용 gulpfile.js 예시
var gulp = require('gulp');
// gulp plugins and utils
var gutil = require('gulp-util');
var postcss = require('gulp-postcss');
var sourcemaps = require('gulp-sourcemaps');
var imagemin = require('gulp-imagemin');
// postcss plugins
var autoprefixer = require('autoprefixer');
@moon9342
moon9342 / custom.css
Created June 9, 2020 06:43
GitHub Page 블로그용 assets/css/custom.css 파일
/* Search 결과화면을 위한 CSS 설정 시작 */
ul.mylist li, ol.mylist li {
padding: 5px 0px 5px 5px;
margin-bottom: 5px;
border-bottom: 1px solid #efefef;
font-size: 12px;
}
ul.mylist li:last-child,
ol.mylist li:last-child {