Install MacPorts
Optionally update MacPorts
sudo port selfupdate
Download the port tree of HFST
- Unpack the port tree
- Add the port tree dir
file:///.../hfst-macport/
to/opt/local/etc/macports/sources.conf
sudo port install hfst
const fs = require('fs'); | |
const path = require('path'); | |
const readline = require('readline'); | |
const FILE_PATH = path.resolve(__dirname, '../data/ingest_test.txt'); | |
const stream = fs.createReadStream(FILE_PATH); | |
const interface = readline.createInterface({ input: stream }); | |
interface.on('line', processLine); | |
interface.on('close', () => console.log("\nDone!")); |
require('font-awesome/css/font-awesome.css'); | |
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>'; |
<a href="data:text/plain;charset=utf-8;base64,Zm9vIGJhcg==">Data as URI</a> |
var element = $('#drop-area')[0]; | |
var callback = function onFileDrop() { | |
var filenames = event.target.result; | |
}; | |
function droppable(element, callback) { | |
element.addEventListener('dragover', function onDrag(event) { | |
event.stopPropagation(); | |
event.preventDefault(); |
// Add full screen wrapper | |
.box { | |
top: 50%; | |
left: 50%; | |
margin: 0; | |
position: absolute; | |
transform: translate(-50%, -50%); | |
} |
# 2 represents stderr | |
# 2> redirects stderr (to /dev/null mutes error output) | |
# || runs the second command only if the first one fails | |
alias gcm='git checkout maybe 2> /dev/null || git checkout master' |
(function($) { | |
if (!$ || typeof $.extend !== 'function') { | |
console.info("No jQuery found. Plugin did not mount."); | |
return; | |
} | |
var _cache = {}; | |
/** |
for file in <DIR>/*.ogg; do | |
dest="converted/${file[@]/%ogg/mp3}" | |
ffmpeg -hide_banner -i "$file" -qscale:a 4 -acodec libmp3lame $dest | |
done |
ðə 23038047 | |
ə 18735224 | |
ˈtu 12418461 | |
ˈænd 11260533 | |
ˈʌv 10968008 | |
ɪn 10738928 | |
li 5689929 | |
ˈðæt 5416929 | |
ˈaɪ 4683241 | |
ˈfɔr 4678692 |