BOOM Analytics: Exploring Data-Centric, Declarative Programming for the Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* =============================================================================== | |
* triangulateMTX.ts | |
* TypeScript implementation of Mei-Tipper-Xu algorithm for polygon triangulation | |
* (c) Lingdong Huang 2020 (MIT License) | |
* =============================================================================== */ | |
namespace triangulateMTX{ | |
export function triangulate( | |
vertices : Array<[number,number]>, | |
params : {sliverThreshold? : number, | |
greedyHeuristic? : boolean, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Finding contours in binary images and approximating polylines. | |
* Implements the same algorithms as OpenCV's findContours and approxPolyDP. | |
* <p> | |
* Made possible with support from The Frank-Ratchye STUDIO For Creative Inquiry | |
* At Carnegie Mellon University. http://studioforcreativeinquiry.org/ | |
* @author Lingdong Huang | |
*/ | |
var FindContours = new function(){let that = this; | |
let N_PIXEL_NEIGHBOR = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void function() { "use strict" | |
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WIP DO NOT USE WIP !!!!!!!!!!!!!!!!!!!!! | |
DO NOT USE THIS YET. | |
USE THE 2016 VERSION BELOW PLEASE. | |
WWWWWWWW WWWWWWWWIIIIIIIIIIPPPPPPPPPPPPPPPPP | |
W::::::W W::::::WI::::::::IP::::::::::::::::P | |
W::::::W W::::::WI::::::::IP::::::PPPPPP:::::P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Highlight words in html - v0.0.1 - 2015-04-29 | |
* http://madebymike.com.au | |
* Copyright (c) 2015 Mike Riethmuller; Licensed MIT | |
*/ | |
/* | |
* It turns out that annotating a phrase within HTML is exceptionally hard. I've done it so you don't have to. | |
* The function accepts a phrase (string), HTML (string), and optionally a classname (string) | |
* It returns the same HTML with <mark> elements surrounding the phrase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FFmpeg settings for vimeo.com | |
// ============================= | |
// Trying to find the best settings for encoding videos as described here: http://vimeo.com/help/compression | |
// | |
// Input file: MTS | |
// Video: H264, 1920x1080, 50fps | |
// Audio: A52 Audio (aka AC3), Stereo, 48kHz, 256kbps | |
ffmpeg -i input.mts -vcodec libx264 -acodec aac -strict experimental -vpre hq -s hd720 -b 5000k -ab 320k -r 25 -g 25 -threads 0 output.mp4 |
This is a very short tutorial on how to install and start using RingoJS.
We try to release often - at least every 2 months - but Ringo is moving fast and with the git version you will always get the newest features. All Ringo developers use the git version for their projects and the git master is usually very stable.
But, using the most recent git version means you should keep an eye on the Ringo [mailing list][group] - big changes that might break your code will be discussed on the list beforehand.