Skip to content

Instantly share code, notes, and snippets.

View anstosa's full-sized avatar
🐮

Ansel Santosa anstosa

🐮
View GitHub Profile
@anstosa
anstosa / SpamDigest.gs
Last active December 30, 2022 08:25
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 = 'username@gmail.com';
const jobsByCategory = {
'Leadership': [],
'Engineering': [],
'Operations': [],
'Sales': [],
'Marketing': [],
'Design': [],
'Product': [],
'Recruiting': [],
@anstosa
anstosa / terminalsailingspace
Created August 16, 2021 23:09
WSF API Response (bug)
[
{
"TerminalID": 10,
"TerminalSubjectID": 115,
"RegionID": 1,
"TerminalName": "Friday Harbor",
"TerminalAbbrev": "FRH",
"SortSeq": 50,
"DepartingSpaces": [
{
@anstosa
anstosa / TickTick-UntickAll.js
Created September 23, 2018 23:12
JS to uncheck all items in a TickTick list. Copy and paste into bookmark URL field
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 September 6, 2017 05:45
SEC embedded XML document parser in 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)
@anstosa
anstosa / Preferences.sublime-settings
Created March 5, 2013 18:00
User Preferences for Sublime
{
"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 February 9, 2013 15:30
LastPass Chrome Theme
/* 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;
@anstosa
anstosa / keybase.md
Created October 24, 2014 20:38
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: