Skip to content

Instantly share code, notes, and snippets.

View easylogic's full-sized avatar
๐Ÿ˜€
happy coding

jinho park easylogic

๐Ÿ˜€
happy coding
View GitHub Profile
@easylogic
easylogic / gist:900983
Created April 4, 2011 00:46
implements file upload in zappa
it is so simple.
it is that add connect-form in zappa
1. npm install zappa
2. npm install connect-form
3. cd /usr/local/lib/node/.npm/zappa/active/package/lib - move yourself npm directory
@easylogic
easylogic / gist:1326025
Created October 30, 2011 15:24
easylogic mobile framework for Titanium
exports.load = function () {
var win = $.window({
id: 'win1',
title : 'welcome',
layout: 'vertical',
backgroundColor: 'black'
});
$('win1').add($.view({ id: 'tbar1' }, { $style : 'board' }));
@easylogic
easylogic / summernote-fullcustom
Last active August 29, 2015 14:10
summernote-fullcustom
summernote ๋Š” ํ˜„์žฌ bootstrap ๊ธฐ๋ฐ˜์ธ๋ฐ.
ui ์ƒ๊ด€ ์—†์ด ๊ธฐ์กด ๊ธฐ๋Šฅ์„ ์“ธ๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•˜๋Š”๊ฐ€ ?
1. button
2. icon
3. toolbar
4. dialog
๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ ๊ธฐ๋ณธ ์†Œ์Šค์—์„œ bootstrap ์ฝ”๋“œ๋ฅผ ๋นผ๋Š” ๊ฒƒ์ด๋‹ค.
@easylogic
easylogic / gist:78c0f39c767487adba64
Last active August 29, 2015 14:11
Collector ๋ฅผ ๋งŒ๋“ค์ž.
์ผ๋‹จ collector ๋ฅผ ๋งŒ๋“ค์–ด๋ณด์ž.
๋ชจ๋“  ๋ฐ์ดํƒ€๋Š” json ์œผ๋กœ ์ €์žฅํ•ด๋ณด์ž.
๊ทธ๋Ÿผ mongodb ๊ฐ€ ํ•„์š”ํ• ๊นŒ? ๊ทธ๋Ÿด์ง€๋„ ๋ชจ๋ฅด๊ฒ ๋‹ค.
๊ทธ๋Ÿผ ๋ฌด์—‡์ด ํ•„์š”ํ•œ์ง€ ์ƒ๊ฐํ•ด๋ณด์ž.
1. ๋Œ€์ƒ
@easylogic
easylogic / gist:4596690eb355104b1f83
Created December 13, 2014 16:07
DSL ์ด ํ•„์š”ํ•  ๊ฒƒ ๊ฐ™๋‹ค.
๊ฐ๊ฐ์˜ ๊ธฐ๋Šฅ์— ๋งž๋Š” DSL ์ด ํ•„์š”ํ•˜๋‹ค.
Collector ์— ๋งž๋Š” DSL ์„ ๊ธฐํšํ•ด๋ณด์ž.
Html Get http://www.naver.com/news
params
Key value
Set
Key selector
Key {
@easylogic
easylogic / gist:53347e1289ab483e8018
Created December 15, 2014 17:01
QueryBuilder ๊ฐ€ ์žˆ์–ด์•ผ ํ•  ๋“ฏ ํ•˜๋‹ค.
class Table {
long field;
}
Table.find("id", 10);
Record r = QueryBuilder
.select("$1.field", "$2.field2")
.from(Table.class, Table2.class)
.join("$1.field = $2.field")
.where("$1.field = ", 10)
@easylogic
easylogic / gist:5003a5277b68def6fc8e
Created December 18, 2014 23:15
์ž๋ฐ” ์‹œ๊ฐ„ ๊ด€๋ฆฌ
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by yuni on 2014-12-18.
*/
public class Test {
public static void main(String args[]) {
long current = System.currentTimeMillis();
@easylogic
easylogic / gist:2ec20b7dd5b72dcfc72c
Created December 23, 2014 18:51
์ž๋ฐ”์—์„œ json ํ˜•ํƒœ๋กœ ์ฝ”๋”ฉํ•˜๊ธฐ
String json = "{
width : 800,
height : 800,
padding : 'empty',
grid : {
x : { type : 'block', target : 'name' }
}
} ";
ChartBuilder c = new ChartBuilder(json);
@easylogic
easylogic / gist:582138c497f3d6b11fb7
Created January 3, 2015 18:04
chart ์„œ๋น„์Šค๋ฅผ ๋งŒ๋“ค์ž.
๋ฌด์—‡์ด ํ•„์š”ํ•œ๊ฐ€?
1. chart
2. data
3. ui
data ๋ฅผ ๊ธฐํšํ•˜๊ณ 
chart ๋ฅผ ๋งŒ๋“œ๋Š” UI ๋กœ ํ•ด๋‹น ์ฐจํŠธ๋ฅผ ๊ตฌ์„ฑ
์ž˜ ๋งŒ๋“ค์–ด์ง„ UI ๊ตฌ์กฐ๊ฐ€ ํ•„์š”ํ•˜๋‹ค.
@easylogic
easylogic / gist:374e5d7dd19b2874eaee
Last active August 29, 2015 14:13
์ฐจํŠธ ์„œ๋น„์Šค ์„ค๊ณ„

Chart UI

  • ์ฐจํŠธ๋ฅผ ์ฝ”๋“œ๋กœ ์ƒ์„ฑ ๊ฐ€๋Šฅ
  • UI ๋กœ ์ƒ์„ฑ ๊ฐ€๋Šฅ
  • axis, brush, widget ์กฐํ•ฉ
  • drag and drop ์œผ๋กœ ํ˜•ํƒœ ๊ตฌ์„ฑ
  • ๊ฐœ๋ณ„ ๊ฐ์ฒด ํด๋ฆญํ• ๋•Œ ์ด๋ฒคํŠธ ์„ค์ •์ด ํ•„์š”ํ•จ.
  • ๊ฐœ๋ณ„ ๊ฐ์ฒด๋Š” ์ฝ”๋“œ๋กœ ์ž…๋ ฅํ•œ json ๊ณผ ์„œ๋กœ ํ˜ธํ™˜๋จ.
  • ์ปค์Šคํ…€ grid, brush, widget ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๊ฑฐ๋‚˜ ๋˜๋Š” ๋“ฑ๋ก ๊ฐ€๋Šฅํ•ด์•ผํ•จ.
  • ์ปค์Šคํ…€์˜ ๊ฒฝ์šฐ ๋ฒ„์ „ ๊ด€๋ฆฌ๋„ ๋˜๋ฉด ์ข‹์„ ๋“ฏ ?