This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>multiView</title> | |
</head> | |
<body> | |
{{> hello}} | |
</body> | |
<template name="hello"> | |
<h3>ViewA</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connect = require('connect') | |
io = require('socket.io') | |
server = connect.createServer( | |
connect.favicon() | |
, connect.logger() | |
, connect.static(__dirname + '/public') | |
) | |
server.listen(8000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.saveFile = (file)-> | |
fileReader = new FileReader() | |
fileReader.onload = (blob) -> | |
Meteor.call 'saveFile', | |
file:file | |
blob:blob.srcElement.result | |
fileReader.readAsBinaryString file | |
return | |
# event for upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | code | |
---|---|---|
All | ||
Software | C001 | |
Computer Music | C002 | |
Recording | C003 | |
Microphone | C004 | |
Synth & Keyboard | C005 | |
Accessories | C006 | |
Mixing Console | C007 | |
B-Stock Lounge | C008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('http').createServer((q,r)->require('fs').readFile(process.cwd()+q.url,(e,d)->r.end if e? then JSON.stringify(e) else d.toString())).listen 3000 or process.env.PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSString (Support) | |
- (NSComparisonResult) sortForIndex:(NSString*)comp { | |
// 기본 localizedCaseInsensitiveCompare는 숫자, 영문(대소무시), 한글 순 정렬 | |
// 한글 > 영문(대소구분 없음) > 숫자 > $ | |
// 그외 특수문자는 전부 무시한채 인덱싱 | |
// $는 예외 | |
// self 가 @"ㄱ" 보다 작고 (한글이 아니고) , comp 가 @"ㄱ"보다 같거나 클때 - 무조건 크다 | |
// 비교하면 -1 0 1 이 작다, 같다, 크다 순이므로 +1 을 하면 한글일때 YES 아니면 NO 가 된다. | |
// self 가 한글이고 comp 가 한글이 아닐때 무조건 작다인 조건과 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build !appengine | |
package main | |
/* | |
* Usage: ./TinyGCMServer <API_KEY> <Server URL(:port)> | |
* Test: curl -d "<NOTIFICATION MESSAGE>" http://serverURL/sendMessage?target=<REGISTRATION_ID> | |
*/ | |
import ( | |
"fmt" | |
gcm "github.com/googollee/go-gcm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings = { | |
jshint: true, | |
editor: { | |
"lineNumbers":true, | |
"lineWrapping":true, | |
"tabSize":2, | |
"theme":"eclipse", | |
"indentUnit":2, | |
"indentWithTabs": true, | |
"smartIndent":true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import flash.display.MovieClip; | |
import flash.net.NetStream; | |
import flash.net.NetConnection; | |
import flash.events.NetStatusEvent; | |
import flash.events.AsyncErrorEvent; | |
import flash.events.Event; | |
import flash.events.MouseEvent; |