Skip to content

Commit

Permalink
more alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
colevandersWands committed Jun 28, 2023
1 parent c88def2 commit 9c1906f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Snippetry

For drafting and publishing JS snippets.

To write: clone this repo, `$ yarn install && yarn draft`

To publish: turn on GH pages, push your changes.
4 changes: 2 additions & 2 deletions public/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
{
"name": "potato-potato.js",
"code": "function potato() {\n return this instanceof potato ? this.__proto__.constructor : potato;\n}\n\nconsole.log(`you say ${new potato().name}, I say ${potato().name}`);\n\n// tags: pun\n",
"code": "function potato() {\n return this instanceof potato ? this.__proto__.constructor : potato;\n}\n\nalert(`you say ${new potato().name}, I say ${potato().name}`);\n\n// tags: pun\n",
"tags": [
"pun"
]
Expand All @@ -99,7 +99,7 @@
},
{
"name": "sequitur.js",
"code": "const sequitur = (non = '') => (non ? { [non]: sequitur } : sequitur);\n\nconsole.log(sequitur('hi').hi('bye').bye()('sequitur').sequitur.name);\n\n// tags: useless, puzzle\n",
"code": "const sequitur = (non = '') => (non ? { [non]: sequitur } : sequitur);\n\nalert(sequitur('hi').hi('bye').bye()('sequitur').sequitur.name);\n\n// tags: useless, puzzle\n",
"tags": [
"useless",
"puzzle"
Expand Down
2 changes: 1 addition & 1 deletion snippets/potato-potato.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ function potato() {
return this instanceof potato ? this.__proto__.constructor : potato;
}

console.log(`you say ${new potato().name}, I say ${potato().name}`);
alert(`you say ${new potato().name}, I say ${potato().name}`);

// tags: pun
2 changes: 1 addition & 1 deletion snippets/sequitur.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const sequitur = (non = '') => (non ? { [non]: sequitur } : sequitur);

console.log(sequitur('hi').hi('bye').bye()('sequitur').sequitur.name);
alert(sequitur('hi').hi('bye').bye()('sequitur').sequitur.name);

// tags: useless, puzzle

0 comments on commit 9c1906f

Please sign in to comment.