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
// Run code in Browser Console after enabling chrome debugging -- | |
// about:config => devtools.chrome.enabled => true | |
// https://developer.mozilla.org/docs/Tools/Browser_Console | |
try { | |
var tabPromise = SyncedTabs._internal.getTabClients(); | |
tabPromise.then((arrDevices) => { | |
if (arrDevices && arrDevices.length > 0){ | |
// Generate a string with the format of a bookmark export file | |
var d, e, out = '<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks Menu</H1>\n<DL><p>\n'; | |
const escapeHtmlEntities = function(aText){return (aText || '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''')}; |
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
import λ from "apex.js"; | |
import { Pool } from "pg"; | |
// connection details inherited from environment | |
const pool = new Pool({ | |
max: 1, | |
min: 0, | |
idleTimeoutMillis: 120000, | |
connectionTimeoutMillis: 10000 | |
}); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 20 columns, instead of 12. in line 8.
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
CSA2010,crime10,crime11,crime12,viol10,viol11,viol12,prop11,prop12,juvarr11,juvviol11,juvdrug11,domvio10,domvio11,shoot11,caslt11,narc11,caracc11,gunhom11,gunhom12 | |
Allendale/Irvington/S. Hilton,40.6,46.2,45.4,12.6,12.5,13.9,33.7,31.6,54.8,12.4,22.2,59.4,65.4,2.5,84.4,78.8,44.0,0.2,0.6 | |
Beechfield/Ten Hills/West Hills,33.6,36.1,36.6,8.4,7.2,7.0,28.9,29.6,22.0,9.1,5.3,47.9,44.8,2.0,51.2,24.7,31.9,0.2,0.2 | |
Belair-Edison,50.3,57.1,52.7,13.3,14.1,14.9,43.0,37.7,54.8,17.5,16.2,51.1,57.8,1.5,77.6,50.2,45.4,0.3,0.3 | |
Brooklyn/Curtis Bay/Hawkins Point,81.7,79.1,62.1,25.3,21.3,15.2,57.8,46.9,83.3,16.8,30.8,68.0,74.1,2.9,158.5,101.1,39.9,0.3,0.2 | |
Canton,61.0,64.8,57.9,8.3,7.7,6.7,57.2,51.2,81.5,14.8,7.4,34.3,39.6,0.0,46.2,4.0,32.8,0.0,0.0 | |
Cedonia/Frankford,43.7,48.4,46.7,12.0,11.3,12.1,37.1,34.6,46.5,9.5,10.7,60.2,70.2,0.8,10.7,22.8,26.5,0.3,0.3 | |
Cherry Hill,60.0,64.7,59.1,22.6,22.2,19.6,42.6,39.5,61.6,13.8,29.4,62.9,71.1,6.0,110.2,97.4,25.2,0.5,0.4 | |
Chinquapin Park/Belvedere,43.6,33.4,44.5,12.6,7.1,9.0,26.3,35.5,37.9,10.2,7.3 |