Skip to content

Instantly share code, notes, and snippets.

@jinhoyim
jinhoyim / list-style-bullet-color.css
Created October 8, 2016 11:44
List Style Bullet Color
/* optional */
* { margin: 0; padding: 0; border: 0 none; font-size: 100%; }
body { padding: 10em; background: #FFF; color: #333; font: 14px/1.5 sans-serif; }
/* unordered lists */
ul {
margin: 0 0 1.5em;
padding: 0;
list-style: none;
}
@jinhoyim
jinhoyim / LinkedList.cs
Created November 17, 2016 16:00
Linked List(C#)
public class LinkedList<T>
{
public class Node
{
public T data = default(T);
public Node next;
public Node()
{
@jinhoyim
jinhoyim / s75-day1-practice.html
Created March 11, 2018 09:35
CodeSpitz-S75-Day1-Practice
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CodePitz75-1</title>
</head>
<body>
<section id="data"></section>
@jinhoyim
jinhoyim / Github.js
Created March 18, 2018 15:26
s75-day2-practice1
const Github = class {
constructor(id, repo) {
this._base = `https://api.github.com/repos/${id}/${repo}/contents/`;
}
load(path) {
const id = 'callback' + Github._id++;
const f = Github[id] = ({ data: { content } }) => {
delete Github[id];
document.head.removeChild(s);
this._parser.parse(content);
@jinhoyim
jinhoyim / Github.js
Created March 18, 2018 15:32
s75-day2-practice2
const Github = class {
constructor(id, repo) {
this._base = `https://api.github.com/repos/${id}/${repo}/contents/`;
}
load(path) {
const id = 'callback' + Github._id++;
const f = Github[id] = ({ data: { content } }) => {
delete Github[id];
document.head.removeChild(s);
this._parser[0](content, ...this._parser[1]);
@jinhoyim
jinhoyim / multiplication-table.js
Created September 13, 2018 09:02
s78-day2-multiplication-table
const generator = function* (i, j) {
for (let left = 1; left <= j; left++) {
for (let right = 1; right <= i; right++) {
yield [left, right, left * right];
}
}
};
for (const [i, j, k] of generator(9, 9)) {
console.log(`${i} x ${j} = ${k}`);
@jinhoyim
jinhoyim / todo.js
Created September 30, 2018 13:48
s78-day5
const err = message => {
throw message;
};
const el = el => document.createElement(el);
const Task = class {
constructor(title) {
this.title = title;
this.isComplete = false;
@jinhoyim
jinhoyim / Renderer.js
Created November 13, 2018 16:52
s79-day1
const Renderer = class {
async render(data) {
if (!(data instanceof Data)) throw 'invalid data type';
const [title, header, items] = await data.getData();
this._title = title;
this._header = header;
this._items = items;
this._render();
}
_render() {
@jinhoyim
jinhoyim / index.html
Created February 17, 2019 16:09
한 붓 그리기 S80-Day1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<style>
.block {
width: 80px;
@jinhoyim
jinhoyim / target.xml
Created May 8, 2019 05:10 — forked from sliekens/target.xml
A list of all <Target /> tags that ship with MSBuild / Visual Studio
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target>
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeBuild" />
<Target Name="AfterBuild" />
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target>
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeRebuild" />
<Target Name="AfterRebuild" />
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" />