View Waze LiveMap Bookmarklet
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
javascript:$("ul.nav-pills a")[1].click(); $("#route_from input.query").attr("value", "your from address"); $("#route_to input.query").attr("value", "your to address"); $("button.find-routes-btn").click(); |
View scalding_alice.scala
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
/** | |
Get the last line of text in Alice in Wonderland that contains each of the top 20 frequent words in the book | |
NOT ACTUALLY TESTED, just logically combined. See fork source for original version that is mulch ore likely to work. | |
*/ | |
import scala.io.Source | |
val alice = Source.fromURL("http://www.gutenberg.org/files/11/11.txt").getLines.zipWithIndex.toList | |
val aliceWords = TypedPipe.from(alice).flatMap { case (text, _) => text.split("\\s+").toList } | |
val wordCount = aliceWords.map { word => (word, 1L) }.group.sum | |
val top20 = wordCount.groupAll.sortBy { case (word, count) => -count }.take(20).values | |
val lastLine = alicePipe.flatMap { case (text, line) => text.split("\\s+").toList.map { word => (word, line) }}.group.max |
View ConfluenceHeaderFragmentLinks.js
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
AJS.$("[id]").filter(":header").each(function(){ | |
try { | |
$(this).prepend("<a href='#" + $(this).attr("id") + "'>#</a>"); | |
catch(e) { console.log(e) } | |
}); |
View gsuite_shortcuts.js
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
//docs | |
javascript:window.open("https://docs.new"); | |
//sheets | |
javascript:window.open("https://sheets.new"); |
View video_speed.js
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
javascript:(function(s){document.querySelector('video').playbackRate = s;})(prompt('Video speed:')); |
View gciData_datalayer.js
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
if(typeof gciData !== "undefined" && gciData && gciData[0]) { | |
var w, d; | |
w = window.open('about:blank','','width=900,height=700,resizeable,scrollbars'); | |
d = w.document; | |
d.writeln('<title>gciData[0] Data Layer: ', location.href, '</title>'); | |
d.writeln('<style>td {vertical-align:top; font:9pt courier; border-bottom:1px solid #ddd}</style><table>'); | |
//sort the keys and only write out the non-objects | |
Object.entries(gciData[0]).sort((a, b) => a[0].localeCompare(b[0])).forEach(([key, value]) => { | |
if (typeof value !== "object") | |
d.writeln('<tr><td>', key, '</td><td>', value, '</td></tr>') |
View Link_to_Nearest_ID.js
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
javascript:void(location.hash = "#" + window.getSelection().anchorNode.parentNode.closest("*[id]").id) |
View edit_page.js
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
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0 |
View qubole_csv.js
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
javascript:try{$(".query-result-download-csv")[0].click()}catch{alert('Must be clicked from Qubole Workbench Command')} |
View google_keywords.js
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
//content-keywords only - OR | |
javascript:try{window.open("https://www.google.com/search?hl=en&gl=us&tbm=nws&authuser=0&q="+gciData[0]["content-keywords"].split(",").join(" OR "))}catch{alert("Must be Gannett article")} | |
//content keywords or title | |
javascript:try{window.open("https://www.google.com/search?hl=en&gl=us&tbm=nws&authuser=0&q="+gciData[0]["content-title"]+" OR "+gciData[0]["content-keywords"].split(",").join(" OR "))}catch{alert("Must be Gannett article")} |
OlderNewer