Skip to content

Instantly share code, notes, and snippets.

@cr5315
cr5315 / config.py
Created June 24, 2017 18:22
Instagram Follower Count
# This is the list of Instagram accounts you want to get the follower counts of
# An @ is not required at the start of the name, and will be removed if there is one
INSTAGRAM_ACCOUNTS = [
"nasa"
]
# Telegram bot token acquired from the BotFather
TELEGRAM_BOT_TOKEN = "GET_ONE"
# Telegram "chat ids" where the message will be sent
@cr5315
cr5315 / usbank.js
Created March 24, 2016 20:28
Tasker script to calculate bank balance from SMS messages
console.log("US Bank Balance Tasker Task");
var TYPE_DEPOSIT = 0;
var TYPE_NEITHER = 1;
var TYPE_PURCHASE = 2;
var US_BANK_PHONE_NUMBER = 872265;
// Whether the script is being called by Tasker on an Android device, or it's being called on a PC
var onAndroid = (global("SDK") > 0);
@cr5315
cr5315 / ArrayHelper.java
Last active July 21, 2020 08:57
A class I wrote to save an ArrayList<String> to a single String to be saved in Android's SharedPreferences.
package com.example;
// Change the package name to match your package
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import android.content.Context;
import android.content.SharedPreferences;