This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Get Contacts Demo - Axios</title> | |
| </head> | |
| <body> | |
| <h2>Contacts Caching Demo</h2> |
| from decimal import Decimal | |
| from bson.decimal128 import Decimal128 | |
| import datetime | |
| import time | |
| import config | |
| import json | |
| import requests | |
| from pymongo import MongoClient | |
| from cryptolib import utils |
| Vagrant.configure("2") do |config| | |
| config.vm.hostname = "docker-host" | |
| config.vm.box_check_update = false | |
| config.ssh.insert_key = false | |
| config.vm.box = "puphpet/ubuntu1404-x64" | |
| config.vm.synced_folder "./", "/vagrant", type: "smb" | |
| config.vm.network "forwarded_port", guest: 8081, host: 8081 | |
| config.vm.provision "docker", | |
| images: ["alpine"] |
| Sub ModifyWordDoc() | |
| Dim wdApp As Word.Application | |
| Dim wdDoc As Word.Document | |
| Dim wdbmRange As Word.Range | |
| Application.ScreenUpdating = False | |
| Set wdApp = New Word.Application |
| import datetime | |
| import time | |
| import config | |
| import json | |
| from pymongo import MongoClient | |
| from cryptolib import utils | |
| # technical analysis libraries | |
| import talib as ta | |
| import pandas as pd |
| const Promise = require('promise'); | |
| const binance = require('node-binance-api'); | |
| const jsonfile = require('jsonfile'); | |
| binance.options({ | |
| 'APIKEY':'xxxxxx', | |
| 'APISECRET':'xxxxx' | |
| }); | |
| // Binance Candlestick Promise |
| var tickers = ['BNBBTC', 'BNBLTC']; | |
| // For each ticker | |
| tickers.forEach(function(item, index){ | |
| binance.candlesticks(item[index], '1M', function(ticks, symbol) { | |
| console.log(item); | |
| }); | |
| }); |
| // apply versus call | |
| // apply passes the array as a set of arguments to the function | |
| function splat(fun) { | |
| console.log('splat'); | |
| return function(array) { | |
| console.log("fun.apply"); | |
| return fun.apply(null, array); |
| function forEach(array, action) { | |
| for(var i = 0; i < array.length;i++) { | |
| action(array[i]); | |
| } | |
| } | |
| function sum(numbers) { | |
| var total = 0; |