if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
| package org.saiku.web; | |
| import java.net.URL; | |
| import java.util.UUID; | |
| import junit.framework.TestCase; | |
| import org.apache.commons.httpclient.HttpClient; | |
| import org.apache.commons.httpclient.UsernamePasswordCredentials; | |
| import org.apache.commons.httpclient.methods.GetMethod; |
if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
| ''' | |
| Script to find a match at a specific date time by using gradient descendent. | |
| Adaptaded from Lucas Coppio: | |
| https://gist.github.com/Scoppio/2d5cf12311239ca9807f643ef21b88d1 | |
| ''' | |
| import math | |
| import time | |
| import random | |
| from datetime import datetime |
| `<-` = function (body, params) { | |
| vars = all.vars(substitute(params)) | |
| formals = as.pairlist(setNames(replicate(length(vars), quote(expr = )), vars)) | |
| eval.parent(call('function', formals, substitute(body))) | |
| } | |
| sapply(1 : 4, x -> 2 * x) | |
| # 2 4 6 8 | |
| mapply(x ~ y -> x + y, |
| """ | |
| Groups (clusters) similar lines together from a text file | |
| using k-means clustering algorithm. | |
| Also does some simple cleaning (such as removing white space and replacing numbers with (N)). | |
| Example: | |
| python cluster_lines.py --clusters 20 invalid_dates.txt |
| /** | |
| * This code uses Apache Chemistry (http://chemistry.apache.org/). | |
| * License accords to Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | |
| */ | |
| import java.io.ByteArrayInputStream; | |
| import java.io.UnsupportedEncodingException; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.Map; |
| from collections import defaultdict | |
| from operator import itemgetter | |
| from time import time | |
| from binance.client import Client | |
| FEE = 0.0005 | |
| PRIMARY = ['ETH', 'USDT', 'BTC', 'BNB'] |
| AC | |
| AL | |
| AM | |
| AP | |
| BA | |
| CE | |
| DF | |
| ES | |
| GO | |
| MA |
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import json | |
| import requests |