This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| // Enforce caller to provide generic type, where the generic type is also used as a type of one of the params. | |
| // This also prevents type inference from the caller's param type. | |
| async sendMessage<T = never, P extends T = T>( | |
| param1: string, | |
| param2: P | |
| ) {} |
| const letters = { | |
| 'A': 1, | |
| 'T': 4, | |
| 'M': 4, | |
| 'N': 5, | |
| } | |
| // tn = 9, 42 = 6, am = 5 | |
| // tn42am = 2 | |
| const ns0 = [1,3,5,6,9,10,14,15,16,18,21,24,27,32,33,36,42,46,50,51] |
| //https://eservices.tn.gov.in/eservicesnew/land/chittaCheckNewRural_en.html?lan=en | |
| // https://mrcoles.com/bookmarklet/ | |
| district = document.getElementById('districtCode'); | |
| district.value = "32"; | |
| district.dispatchEvent(new Event('change')); | |
| setTimeout(() => { | |
| talukCode = document.getElementById('talukCode'); | |
| talukCode.value = "05"; | |
| talukCode.dispatchEvent(new Event('change')); |
| const k = { | |
| Age1036: { | |
| FGB05: { | |
| 'FBG05 06hr 2020': { | |
| 'Section 1': [ | |
| 'file_example_TIFF_1MB - Copy (2).tiff', | |
| 'file_example_TIFF_1MB - Copy (3).tiff', | |
| 'file_example_TIFF_1MB - Copy (4).tiff', | |
| ], | |
| 'Section 2': [ |
| FROM node:alpine | |
| COPY . . | |
| ARG APP_ENV=dev | |
| RUN npm run build:$APP_ENV |
| <html> | |
| <body> | |
| <p id="text">Waiting to start</p> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| document.addEventListener('click', start); | |
| const p = document.getElementById('text'); | |
| const wait = (time = 1) => new Promise((r) => setTimeout(r, time * 1000)); | |
| speechSynthesis.getVoices(); |
| module.exports = new Proxy( | |
| { fgRed: "31", fgGreen: "32" }, // More colors @ https://stackoverflow.com/a/41407246/5947136 | |
| { get: (obj, prop) => `\x1b[${obj[prop]}m%s\x1b[0m` } | |
| ); |
| void main() { | |
| var lM = DateTime.parse('2020-01-01T00:00:01'); | |
| var lR = DateTime.parse('2020-01-01T00:00:02'); | |
| print(lM.compareTo(lR)); // Read | |
| lM = DateTime.parse('2020-01-01T00:00:02'); | |
| lR = DateTime.parse('2020-01-01T00:00:01'); | |
| print(lM.compareTo(lR)); // UnRead | |
| lM = DateTime.parse('2020-01-01T00:00:01'); | |
| lR = DateTime.parse('2020-01-01T00:00:01'); | |
| print(lM.compareTo(lR)); // UnRead |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).