The following command will change 'use strict'
to 'use rust'
!
find . -name "*.js" -type f ! -path "*/node_modules/*" -exec sed -i "s/'use strict'/'use rust'/g" {} +
Before we have a slow, legacy js project
Here is the golden question, imagine we have a file based routing solution and we want state. Say to pass down the database connection, or some auth guards to avoid the ../../...
hell. Whatever it is it needs to be easy to use and type safe
Say we have this:
import Router from 'packge';
const router = new Router('src/routes');
ctrl + shift + i
Script:
(()=>{const imageConfig={from:'https://cdn.discordapp.com/avatars/105280068598644736/a8d125774c2d58101b269acc27117362',to:'https://cdn.discordapp.com/attachments/757960538864091256/871398065871933490/Nimachan.png'};const change=()=>{console.log('Nimachan 3000 Running...');const images=()=>[...document.body.getElementsByTagName('img')].filter((i)=>i.src.startsWith(imageConfig.from)).map((image)=>(image.src=imageConfig.to));const text=()=>[...document.body.getElementsByTagName('span')].filter((span)=>span.innerHTML=='Nimajneb').map((span)=>(span.innerHTML='Nimachan'));text();images();console.log('Nimachan done')};setInterval(change,1000)})();
Here is the minified script, you can view the unminified version in the next file
function run(){GHOSTLog("Styles will be updated as best as possbile to before the rebrand");const n=document.createElement("style");n.innerHTML=GHOSTUpdatedStyles,document.body.appendChild(n),GHOSTLog("Let me know if there are any issues!")}function GHOSTLog(n){console.log(`%c${n}`,"color: #7289da; font-size: 20px; font-weight:600;")}GHOSTUpdatedStyles="\n:root {\n --brand-experiment-100: #f8f9fd !important;\n --brand-experiment-130: #f2f4fc !important;\n --brand-experiment-160: #ebeefa !important;\n --brand-experiment-200: #e3e7f8 !important;\n --brand-experiment-230: #dae0f5 !important;\n --brand-experiment-260: #d1d9f3 !important;\n --brand-experiment-300: #c7d0f0 !important;\n --brand-experiment-330: #b5c1ec !important;\n --brand-experiment-360: #a5b3e7 !important;\n --brand-experiment-400: #8ea1e1 !important;\n --brand-e
BACKUPSDIR="/var/lib/pterodactyl/backups" | |
BUCKET="" | |
CLUSTER="" | |
KEY="" | |
SECRET="" | |
NODE_NAME="" | |
FILE="$NODE_NAME-$(date +"%d-%m-%Y-at-%H-backup.tar.gz")" |
DIR="/backups" | |
BUCKET="" | |
CLUSTER="" | |
KEY="" | |
SECRET="" | |
USER="root" | |
PASSWORD="" |
*, *::before, *::after { box-sizing: border-box; } | |
.flexbox-corners { | |
background-color: DarkCyan; | |
height: 100%; | |
display: flex; | |
flex-flow: row wrap; | |
justify-content: space-between; | |
} |
*, *::before, *::after { box-sizing: border-box; } | |
.flexbox-corners { | |
background-color: DarkCyan; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content:space-between; | |
position: relative; | |
} |
// Get both numbers and store them | |
INP | |
STA NUM | |
INP | |
STA TIMES | |
// Multiplication Loop | |
LOOP LDA TOTAL | |
ADD NUM | |
STA TOTAL | |
LDA TIMES |