- Extract the contents of the zip file into a new directory and open the folder in VSCode.
- Initialise a new Node app in the directory. The entry point should be the existing
server.js
. - Install Express.
- Create an Express app in
server.js
that listens on port 3000. - Create a new request in Postman to make sure that the server is working.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from pdf2image import convert_from_path | |
title = input("Pdf files name: ") | |
def menu(): | |
global quality | |
print(""" | |
Image format: | |
1. Very High Resolution - 700 dpi |
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
/* | |
Test on how are JS's switch-cases are working. | |
I was in an argument w/ someone saying they turn into jumptables, | |
so I coded this up quickly to check. | |
With a few calls (so JIT won't kick in) it is clear that this executes | |
every case every time we enter the switch, so it is clear that jump tables | |
are not used in general, but they still might be used as an optional optimization, | |
but only when possible. | |
*/ |
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 moneyRawValue(value = 0, decimalSeparator = ",") { | |
if (typeof value === "number") return value; | |
const rawValue = parseFloat( | |
value | |
.replace(/\((?=\d+)(.*)\)/, "-$1") | |
.replace(new RegExp(`[^0-9-${decimalSeparator}]`, "g"), "") | |
.replace(decimalSeparator, ".") | |
); | |
return isNaN(rawValue) ? 0 : rawValue; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- Regular Expression Language - Quick Reference - MSDN documentation about Regex.
- Regular Expressions - MDN chapter about JavaScript regular expressions.
- Perl Regular Expression Syntax - Boost documentation.
- Perl 6 - Regexes in Perl 6.
- PCRE - Concatenated PCRE man pages.
- ECMAScript 6 - New Regexes in ECMAScript 6.
- regex header in C++ -
<regex>
in C++ - class Pattern in Java - Java 7 docs.
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 keypress = require('keypress'); | |
// make `process.stdin` begin emitting "keypress" events | |
keypress(process.stdin); | |
// listen for the "keypress" event | |
process.stdin.on('keypress', function (ch, key) { | |
// console.log('got "keypress"', key); | |
if(key && key.name == 'right'){ |
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 Header from "./Header" | |
const App = () => { | |
return ( | |
<div> | |
<Header /> | |
</div> | |
) | |
} |