Skip to content

Instantly share code, notes, and snippets.

View easa's full-sized avatar

Issa Nodehi easa

View GitHub Profile
@ljvmiranda921
ljvmiranda921 / tlsetup.sh
Created February 4, 2018 08:04
Set-up script to install a minimal TexLive 2015 Distribution
#!/usr/bin/env bash
#
# Minimal Travis Set-up Script
#
# This script sets-up a minimal TexLive 2015 distribution with the
# additional packages being installed when needed. This is intended
# for Travis continuous integration and is expected to work with the
# Ubuntu Trusty (14.04) Distribution
#
# Copyright (C) 2018 Lester James V. Miranda <[email protected]>
@bonaxcrimo
bonaxcrimo / decision-tree-id3-algorithm.markdown
Created August 29, 2017 09:05
Decision Tree ID3 Algorithm

Decision Tree ID3 Algorithm

Example Using Decision Tree using ID3 Algorithm

A Pen by bona on CodePen.

License.

@ccnokes
ccnokes / axios-instance-config.js
Created July 6, 2017 16:23
Good default configuration for axios in node.js
const axios = require('axios');
const http = require('http');
const https = require('https');
module.exports = axios.create({
//60 sec timeout
timeout: 60000,
//keepAlive pools and reuses TCP connections, so it's faster
httpAgent: new http.Agent({ keepAlive: true }),
@brianmcallister
brianmcallister / vwap.js
Last active August 25, 2021 16:55
VWAP (Volume Weighted Average Price) function.
/**
* Calculate VWAP (volume weighted average price) for a list of bids.
*
* @param {number} total - Total shares bought.
* @param {Array<number, number>} positions - Tuples of position data. The first
* index is the amount of shares, the
* second index is the price of the
* shares.
*
* @example