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'; | |
| module.exports = function(sequelize, DataTypes) { | |
| let GameDevice= sequelize.define('GameDevice', { | |
| GameDeviceUID : { type : DataTypes.INTEGER, primaryKey: true, autoIncrement: true}, | |
| UUID:{type:DataTypes.STRING(60)}, | |
| DeviceType:{type:DataTypes.INTEGER, defaultValue:0}, | |
| MainFlag : { type : DataTypes.BOOLEAN, defaultValue:true } | |
| }, { | |
| timestamps: false, |
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
| { | |
| "production":{ | |
| "host":"url", | |
| "port": 1433, | |
| "dialect": "mssql", | |
| "username": "replace_username", | |
| "password": "replace_password", | |
| "dialectOptions":{ | |
| "encrypt": true, | |
| "database":"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
| "devMySQL": { | |
| "host":"ja.cloudapp.net", | |
| "port": 3306, | |
| "dialect": "mysql", | |
| "username": "username", | |
| "password": "password", | |
| "dialectOptions":{ | |
| "encrypt": true, | |
| "database":"test" | |
| } |
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 |
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
| '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
| '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
| ## 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
| 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
| 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) { |