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 sourceMap = require('source-map'); | |
| var https = require('https'); | |
| var fs = require('fs'); | |
| var args = process.argv.slice(2); | |
| if(args.length === 0) { | |
| console.log("Usage: node index.js https://url.to/script.js:<line>:<column>"); | |
| return; | |
| } |
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 http = require('http') | |
| const port = 3000 | |
| var fs = require('fs'); | |
| const requestHandler = (request, response) => { | |
| console.log("Connected") | |
| response.setHeader("Access-Control-Allow-Origin", "*") | |
| response.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept") |
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
| function hash(string) { | |
| let index = 0; | |
| for(let i = 0; i < string.length; i++) { | |
| index += string.charCodeAt(i) * i; | |
| } | |
| return index % _size; | |
| } |
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
| # Paste here and save your klipper configuration | |
| # This file contains common pin mappings for the BIGTREETECH SKR V1.4 | |
| # board. To use this config, the firmware should be compiled for the | |
| # LPC1768 or LPC1769(Turbo). | |
| # See docs/Config_Reference.md for a description of parameters. | |
| [stepper_x] | |
| step_pin: P2.2 |
OlderNewer