This file contains hidden or 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
//npm init -y | |
//npm install --save puppeteer | |
//usage: node script.js /path/to/input.html /path/to/output.pdf | |
//script.js | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
This file contains hidden or 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
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or 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
// Install default settings | |
apm i atom-beautify file-icons platform-ide-terminal tool-bar |
This file contains hidden or 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
//nano /boot/cmdline.txt -> verander console | |
//const NR = "0600000000"; | |
const SerialPort = require('serialport'); | |
const Readline = SerialPort.parsers.Readline; | |
const port = new SerialPort('/dev/serial0', { | |
baudRate: 115200 | |
}); | |
const parser = port.pipe(new Readline({ delimiter: '\n' })); | |
This file contains hidden or 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
Store.Presence.find( '[email protected]').then(function(d){ | |
// kopie van json out | |
console.log(d); | |
}); | |
let out; | |
Store.Wap.statusFind( '[email protected]').then(function(d){ | |
console.log(d); |
This file contains hidden or 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 express = require('express'), | |
http = require('http'); | |
var app = express(); | |
var server = http.createServer(app); | |
var io = require('socket.io').listen(server); | |
const puppeteer = require('puppeteer'); | |
const URL = "https://web.whatsapp.com"; | |
let browser; | |
let page; |
This file contains hidden or 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 fs = require('fs'); | |
var md5 = require('md5'); | |
var dir = __dirname + "\\uploads"; | |
console.log(dir); | |
var test = "hi there"; | |
fs.readdir(dir, function(err, items) { | |
console.log(test); |
This file contains hidden or 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
# Windows | |
Putty | |
http://www.putty.org/ | |
# Burn image on SD card | |
https://etcher.io/ | |
https://www.raspberrypi.org/downloads/raspbian/ |
This file contains hidden or 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 fs = require('fs'); | |
const download = require('download'); | |
const htmlparser = require("htmlparser2"); | |
const get = require('simple-get'); | |
const pUrl = require('parse-url'); | |
const url = process.argv[2]; | |
const pu = pUrl(url); | |
const fsPath = require('fs-path'); | |
let base = `${pu.protocol}://${pu.resource}` ; |
This file contains hidden or 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 wifi | |
wifi.init() | |
woezel.install('zzz') |