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
| { | |
| "presets": [ | |
| [ | |
| "@babel/env", | |
| { | |
| "loose": true, | |
| "modules": false, | |
| "useBuiltIns": "entry", | |
| "shippedProposals": true, | |
| "corejs": "2.6.5", |
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
| version: '2' | |
| services: | |
| teamcity-server-instance: | |
| build: jetbrains/teamcity-server | |
| volumes: | |
| - /opt/teamcity/datadir:/data/teamcity_server/datadir | |
| - /opt/teamcity/logs:/opt/teamcity/logs | |
| restart: always |
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
| FROM node:4 | |
| # Create app directory | |
| RUN mkdir -p /app | |
| WORKDIR /app | |
| # Install app dependencies | |
| COPY package.json /app/ | |
| RUN npm install |
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
| getapi1(x) | |
| .then(function(api1res){ | |
| return getapi2(api1res); | |
| } | |
| .then(function(api2res){ | |
| return getapi3(api2res); | |
| } | |
| .then(function(api3res){ | |
| return getapi4(api3res); | |
| } |
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 aws = require("aws-sdk"); | |
| const region = 'ap-southeast-1'; | |
| const bucketName = 'BUCKET_NAME'; | |
| const rootUrl = `https://s3-${region}.amazonaws.com/${bucketName}/`; | |
| aws.config.update({ | |
| accessKeyId: "ACCESS_KEY", | |
| secretAccessKey: "SECRET_KEY", |
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
| # Default server configuration | |
| # | |
| server { | |
| location ~ /.well-known { | |
| allow all; | |
| } | |
| listen 443 ssl; |
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
| PartnerTracking = function (options) { | |
| var defaults = { | |
| targetSelector: '.click-tracking', | |
| api: '/ClickTracker.asmx/Save', | |
| apiMethod: 'POST' | |
| }; | |
| this.settings = $.extend({}, defaults, options); | |
| $('body').on('click', this.settings.targetSelector, this.clickTarget); |
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
| var mysql = require('mysql'); | |
| var config = require('./config.js'); | |
| var connection = mysql.createConnection(config.db); | |
| var Q = require("q"); | |
| var _ = require("underscore"); | |
| var http = require('http'); | |
| var xml2js = require('xml2js'); | |
| var fs = require('fs'); | |
| var parser = new xml2js.Parser(); | |
| var request = require('requestretry'); |
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
| # -*- coding: utf-8 -*- | |
| import sys | |
| training_file = 'ECG200_TRAIN' | |
| testing_file = 'ECG200_TEST' | |
| def get_data(filename): | |
| output = [] | |
| with open(filename) as f: | |
| lines = f.readlines() |
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
| var http = require("http"); | |
| // Utility function that downloads a URL and invokes | |
| // callback with the data. | |
| function download(url, callback) { | |
| http.get(url, function(res) { | |
| var data = ""; | |
| res.on('data', function (chunk) { | |
| data += chunk; | |
| }); |
NewerOlder