Skip to content

Instantly share code, notes, and snippets.

@hogashi
Last active April 18, 2020 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hogashi/559523562d1d87d819254fd80453db7a to your computer and use it in GitHub Desktop.
Save hogashi/559523562d1d87d819254fd80453db7a to your computer and use it in GitHub Desktop.
cat src/* \
| perl -pe 's/[^a-zA-Z]/ /g' \
| perl -pe 's/([a-z])([A-Z])/$1 $2/g' \
| perl -pe 's/([A-Z])([A-Z][a-z])/$1 $2/g' \
| perl -pe 's/ +/\n/g' \
| perl -pe '$_ = lc' \
| sort \
| uniq > words.txt
cat src/* \
| perl -pe 's/[^a-zA-Z]/ /g' \
| perl -pe 's/([a-z])([A-Z])/$1 $2/g' \
| perl -pe 's/([A-Z])([A-Z][a-z])/$1 $2/g' \
| perl -pe 's/ +/\n/g' \
| perl -pe '$_ = lc' \
| sort \
| uniq \
| awk '{ print $1 " " length($1) }' \
| sort -n -k2 \
| awk '{ print $1 }' > words-len.txt
a
b
c
e
h
s
z
as
at
by
em
id
if
in
is
js
ms
no
of
on
px
ui
add
all
app
bar
com
div
dom
err
for
get
gif
img
jpg
jsx
key
let
log
map
min
new
non
not
off
pbs
png
raw
ref
res
set
src
tab
tag
tmp
top
try
txs
txt
url
use
web
yet
auto
body
cant
core
ctrl
data
deck
done
each
else
find
flex
flow
font
from
host
href
html
imgs
item
keys
last
left
line
link
list
main
meta
mute
name
none
null
open
orig
page
pull
rgba
role
root
save
send
show
size
some
srcs
stop
tabs
tags
test
text
then
this
todo
tooi
true
type
urls
user
void
with
zero
align
array
block
catch
child
class
click
color
const
debug
dense
entry
error
event
every
false
group
https
image
index
input
items
keyof
limit
local
match
maybe
media
mouse
param
photo
popup
print
props
query
react
slice
solid
split
state
strip
style
throw
tweet
twimg
utils
value
video
width
action
append
assign
border
button
center
chrome
column
config
create
cursor
detail
export
filter
footer
format
github
height
images
import
inline
insert
issues
istrue
layout
legacy
length
margin
method
native
object
option
params
public
radius
reject
render
result
return
ripple
script
search
setter
static
status
stream
string
suffix
target
tweets
typeof
userjs
window
article
boolean
checked
collect
console
content
default
disable
display
element
enabled
entries
hogashi
inherit
isfalse
justify
keydown
matched
message
observe
options
padding
pointer
prevent
primary
private
profile
promise
replace
request
resolve
reverse
runtime
section
setting
storage
subtree
timeout
toolbar
twitter
updated
variant
without
adaptive
adjacent
basename
callback
checkbox
children
computed
contrast
deferred
dispatch
document
download
elements
filename
hostname
imagetab
interval
keyboard
listener
location
material
mutation
observer
original
pathname
position
property
protocol
response
selector
splitter
timeline
tweetimg
attribute
beforeend
component
constants
contained
container
exception
extension
interface
permalink
subheader
tweetdeck
undefined
actionable
background
collection
hatenablog
typography
propagation
issuecomment
a
action
actionable
adaptive
add
adjacent
align
all
app
append
array
article
as
assign
at
attribute
auto
b
background
bar
basename
beforeend
block
body
boolean
border
button
by
c
callback
cant
catch
center
checkbox
checked
child
children
chrome
class
click
collect
collection
color
column
com
component
computed
config
console
const
constants
contained
container
content
contrast
core
create
ctrl
cursor
data
debug
deck
default
deferred
dense
detail
disable
dispatch
display
div
document
dom
done
download
e
each
element
elements
else
em
enabled
entries
entry
err
error
event
every
exception
export
extension
false
filename
filter
find
flex
flow
font
footer
for
format
from
get
gif
github
group
h
hatenablog
height
hogashi
host
hostname
href
html
https
id
if
image
images
imagetab
img
imgs
import
in
index
inherit
inline
input
insert
interface
interval
is
isfalse
issuecomment
issues
istrue
item
items
jpg
js
jsx
justify
key
keyboard
keydown
keyof
keys
last
layout
left
legacy
length
let
limit
line
link
list
listener
local
location
log
main
map
margin
match
matched
material
maybe
media
message
meta
method
min
mouse
ms
mutation
mute
name
native
new
no
non
none
not
null
object
observe
observer
of
off
on
open
option
options
orig
original
padding
page
param
params
pathname
pbs
permalink
photo
png
pointer
popup
position
prevent
primary
print
private
profile
promise
propagation
property
props
protocol
public
pull
px
query
radius
raw
react
ref
reject
render
replace
request
res
resolve
response
result
return
reverse
rgba
ripple
role
root
runtime
s
save
script
search
section
selector
send
set
setter
setting
show
size
slice
solid
some
split
splitter
src
srcs
state
static
status
stop
storage
stream
string
strip
style
subheader
subtree
suffix
tab
tabs
tag
tags
target
test
text
then
this
throw
timeline
timeout
tmp
todo
tooi
toolbar
top
true
try
tweet
tweetdeck
tweetimg
tweets
twimg
twitter
txs
txt
type
typeof
typography
ui
undefined
updated
url
urls
use
user
userjs
utils
value
variant
video
void
web
width
window
with
without
yet
z
zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment