Tested on ubuntu 20.04.3
sudo apt-get install build-essential
sudo apt install libcairo2-dev
sudo apt install libgsl-dev
sudo apt install libgtk-3-dev
-- # PopClip Run in Warp | |
-- { name: Run in Warp, icon: iconify:simple-icons:warp, language: applescript } | |
tell application "Warp" | |
activate | |
tell application "System Events" | |
tell process "Warp" | |
delay 0.01 | |
set sourceText to "{popclip text}" | |
keystroke sourceText | |
delay 0.01 |
#!/bin/bash | |
# | |
# convert a mysql database to sqlite3 | |
# | |
#see https://stackoverflow.com/questions/5164033/ | |
# export-a-mysql-database-to-sqlite-database | |
mysql_host=localhost | |
mysql_user=george | |
#mysql_passwd=**************** |
""" | |
preprocess-twitter.py | |
python preprocess-twitter.py "Some random text with #hashtags, @mentions and http://t.co/kdjfkdjf (links). :)" | |
Script for preprocessing tweets by Romain Paulus | |
with small modifications by Jeffrey Pennington | |
with translation to Python by Motoki Wu | |
Translation of Ruby script to create features for GloVe vectors for Twitter data. |
# Include the Dropbox SDK | |
import dropbox | |
# Get your app key and secret from the Dropbox developer website | |
# https://www.dropbox.com/developers-v1/apps | |
app_key = 'key' | |
app_secret = 'secret' | |
flow = dropbox.client.DropboxOAuth2FlowNoRedirect(app_key, app_secret) |
Tested on ibsimu-1.0.6dev, OSX Yosemite, High Sierra, Catalina.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install autoconf automake libtool gtk+3 gsl
from scipy.interpolate import UnivariateSpline | |
import numpy as np | |
def curvature_splines(x, y=None, error=0.1): | |
"""Calculate the signed curvature of a 2D curve at each point | |
using interpolating splines. | |
Parameters | |
---------- | |
x,y: numpy.array(dtype=float) shape (n_points, ) |
function (x, y = NULL, xtest = NULL, ytest = NULL, ntree = 500, | |
mtry = if (!is.null(y) && !is.factor(y)) max(floor(ncol(x)/3), | |
1) else floor(sqrt(ncol(x))), replace = TRUE, classwt = NULL, | |
cutoff, strata, sampsize = if (replace) nrow(x) else ceiling(0.632 * | |
nrow(x)), nodesize = if (!is.null(y) && !is.factor(y)) 5 else 1, | |
maxnodes = NULL, importance = FALSE, localImp = FALSE, nPerm = 1, | |
proximity, oob.prox = proximity, norm.votes = TRUE, do.trace = FALSE, | |
keep.forest = !is.null(y) && is.null(xtest), corr.bias = FALSE, | |
keep.inbag = FALSE, ...) | |
{ |
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:f04c113accbabf25e09e5680267acfb16af33ae3a79b0992a8aea30875c51b17" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |