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
const fetch = require('node-fetch'), | |
cheerio = require('cheerio'); | |
fetch('https://en.wikipedia.org/wiki/English-language_idioms') | |
.then(res => res.text()) | |
.then(html => cheerio.load(html)) | |
.then($ => { | |
const t = $('#mw-content-text .wikitable.sortable td:first-child'); | |
for (let i = 0; i < 50; ++i) { | |
const words = $(t[rnd(t)]).text().split(' '), |
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
// cmudict file at http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b | |
// for more info see http://www.speech.cs.cmu.edu/cgi-bin/cmudict | |
const dict = require('fs') | |
.readFileSync(__dirname + '/cmudict', 'utf8') | |
.split('\n') | |
.filter(x => x && x[0] != ';') | |
.map(x => { | |
const [ word, parts ] = x.split(' '); | |
return { |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document regexp("https:\/\/[ regexp'd jenkins url here ]\/.*console") { | |
#out, | |
.console-output { | |
text-transform: uppercase; | |
font-family: sans-serif !important; | |
perspective-origin: bottom; | |
transform: rotateX(45deg); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.js"></script> | |
<script src="script.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="app"> | |
<div ng-controller="con"> |