This file contains hidden or 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
| "use strict"; | |
| var fs = require("fs"); | |
| var path = require("path"); | |
| var Sequelize = require("sequelize"); | |
| var env = process.env.NODE_ENV || "development"; | |
| var config = require(__dirname + '/../config/config.json')[env]; | |
| var sequelize = new Sequelize(config.database, config.username, config.password, config); | |
| var db = {}; |
This file contains hidden or 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
| /* POST 사용자 아이디를 등록할 때 사용한다. */ | |
| router.post('/add/:userID', function(req, res) { | |
| //아이디 중복 확인 | |
| function CheckIsHaveID(callback) { | |
| models.usercore.find({where:{id:req.params.userID}}) | |
| .then(function(findUserCoreData) { | |
| callback( !(findUserCoreData == null || findUserCoreData == undefined) ); | |
| }); | |
| } |
This file contains hidden or 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
| { | |
| "development": { | |
| "dialect": "mssql", | |
| "host":"{host}.database.windows.net", | |
| "port":1433, | |
| "username": "{your_username}", | |
| "password": "{your_password}", | |
| "dialectOptions":{ | |
| "encrypt": true, | |
| "database":"{database}" |
This file contains hidden or 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
| const SERVICE_ACCOUNT_KEY_FILE = './key.json'; | |
| var tokenStorage = { | |
| access_token: null, | |
| token_type: null, | |
| expiry_date: null | |
| }; | |
| //access_token을 확인한다. | |
| function CheckAccessToken() { | |
| return new Promise(function (resolve, reject) { |
This file contains hidden or 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
| const iap = require('in-app-purchase'); | |
| iap.config({applePassword:""}); | |
| iap.setup(function (err) { | |
| if (err) { | |
| return console.error('something went wrong...'); | |
| } | |
| else { | |
| console.log('iap init done'); |
This file contains hidden or 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
| ## Main prompt | |
| build_prompt() { | |
| RETVAL=$? | |
| prompt_status | |
| prompt_virtualenv | |
| prompt_context | |
| prompt_dir | |
| prompt_git | |
| prompt_hg | |
| prompt_newline |
This file contains hidden or 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
| 'use strict'; | |
| const querystring = require('querystring'); | |
| module.exports = function(context, req) { | |
| let parseBody = querystring.parse(req.body); | |
| if (parseBody.text) { | |
| context.res = { | |
| "content-type":"application/json", |
This file contains hidden or 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
| 'use strict'; | |
| const http = require('http'); | |
| let url = (process.env.targetURL)?process.env.targetURL:'google.com'; | |
| const options = { | |
| hostname: url | |
| }; |
This file contains hidden or 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
| git init | |
| git remote add azure [웹앱 git 주소] | |
| git commit -m "init" | |
| git push azure master |
This file contains hidden or 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
| GET / 200 1.863 ms - 191 | |
| GET / 200 2.008 ms - 191 |
OlderNewer