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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Page Title</title> | |
<base href="https://example.com/page.html"> | |
<link rel="stylesheet" href="styles.css" type="text/css"> | |
<style type="text/css"> | |
</style> |
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
'use strict'; | |
const assert = require('node:assert'); | |
const fs = require('node:fs/promises'); | |
const DATA_HOME_URL = 'https://storage.googleapis.com/access-logs-summaries-nodejs/index.html'; | |
const DATA_FILE_PATH = 'data.json'; | |
const DATA_CSV_PATH = 'data.csv'; | |
const DATA_CSV_SEVEN_DAY_PATH = 'data-seven-day-avg.csv'; | |
const LINES = ['14', '16', '18', '19', '20']; | |
async function main() { |
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
exports.notification = (req, res, next) => { | |
const notificationPayload = { | |
notification: { | |
title: 'Blogial new post', | |
body: req.body.title, | |
icon: 'assets/icons/icon-512x512.png' | |
} | |
}; | |
Subscription.find() | |
.then(subscriptions => { |
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
var five = require("johnny-five"), | |
board, sensor; | |
board = new five.Board(); | |
board.on("ready", function() { | |
sensor = new five.Sensor({ pin: 0, freq: 250 }); | |
board.repl.inject({ | |
sensor: sensor | |
}); |
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
node_modules |