./build/configsByEnv/app,
./build/configsByEnv/server,
./build/configsByEnv/build
로 분리하여 처리하는 범위(환경)별로 gulpfile.js을 분리시켰으며
./build/tasks/
./build/configsByEnv/app,
./build/configsByEnv/server,
./build/configsByEnv/build
로 분리하여 처리하는 범위(환경)별로 gulpfile.js을 분리시켰으며
./build/tasks/
/** | |
* 고속 누승 알고리즘 구현. | |
* x^p mod(m) 계산 | |
* 참고: http://a.nex.kr.pe/wordpress/2015/10/21/제-6강-고속-누승-알고리즘과-모듈러/ | |
* @method powMod | |
* @param {int} x 피제수 | |
* @param {int} p 지수 | |
* @param {int} m 제수 | |
* @return {int} x^p mod(m) 계산 결과값 | |
*/ |
/** | |
* 확장된 유클리드 알고리즘 | |
* http://bbolmin.tistory.com/45 | |
* s*m + t*n = gcd(m, n) 일때 | |
* @method extendedEuclid | |
* @param {int} a r1 | |
* @param {int} b r2 | |
* @return {int} t1 | |
*/ |
function getPrime(max){ | |
let sieve = _.fill(Array(max), true); | |
let _max = Math.floor(Math.sqrt(max)); | |
sieve[0] = false; | |
sieve[1] = false; | |
for(let i = 2 ; i <= _max ; i++){ | |
if(sieve[i]){ | |
for(let j = i * 2 ; j <= max ; j += i){ | |
sieve[j] = false; |
var developer = objInit({ | |
info: { | |
name : '개발자', | |
state : 'go home' | |
} | |
}); | |
var wife = objInit({ | |
info: { | |
name : '아내' | |
} |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> |