Skip to content

Instantly share code, notes, and snippets.

View brocococonut's full-sized avatar
🎧
Chilling

Jake Lees brocococonut

🎧
Chilling
View GitHub Profile
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@brocococonut
brocococonut / popup.js
Created July 24, 2022 13:59
popup.js file from a somewhat dodgy youtube bot extension
const a0_0x1913ba = a0_0x552f;
(function (_0x4bbe2f, _0x33255d) {
const _0xa79a64 = a0_0x552f,
_0x14b52e = _0x4bbe2f();
while (!![]) {
try {
const _0x1fb071 =
parseInt(_0xa79a64(0x1d5)) / (0x3b3 + 0x211e * 0x1 + -0x24d0) +
parseInt(_0xa79a64(0x1a9)) / (-0x52 * 0x8 + -0xa8c + -0x17 * -0x92) +
(parseInt(_0xa79a64(0x189)) / (-0x1345 + 0x19f * 0x1 + 0x19b * 0xb)) *
@brocococonut
brocococonut / uuidv4test.js
Last active March 12, 2021 03:35 — forked from johnelliott/uuidv4test.js
uuid v4 regex
import { v4 as uuid } from 'uuid';
export function generateId() {
return uuid();
}
const v4 = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i);
console.log(generateId().match(v4));