Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Oct 15, 2024
1 parent 4d64f2e commit f9fc4d0
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 28 deletions.
15 changes: 7 additions & 8 deletions add.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ scrollForm breck7+pldb@gmail.com PLDB form submission
value
../code/conceptPage.scroll

id
name
appeared
creators
id
name
appeared
creators
tags pl
website
description
website
description

gitRepo
gitRepo

example


footer.scroll

2 changes: 1 addition & 1 deletion books/books.parsers
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bookTitleParser

bookAuthorsParser
// todo: think through scroll name conflict better
crux authors
cue authors
extends abstractStringMeasureParser
description Who are the author(s) of the book?

Expand Down
12 changes: 6 additions & 6 deletions code/measures.parsers
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstractYearMeasureParser

abstractAnnualPopulationCountParser
atoms yearAtom countAtom
uniqueFirstAtom
uniqueCue
abstractAnnualPopulationCountMapParser
catchAllParser abstractAnnualPopulationCountParser
description A map of counts, one per year.
Expand Down Expand Up @@ -300,10 +300,10 @@ descriptionParser
description What is a short description of this language?

subDescriptionParser
// todo fix columnName crux path issue.
// todo fix columnName cue path issue.
extends descriptionParser
description How is this language described here?
crux description
cue description

tiktoksParser
extends abstractUrlsMeasureParser
Expand Down Expand Up @@ -1745,7 +1745,7 @@ hasZippersParser
helloWorldCollectionParser
description What is the name of this project in the Hello World Collection?
extends abstractExampleParser
cruxFromId
cueFromId
atoms measureNameAtom
catchAllAtomType stringAtom
string sourceDomain helloworldcollection.de
Expand Down Expand Up @@ -2072,7 +2072,7 @@ abstractAnnualRankMapParser
extends abstractHashMapMeasureParser
annualRankParser
atoms yearAtom integerAtom
uniqueFirstAtom
uniqueCue

// reddit
// todo trim the trailing slash
Expand Down Expand Up @@ -2238,7 +2238,7 @@ stackOverflowSurveyParser
description What are the survey results for a particular year?
atoms yearAtom
pattern \d+
uniqueFirstAtom
uniqueCue
usersParser
extends abstractPopulationCountMeasureParser
description How many developers reported using this language?
Expand Down
2 changes: 1 addition & 1 deletion lists/live.parsers
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ startedParser
float sortIndex 1.4
abstractStreamLinkParser
extends abstractUrlMeasureParser
cruxFromId
cueFromId
inScope subscribersParser
subscribersParser
extends abstractIntegerMeasureParser
Expand Down
14 changes: 7 additions & 7 deletions lists/podcasts.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ appleLinkParser
pattern ^(https\:\/\/podcasts\.apple\.com|appleLink)
description Apple link and number of ratings.
extends abstractQuickLinkParser
crux appleLink
// todo: should not need crux. currently needed by parseMeasures
cue appleLink
// todo: should not need cue. currently needed by parseMeasures
float sortIndex 1.7
javascript
computeValue(concept) {
// todo: fix binding bug so we can move this to abstract class
const hit = concept.find(particle => particle.getLine().startsWith("https://podcasts.apple.com/"))
return hit ? hit.firstAtom : ""
return hit ? hit.cue : ""
}

appleParser
Expand All @@ -91,18 +91,18 @@ youtubeLinkParser
pattern ^(https\:\/\/www\.youtube\.com|youtubeLink)
description YouTube link and number of subscribers.
float sortIndex 1.8
crux youtubeLink
// todo: should not need crux. currently needed by parseMeasures
cue youtubeLink
// todo: should not need cue. currently needed by parseMeasures
extends abstractQuickLinkParser
javascript
computeValue(concept) {
// todo: fix binding bug so we can move this to abstract class
const hit = concept.find(particle => particle.getLine().startsWith("https://www.youtube.com/"))
return hit ? hit.firstAtom : ""
return hit ? hit.cue : ""
}

pldbYoutubeParser
crux youtube
cue youtube
extends abstractCountParser
float sortIndex 1.81
description Number of subscribers.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"lodash": "^4.17.21",
"monaco-editor": "^0.34.1",
"numeral": "^2.0.6",
"scroll-cli": "^138.2.0",
"scroll-cli": "^142.0.1",
"scrollsdk": "^87.0.0",
"semver": "^7.6.2"
},
Expand Down
8 changes: 4 additions & 4 deletions scrollExtensions.parsers
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ohayoCodeParser
extends codeParser
cruxFromId
cueFromId
description Provide a direct link to analyze this data in Ohayo.
javascript
compile() {
Expand All @@ -9,15 +9,15 @@ ohayoCodeParser
}
observableParser
extends abstractScrollParser
cruxFromId
cueFromId
atoms cueAtom urlAtom
description Provide a direct link to analyze this data in Observable.
javascript
compile() {
return `<div class="scrollQuote">Analyze this data yourself in <a href="${this.getAtom(1)}">Observable</a></div>`
}
bashParser
cruxFromId
cueFromId
description Run a bash oneliner via nodejs and dumps stdout to pre tag.
catchAllAtomType stringAtom
extends abstractScrollParser
Expand All @@ -31,7 +31,7 @@ bashParser
}

monacoEditorParser
cruxFromId
cueFromId
extends abstractScrollParser
description A Monaco code editor.
baseParser blobParser
Expand Down

0 comments on commit f9fc4d0

Please sign in to comment.