Skip to content

Instantly share code, notes, and snippets.


Ansel Santosa anstosa

View GitHub Profile
anstosa /
Last active Feb 19, 2020
Daily Spam Digest for Google Apps Script
// Daily Spam Digest for Gmail.
// Creates a single digest email with deep links to any spam messages you received that day
// so you can easily check for false positives and retrieve them
// Usage:
// 1. Replace EMAIL with your email
// 2. Create trigger whenever you want to get the email
// 3. If you set your trigger for the morning, you likely want to edit the date settings so you don't miss any
function run() {
const EMAIL = '';
anstosa / TickTick-UntickAll.js
Created Sep 23, 2018
JS to uncheck all items in a TickTick list. Copy and paste into bookmark URL field
View TickTick-UntickAll.js
javascript: (() => {
function uncheckAll() {
const completedCheckboxes = document.querySelectorAll('.completed .t-check');
completedCheckboxes.forEach((checkbox) =>;
const showMoreButton = document.querySelector('.show-more');
if ( === 'none') {
anstosa / script.r
Created Sep 6, 2017
SEC embedded XML document parser in R
View script.r
# Load XML library
# If not already installed, install with
# sudo Rscript -e 'install.packages("XML", repos = "")'
# Select input file
FILENAME <- "./0001086364-17-000005.txt"
# Read raw file into memory
book <- readLines(FILENAME)

Keybase proof

I hereby claim:

  • I am anstosa on github.
  • I am anstosa ( on keybase.
  • I have a public key whose fingerprint is 3876 BB2B C746 7E58 93C1 1A86 D421 D535 0187 6E52

To claim this, I am signing this object:

anstosa / Preferences.sublime-settings
Created Mar 5, 2013
User Preferences for Sublime
View Preferences.sublime-settings
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"detect_slow_plugins": false,
"font_size": 9,
"highlight_line": true,
anstosa / Custom.css
Created Feb 9, 2013
LastPass Chrome Theme
View Custom.css
body[style *= "iVBORw0KGgoAAAANSUhEUgAAA"] ::-webkit-scrollbar {
height: 10px !important;
width: 10px !important;
body[style *= "iVBORw0KGgoAAAANSUhEUgAAA"] ::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2) !important;
border-radius: 0 !important;
You can’t perform that action at this time.