Skip to content

Instantly share code, notes, and snippets.

View nameofSEOKWONHONG's full-sized avatar
🐹
working harder, faster

SEOKWON HONG nameofSEOKWONHONG

🐹
working harder, faster
View GitHub Profile
@nameofSEOKWONHONG
nameofSEOKWONHONG / mapper.ts
Last active July 6, 2022 14:46
typescript mapper
import { AsyncHook } from "async_hooks";
import { Person } from "./user";
export class Mapper {
constructor() {
}
static mapped<T, T2>(src:T, type:{new():T2}):T2 {
const srcNames = Object.getOwnPropertyNames(src);
// See https://aka.ms/new-console-template for more information
Enumerable.Range(2021, 10).ToList().ForEach(year => {
Console.WriteLine($"==================={year}년=================");
Enumerable.Range(1, 12).ToList().ForEach(month => {
Console.WriteLine($"============={month}월==============");
var sday = new DateTime(year, month, 1);
var eday = sday.AddMonths(1).AddDays(-1);
int correctCnt = 0;
for(var i=eday.AddDays(-7); i<=eday; i = i.AddDays(1)) {
Hi, guys.
This article describes the CounterState implementation in react and blazor.
```js
//react basic code abount counterstate
import { Action, Reducer } from 'redux';
// -----------------
// STATE - This defines the type of data maintained in the Redux store.
using System.Text;
using System.Threading;
namespace XLog.Formatters
{
internal static class FixedStringBuilderPool
{
private const int BuildersCount = 10;
private const int BuilderLength = 1000;
private static readonly StringBuilder[] Builders;
https://webcache.googleusercontent.com/search?q=cache:ZzhsKHSPpRIJ:https://edykim.com/ko/post/the-service-locator-is-an-antipattern/+&cd=2&hl=ko&ct=clnk&gl=kr

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점

@nameofSEOKWONHONG
nameofSEOKWONHONG / MsSqlRecipe.cs
Created January 17, 2019 01:00 — forked from jcouture100/MsSqlRecipe.cs
ScintillaNET MSSQL Recipe
// Reset the styles
scintilla.StyleResetDefault();
scintilla.Styles[Style.Default].Font = "Courier New";
scintilla.Styles[Style.Default].Size = 10;
scintilla.StyleClearAll();
// Set the SQL Lexer
scintilla.Lexer = Lexer.Sql;
// Show line numbers