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
[ | |
[" ",1988063], | |
["e",1162450], | |
["a",888755], | |
["t",832684], | |
["i",762070], | |
["n",746426], | |
["o",728126], | |
["r",667531], | |
["s",655854], |
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
var sourceMap = require("source-map") | |
function convert(map) { | |
var simpleMap = shallowCopy(map) | |
// Prevent the source-map module from joining sources with the sourceRoot (if | |
// any), so that we can find the indexes of in the `sources` property. | |
delete simpleMap.sourceRoot | |
simpleMap.mappings = {} |
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
### | |
Tokenizes `string` into an array of tokens, using `regex` such as [js-tokens] | |
or [css-tokens]. | |
[js-tokens]: https://github.com/lydell/js-tokens | |
[css-tokens]: https://github.com/lydell/css-tokens | |
### | |
tokenize = (string, regex) -> | |
regex.lastIndex = 0 |
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
{ | |
"private": true, | |
"scripts": { | |
"test": "mocha --ui tdd test.js" | |
}, | |
"dependencies": { | |
"convert-source-map-simple": "git://gist.github.com/857cba1b00cf8dd3c169.git", | |
"source-map": "~0.4.4" | |
}, | |
"devDependencies": { |
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
// By Simon Lydell 2015. | |
// This file is in the public domain. | |
var stdin = require("get-stdin") | |
var tools = require("text-frequencies-analysis") | |
var helpers = require("text-frequencies-analysis/lib/helpers") | |
stdin(function(text) { | |
process.stdout.write(tools.jsonStringifyRow(convert(JSON.parse(text)))) | |
}) |
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
[ | |
["e ",2357988], | |
[" t",2060528], | |
["th",1810335], | |
[" a",1554503], | |
["he",1523680], | |
["s ",1435225], | |
["in",1318298], | |
["t ",1268890], | |
["d ",1188359], |
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> | |
<title>test</title> | |
<style> | |
a:hover::after { | |
content: ':hover'; | |
} | |
a:focus::after { | |
content: ':focus'; | |
} | |
a:active::after { |
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
# Written by Simon Lydell 2016. This file is in the public domain. | |
# | |
# To print instructions, run `python3 convert.py`. | |
import datetime | |
import re | |
def parse_file(file_name): |
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
.base64 { font-weight: bold; } | |
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VzIjpbInN1Y2Nlc3MuY3NzIl0sIm5hbWVzIjpbXX0= */ |
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
module Main exposing (..) | |
import Html exposing (Html, div, button, text) | |
import Html.App | |
import Html.Events exposing (onClick) | |
main : Program Never | |
main = | |
Html.App.beginnerProgram |
OlderNewer