Skip to content

Instantly share code, notes, and snippets.

function getNumber(el) {
const value = el.querySelector('[data-e2e="video-views"]').textContent;
if (value.endsWith("K")) {
return parseInt(value.replace("K", "")) * 1_000;
} else if (value.endsWith("M")) {
return parseInt(value.replace("M", "")) * 1_000_000;
}
}
// claim_daily_login
const res = await fetch("https://gateway.venge.io/?request=request_ads_coin", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/x-www-form-urlencoded",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://venge.io/",
const rows = document.querySelectorAll('#dataGridRight table tbody tr.listCell');
const result = [];
rows.forEach(row => {
const cells = row.querySelectorAll('td');
const title = cells[0].textContent.trim();
if(!cells[2]) return;
@zisra
zisra / pig-game.js
Created May 22, 2024 23:56
Pig game
const ITERATIONS_USED = 10_000;
const MAX_LIMIT = 10;
const DICE_FACES = 6;
const MAX_DIGITS = 4;
function rollDice() {
return Math.floor(1 + Math.random() * DICE_FACES);
}
function rollDiceUntilBreak(limit) {
@zisra
zisra / books.md
Created June 17, 2024 13:09
Reading list
  • Alan Watts - Nature, Man and Woman
  • Alasdair MacIntyre - Rational and dependent animals. Why Human Beings Need Virtues
  • Alasdair MacIntyre - History of Ethics
  • Alasdair Macintyre - After Virtue
  • Alberto Coffa, R. S. Cohen, L. Laudan - Physics, Philosophy and Psychoanalysis Essays in Honour of Adolf Grünbaum
  • Alessandra Campo, Simone Gozzano - Einstein vs Bergson
  • Alex Malpass, Marianna Antonutti Marfori - The History of Philosophical and Formal Logic From Aristotle to Tarski
  • Alex Rosenberg, Lee McIntyre - Philosophy of Science A Contemporary Introduction
  • Alexander Miller - Contemporary Metaethics An Introduction
  • Alexander R. Pruss - Actuality, Possibility, and Worlds
for f in *.webm; do ffmpeg -i "$f" -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${f%.webm}.mp4"; done
const str = `Subdivision,Kabul,Ghor,Kandahar,Herat,Balkh,Helmand,Badakhshan,Kunduz,Badghis,Baghlan,Bamyan,Daykundi,Farah,Faryab,Ghazni,Jowzjan,Kapisa,Khost,Kunar,Laghman,Logar,Nangarhar,Nimruz,Nuristan,Paktia,Paktika,Panjshir,Parwan,Samangan,Sar-e Pol,Takhar,Urozgan,Wardak,Zabul,Tiranë,Durrës,Shkodër,Vlorë,Berat,Elbasan,Fier,Gjirokastër,Korçë,Kukës,Lezhë,Dibër,Algiers,Bouïra,Mila,Annaba,Oran,Constantine,Médéa,El Menia,Tamanrasset,Adrar,In Salah,Naâma,Saïda,Tébessa,Tindouf,Tlemcen,Batna,Béchar,Béjaïa,Biskra,Blida,Chlef,Djanet,Djelfa,El Oued,Guelma,Illizi,Mascara,Ouargla,Sétif,Aïn Defla,Aïn Témouchent,Béni Abbès,Bordj Baji Mokhtar,Bordj Bou Arréridj,Boumerdès,El Bayadh,El M'Ghair,El Taref,Ghardaïa,In Guezzam,Jijel,Khenchela,Laghouat,Mostaganem,M'Sila,Ouled Djellal,Oum El Bouaghi,Relizane,Sidi Bel Abbès,Skikda,Souk Ahras,Tiaret,Timimoun,Tipaza,Tissemsilt,Tizi Ouzou,Touggourt,Andorra la Vella,Encamp,Sant Julià de Lòria,Escaldes-Engordany,Ordino,Canillo,La Massana,Luanda,Bié,Cabinda,Benguela,Huíla,Zaire,Cuando Cub
@zisra
zisra / default.md
Created June 22, 2025 13:22 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.