Este codigo fue basado en el tutorial oficial de ipc de electron
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 interval = setInterval(() => { | |
const a = document.getElementById('business.pagination.nextPage'); | |
const lastPage = parseInt(document.getElementById('business.pagination.lastPage').innerText.split('=').pop()); | |
const left = lastPage - parseInt(a.innerText.split('=').pop()); | |
a.click() | |
if (left == 0) { | |
clearInterval(interval); | |
} | |
}, 5000); |
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
#!/usr/bin/env node | |
/** | |
* Duplicate File Finder CLI | |
* | |
* This script recursively scans a directory to find duplicate files based on their content checksum. | |
* It can list the duplicates in a text file and optionally delete them, keeping the version | |
* with the shortest path (closest to the root directory). | |
* | |
* |
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
#!/bin/bash | |
echo "1. Setting up tailwindcss | |
" | |
yarn add -D tailwindcss postcss autoprefixer | |
npx tailwindcss init | |
rm tailwind.config.js | |
echo "/** @type {import('tailwindcss').Config} */ |
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
#!/bin/bash | |
# Section 1: Getting prepared for the work | |
# Step 1: Install required packages | |
echo " | |
1. Getting prepared for the work... | |
" | |
yarn add @nestjs/passport @nestjs/jwt passport passport-jwt bcrypt mongoose @nestjs/mongoose uuidgenv4 passport-google-oauth20 dotenv @nestjs/mapped-types cookie-parser | |
# Step 2: Create directories for users and auth |
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
body{ | |
min-height: 100vh; | |
-webkit-animation:go 5s linear infinite; | |
-moz-animation:go 5s linear infinite; | |
-o-animation:go 5s linear infinite; | |
-ms-animation:go 5s linear infinite; | |
animation:go 5s linear infinite; | |
} | |
@-webkit-keyframes go{ |
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
/******************************************************************************** | |
* Copyright (c) 2022 Kenliten (http://kenliten.website) * | |
* * | |
* This file is a free document: 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 * | |
* (at your option) any later version. * | |
* This file is distributed in the hope that it will be useful, * | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
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
/******************************************************************************** | |
* Copyright (c) 2022 Kenliten (http://kenliten.website) * | |
* * | |
* This file is a free document: 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 * | |
* (at your option) any later version. * | |
* This file is distributed in the hope that it will be useful, * | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
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
/******************************************************************************** | |
* Copyright (c) 2022 Kenliten (http://kenliten.website) * | |
* * | |
* This file is a free document: 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 * | |
* (at your option) any later version. * | |
* This file is distributed in the hope that it will be useful, * | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
NewerOlder