I do the following on a per project basis.
If you don't have virtualenv installed, install it globally by running pip install virtualenv
from any folder. If that didn't work because you have no pip
try pip3 install virtualenv
instead.
# Using concaveman in R using V8 | |
concaveman <- function(d){ | |
library(V8) | |
ctx <- v8() | |
ctx$source('https://www.mapbox.com/bites/00222/concaveman-bundle.js') | |
jscode <- sprintf( | |
"var points = %s;var polygon = concaveman(points);", | |
jsonlite::toJSON(d, dataframe = 'values') | |
) | |
ctx$eval(jscode) |
const regl = require('regl')({ | |
extensions: 'OES_texture_float' | |
}) | |
const LAPLACIAN_SHADER = ` | |
vec4 laplacian (sampler2D img, vec2 id, float DX) { | |
return -texture2D(img, id) + 0.25 * ( | |
texture2D(img, id + DX * vec2(-1, 0)) | |
+ texture2D(img, id + DX * vec2(1, 0)) | |
+ texture2D(img, id + DX * vec2(0, -1)) |
license: gpl-3.0 |
license: gpl-3.0 |
license: gpl-3.0 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 14px sans-serif; | |
} | |
.axis path, .axis line { | |
fill: none; |
I do the following on a per project basis.
If you don't have virtualenv installed, install it globally by running pip install virtualenv
from any folder. If that didn't work because you have no pip
try pip3 install virtualenv
instead.
// Processing code by Etienne JACOB | |
// motion blur template by beesandbombs | |
// opensimplexnoise code in another tab might be necessary | |
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e | |
int[][] result; | |
float t, c; | |
float ease(float p) { |
// Processing code by Etienne JACOB | |
// motion blur template by beesandbombs | |
// opensimplexnoise code in another tab might be necessary | |
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e | |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; |
% Overview figure for | |
% ``Combating human trafficking with multimodal deep models,'' | |
% submitted to ACL 2017. | |
% Figure by William Chargin; send any comments to wchargin@gmail.com. | |
\documentclass[margin=2mm]{standalone} | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{tikz} |