Skip to content

Instantly share code, notes, and snippets.

@robertkirkman
robertkirkman / Puppeteer-on-Android.md
Last active April 14, 2025 08:22
How To Run Node.js Puppeteer On Android

Headless Mode

pkg install x11-repo
pkg install nodejs firefox
@staberas
staberas / interactive_websearch_chat.py
Last active April 13, 2025 13:24
interactive_websearch_chat.py
# This script requires to have some basic Python skills
# - Install python dependencies (thanks to TitwitMuffbiscuit on reddit) :
# pip install nltk beautifulsoup4 googlesearch-python trafilatura wolframalpha
#
# If you get this error "Resource punkt not found", it's because Punkt sentence tokenizer for Natural Language Toolkit is missing.
# Edit the file and add this before
# from nltk.tokenize import word_tokenize ,
# it will download the necessary english.pickle:
# import nltk
# nltk.download('punkt')
@taneltm
taneltm / README.md
Last active April 12, 2024 08:47
Obsidian timeline CSS snippet

Obsidian timeline

This is a CSS snippet for Obsidian.md to create a timeline in your daily notes.

To include the timeline in your daily note, add the following to your daily note template:

<div data-timeline="{{date:DDD}}"></div>

Preview can be found here: https://codepen.io/taneltm/pen/eYyeyBe

@JoshuaGrams
JoshuaGrams / reveal.tw
Last active February 10, 2025 20:52
Line-by-line text reveal: Twine/SugarCube.
:: Some Passage
This will show at the start.
@@.hide;This will show after you click or press space/enter.@@
@@.hide;.nocontinue;This will show after you advance again, but will <em>not</em> have the continue marker.@@
<span class="hide">HTML tags work fine too, but the other notation is shorter.</span>
@alphapapa
alphapapa / fitness.org
Last active February 19, 2025 04:32
An Emacs food/weight/workout tracker self-contained in a single Org file

Plots

/home/me/org/double-plot.png

Tasks

@penelopede
penelopede / support.md
Last active May 1, 2022 10:47
Support Resources for /r/SeriousConversation/w/resources

A reference of support resources. See the index to jump to a relevant section ⇢  

^(Need help now?) ^( call) ^1-800-273-TALK ^(8255) ^or ^text ^START ^to ^741-741 ^for ^the ^(Crisis Text Line.) ^(International lines can be found) ^(here) ^and ^(here.)


General Support

7 Cups of Tea www.7cups.com

@darekkay
darekkay / trakt-backup.php
Last active April 15, 2025 03:16
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";