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.methods({ | |
regUser : function(info){ | |
console.log(info); | |
//1 | |
Accounts.createUser(info); |
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
NotEmptyString = Match.Where((x)=>{ | |
check(x , String) ; | |
return x.length > 0 ; | |
}); | |
/* 이메일 */ | |
EmailString = Match.Where((x)=>{ | |
check(x,String); | |
return /^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/.test(x); | |
}); |
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
NotEmptyString = Match.Where(function(x){ | |
check(x , String) ; | |
return x.length > 0 ; | |
}); | |
/* 이메일 */ | |
EmailString = Match.Where(function (x) { | |
check(x,String); | |
return /^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/.test(x); |
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
//클라이언트 js | |
var obj = event.currentTarget.files[0]; | |
var fileReader = new FileReader(); | |
fileReader.onload = function(file){ | |
Meteor.call('saveFile',file.srcElement.result,obj.name,'binary',function(err,result){ | |
if(err){ | |
alert(err); | |
}else{ | |
alert(result.msg); | |
} |
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
/* | |
내피시에 자바스크립트가 로딩이됩니다. | |
아래 파일은 array 계의 jQuery 인 underscore.js 라이브러리 입니다. | |
*/ | |
load("/Users/ppillip/scripts/underscore.js"); | |
/* | |
원하는 디비로 이동합니다. | |
*/ | |
use cys |
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
C01 = new Mongo.Collection('CYSNET_a_1'); | |
TestResult =new Mongo.Collection('testResult'); | |
//배치 | |
var batch = [ | |
{ | |
name : 'min1', | |
term : later.parse.text('every 1 second'), | |
doSomething : function(){ |
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>chartSample</title> | |
</head> | |
<body> | |
<h1>Welcome to Meteor!</h1> | |
{{>areaDemo}} | |
</body> |
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>chartSample</title> | |
</head> | |
<body> | |
<h1>Welcome to Meteor!</h1> | |
{{>areaDemo}} | |
</body> |
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
#!/bin/sh | |
## ./start.sh local | |
if [ "$1" = "local" ] | |
then | |
echo "#####################" | |
echo "localhost mongodb mode 입니다" | |
NODE_OPTIONS=--debug MONGO_URL=mongodb://localhost:27017/kdhec meteor -p 8048 | |
else |
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
/*메인함수*/ | |
/*프로듀서 클래스*/ | |
import kafka.javaapi.producer.Producer; | |
import kafka.producer.KeyedMessage; | |
import kafka.producer.ProducerConfig; | |
import java.util.Properties; |