Skip to content

Instantly share code, notes, and snippets.

😆
copy/pasting *is* programming 🥇

Predrag Stojadinović cope

😆
copy/pasting *is* programming 🥇
Block or report user

Report or block cope

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View quick files batch rename
const fs = require('fs');
fs.readdirSync('./').forEach(file => {
if(file.endsWith('.mkv')) {
let clean = file.split('.');
let pos = clean.indexOf('720p');
clean = clean.slice(0, pos).join(' ') + '.mkv';
console.log(file, clean, pos);
fs.renameSync(file, clean);
}
@cope
cope / wtf.js
Last active Feb 4, 2019 — forked from artalar/wtf.js
View wtf.js
/* VT100 terminal reset (<ESC>c) */
console.log('\033c');
/* numbers comparations */
/**/ [2] == 2;
//// true
/**/ [] + [];
You can’t perform that action at this time.