Skip to content

Instantly share code, notes, and snippets.

Avatar

Ansel Santosa anstosa

View GitHub Profile
@anstosa
anstosa / SpamDigest.gs
Last active Feb 19, 2020
Daily Spam Digest for Google Apps Script
View SpamDigest.gs
// 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 = 'username@gmail.com';
@anstosa
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');
console.log(completedCheckboxes);
completedCheckboxes.forEach((checkbox) => checkbox.click());
}
const showMoreButton = document.querySelector('.show-more');
if (showMoreButton.style.display === 'none') {
uncheckAll();
@anstosa
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 = "http://cran.us.r-project.org")'
library(XML)
# Select input file
FILENAME <- "./0001086364-17-000005.txt"
# Read raw file into memory
book <- readLines(FILENAME)
View keybase.md

Keybase proof

I hereby claim:

  • I am anstosa on github.
  • I am anstosa (https://keybase.io/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
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,
"ignored_packages":
@anstosa
anstosa / Custom.css
Created Feb 9, 2013
LastPass Chrome Theme
View Custom.css
/* LASTPASS */
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.