Skip to content

Instantly share code, notes, and snippets.

View vreality64's full-sized avatar
๐Ÿค 
Happy

Ian Park vreality64

๐Ÿค 
Happy
View GitHub Profile
@vreality64
vreality64 / query example
Last active December 28, 2015 01:08
SoundPancake Front-end Query API and Example (Request and Expected Response)
1. Editor
- request
{
midiObject: {
title: string,
description: string,
artist: string,
playtime: integer,
owner: string,
albumArtName: string,
@vreality64
vreality64 / modeling
Last active October 7, 2016 02:10
Data Modeling of Sound Pancake
MidiObject: {
header : Object ( Midi Meta Data ),
tracks : List ( Event List )
}
Music: {
id : string ( DB Unique ID = userid + DBid ),
owner : string ( FB first name + last name ),
artist : string ( User Name in SoundPancake = midi file uploader name ),
title : string ( Composition Name ),
@vreality64
vreality64 / grunt-module-list.md
Last active August 29, 2015 13:57
grunt module list generated by generator-angular

Grunt Module List (36s)

it is added to package.json by generator yeoman. All module is in devDependencies. The number of added module is "36".

grunt module

  1. grunt
@vreality64
vreality64 / data_table.md
Last active May 15, 2018 11:35
Usage of X-Editable Form with Input Mask, Formatting (Accounting.js)

Data Table Usage

Basic Usage

Data Table is Javascript Wrapper Library of HTML element .

var table = $(id).dataTable({
  option
});
@vreality64
vreality64 / think.md
Last active August 29, 2015 14:00
Thinking about Data Table customizing td in the tbody

Data Table ์ปค์Šคํ„ฐ๋งˆ์ด์ง• ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ƒ๊ฐํ•œ ๋ฐฉ์•ˆ๋“ค์„ ์จ๋†“์„ ์˜ˆ์ •

x row๋ฅผ 1 row๋กœ ์ทจ๊ธ‰

  • ์ •๋ ฌ์„ ๊ณ ๋ ค๋˜์ง€ ์•Š์Œ
  • ๋ฐ์ดํ„ฐ๋ฅผ wrapping ํ•ด์„œ ๋„ฃ๋Š” ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— ๊ฒ€์ƒ‰ํ•˜๊ธฐ ์œ„ํ•ด์„  unwrapping ์ด ํ•„์š”
  • x row๋ฅผ 1 row๋กœ ์ทจ๊ธ‰ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ํ•˜๋‚˜์˜ row์— ๋Œ€ํ•ด์„œ๋งŒ ์ •๋ ฌ์„ ์ ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.
<div class="wrapper">
 
@vreality64
vreality64 / think.md
Last active August 29, 2015 14:01
Auto-open Next Field ๊ตฌํ˜„ ๋ฐฉ์•ˆ

์–ด๋–ป๊ฒŒ ๊ตฌํ˜„ํ• ๊นŒ?

ํ•„์š”ํ•œ ์ƒํ™ฉ ์ •๋ฆฌ

  • static table with one element per row ( 1:1 )
  • static table with multiple element per row ( n:1 )
  • dynamic table with multiple element per row ( n:n )

Priority (exptected %)

  • 2 (50%)
@vreality64
vreality64 / not_recognized.js
Last active August 29, 2015 14:27
AngularJS and scope.$apply example
function Ctrl($scope) {
$scope.message = "Waiting 2000ms for update";
setTimeout(function () {
$scope.message = "Timeout called!";
// AngularJS unaware of update to $scope
}, 2000);
}
@vreality64
vreality64 / recognized.js
Created August 15, 2015 05:05
AngularJS and scope.$apply example
function Ctrl($scope) {
$scope.message = "Waiting 2000ms for update";
setTimeout(function () {
$scope.$apply(function () { // wrapping using $scope.$apply
$scope.message = "Timeout called!";
});
}, 2000);
}
@vreality64
vreality64 / graduation-report.md
Last active April 21, 2024 13:39
์ค‘์•™๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๋ถ€ ํ•™์‚ฌ ์กธ์—…๋…ผ๋ฌธ - ๋ฐ•์„ฑํ˜„

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ •์  ๋ถ„์„์˜ ํ•œ๊ณ„์™€ ๋ฐœ์ „ ๋ฐฉํ–ฅ

keyword: ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ, ์ •์  ๋ถ„์„, ๋™์  ์–ธ์–ด, ์ฝ”๋“œ ์ตœ์ ํ™”

์„œ๋ก 

1995๋…„ ๋‹น์‹œ๋Š” ์ปดํ“จํ„ฐ ๋ฆฌ์†Œ์Šค๊ฐ€ ๋น„์ŒŒ์„ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋„คํŠธ์›Œํฌ ์ธํ”„๋ผ์˜ ๋‚ฎ์€ ๋Œ€์—ญํญ ๋“ฑ ๋‹ค์–‘ํ•œ ๋ฌธ์ œ๋“ค๋กœ ์ธํ•˜์—ฌ ๋Œ€๋ถ€๋ถ„์˜ ์ž‘์—…์„ ์„œ๋ฒ„์—์„œ ์ฒ˜๋ฆฌํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‹ค ์ปดํ“จํ„ฐ ๋ฆฌ์†Œ์Šค์˜ ๋น„์šฉ์ด ๋‚ฎ์•„์ง€๋ฉด์„œ ์›น ๋ธŒ๋ผ์šฐ์ €์—์„œ ์ž…๋ ฅ ๊ฒ€์ฆ์ฒ˜๋Ÿผ ์ž‘์€ ์ž‘์—…๋“ค์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜๋ฉด์„œ, ํ•ด๋‹น ์ž‘์—…๋“ค์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๊ฐ€ ๋“ฑ์žฅํ–ˆ์Šต๋‹ˆ๋‹ค.

var instance = new Hello();
instance.on("test", {
somethig: function () {
this.fireEvent("next", this.name);
},
name: "world"
});
// fireEvent ๋Š” instance ์˜ ํ•จ์ˆ˜๋‹ค.