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": { | |
"name": "JavaScript", | |
"slug": "javascript", | |
"description": "JavaScript is a dynamic programming language, widely used for web development and in various non-browser environments.", | |
"homepage": "https://developer.mozilla.org/en-US/docs/Web/JavaScript", | |
"icon": "['fab', 'js']" | |
}, | |
"HTML": { | |
"name": "HTML", |
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
const admin = require('firebase-admin'); | |
const fs = require('fs'); | |
const { geohashForLocation } = require('geofire-common'); | |
// Initialize Firebase Admin | |
const serviceAccount = require('./firebase-adminsdk.json'); | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount) | |
}); | |
const db = admin.firestore(); |
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
// Make sure to run "chmod +x taskling.js" before doing anything | |
// To add a task, use node taskling.js -add 'Your task here'. | |
// To remove a task, use node taskling.js -rm 'Task to remove'. | |
// To display all tasks, simply run node taskling.js. | |
const fs = require('fs'); | |
const path = require('path'); | |
const filePath = path.join(__dirname, 'taskling.txt'); | |
// Function to add a task |
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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<title>How to display RSS via JavaScript</title> | |
<!-- jQuery CDN --> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 3 columns, instead of 6. in line 1.
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
County,County Seat,Zip Codes | |
Adams, Friendship, 53934, 53932, 53927, 53926 | |
Ashland, Ashland, 54101, 54102 | |
Barron, Barron, 54812, 54813, 54816 | |
Brown, Green Bay, 54301, 54303, 54305, 54307, 54309, 54311, 54312, 54315, 54316, 54318, 54320, 54325, 54326 | |
Buffalo, Buffalo City, 54415, 54416, 54419 | |
Burnett, Grantsburg, 54840 | |
Calumet, Brussels, 54724, 54725, 54726, 54733, 54748, 54749, 54751, 54752 | |
Chippewa, Chippewa Falls, 54729, 54728, 54727, 54730, 54726, 54725, 54719 | |
Clark, Neillsville, 54458, 54455, 54456 |
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
const https = require('https'); | |
function createBlueskyPost() { | |
const BLUESKY_HANDLE = 'XXX'; | |
const BLUESKY_APP_PASSWORD = 'YYY'; | |
const data = JSON.stringify({ | |
identifier: BLUESKY_HANDLE, | |
password: BLUESKY_APP_PASSWORD, | |
}); |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
async function handleRequest(request) { | |
const url = new URL(request.url); | |
let path = url.pathname; | |
// WebFinger endpoint for discovery | |
if (path === '/.well-known/webfinger') { |
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
{ | |
"Wisconsin-Counties": [ | |
{ | |
"name": "Adams County", | |
"countySeat": "Friendship", | |
"zipCodes": [ | |
"53910", | |
"53934", | |
"53936", | |
"54613", |
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
const { initializeApp } = require('firebase/app'); | |
const { getFirestore, collection, addDoc } = require('firebase/firestore'); | |
const fs = require('fs'); | |
// Firebase configuration from your Firebase project | |
const firebaseConfig = { | |
apiKey: "XX", | |
authDomain: "XX", | |
projectId: "XX", | |
storageBucket: "XX", |
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
{ | |
"Wisconsin": { | |
"State Parks": [ | |
{ | |
"name": "Amnicon Falls State Park", | |
"type": "State Park", | |
"county": "Douglas County", | |
"parking": { | |
"latitude": 46.6082, | |
"longitude": -91.8922, |
NewerOlder