Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enoc
Developers
Commits
4981677a
Commit
4981677a
authored
4 years ago
by
resynth1943
Browse files
Options
Downloads
Patches
Plain Diff
Add randomizer
parent
1673d490
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
random/README
+4
-0
4 additions, 0 deletions
random/README
random/random.js
+19
-0
19 additions, 0 deletions
random/random.js
random/words.txt
+50
-0
50 additions, 0 deletions
random/words.txt
with
73 additions
and
0 deletions
random/README
0 → 100644
+
4
−
0
View file @
4981677a
Random 'replace' creator
========================
Because resynth1943 doesn't understand flex
\ No newline at end of file
This diff is collapsed.
Click to expand it.
random/random.js
0 → 100644
+
19
−
0
View file @
4981677a
const
fs
=
require
(
'
fs
'
);
const
path
=
require
(
'
path
'
);
const
words
=
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'
./words.txt
'
),
'
utf8
'
).
split
(
'
\n
'
);
for
(
const
word
of
words
)
{
const
filePath
=
path
.
resolve
(
__dirname
,
'
../replace/
'
,
`./
${
word
}
.md`
);
fs
.
writeFileSync
(
filePath
,
`\
---
layout: replace
title:
${
word
}
type: 'Anything, really'
---
#
${
word
}
${
word
}
is really cool dude
`
);
console
.
log
(
`wrote
${
word
}
.md`
);
}
This diff is collapsed.
Click to expand it.
random/words.txt
0 → 100644
+
50
−
0
View file @
4981677a
camara
camarada
camarade
camaraderie
camaraderies
Camarasaurus
Camarata
camarera
Camargo
camarilla
camarillas
Camarillo
camarin
camarine
camaron
Camas
camases
camass
camasses
Camassia
camata
camatina
camauro
camauros
Camaxtli
Camb
Camb.
Cambay
cambaye
Camball
Cambalo
Cambarus
camber
cambered
cambering
camber-keeled
cambers
Camberwell
Cambeva
Camby
cambia
cambial
cambiata
cambibia
cambiform
cambio
cambiogenetic
cambion
Cambyses
cambism
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment