Skip to content

Instantly share code, notes, and snippets.

IMTheNachoMan imthenachoman

Block or report user

Report or block imthenachoman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@imthenachoman
imthenachoman / BofA and PNC Daily Balance Consolidator.js
Last active Mar 11, 2020
BofA and PNC daily balance e-mail consolidator with running tally
View BofA and PNC Daily Balance Consolidator.js
var dailyBankingHistoryGmailSearchQuery = '(from:(onlinebanking@ealerts.bankofamerica.com) subject:("Your Available Balance") "your available balance") OR (from:(pncalerts@pnc.com) subject:(("Your Credit Card Balance" AND -"Your Credit Card Balance Is") OR "Your Savings Account Balance" OR "Your Checking Account Balance"))';
var dailyBalanceDaysToKeep = 5;
function getDailyBankBalance()
{
// get all the emails
var emailThreads = GmailApp.search(dailyBankingHistoryGmailSearchQuery);
// if we have no mails then stop
if(!emailThreads.length) return;
View keybase.md

Keybase proof

I hereby claim:

  • I am imthenachoman on github.
  • I am imthenachoman (https://keybase.io/imthenachoman) on keybase.
  • I have a public key whose fingerprint is 44EC 4F75 2238 9751 A658 C802 4A5E 04FD 2EA2 32D7

To claim this, I am signing this object:

@imthenachoman
imthenachoman / README.rst
Last active Apr 5, 2020 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText
View README.rst

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as

@imthenachoman
imthenachoman / getContactDates.js
Created Sep 21, 2017
gets all dates (like birthdays and anniversaries) from Google Contacts and sends an e-mail with their details
View getContactDates.js
var EMAIL_TO = "...@gmail.com";
var NUM_ADDITIONAL_DAYS = 8;
var TODAY = new Date((new Date()).toDateString());
var ONE_DAY = 24*60*60*1000;
function getContactDates()
{
var todayYear = TODAY.getFullYear();
var todayNumber = TODAY.getTime();
// date we want to go back to for previous dates
@imthenachoman
imthenachoman / unlike.js
Last active Aug 29, 2017
JavaScript snippet to unlike all your liked activity on FaceBook
View unlike.js
function startIt()
{
document.querySelectorAll(".mrs._2fmu.img.sp_XaQA31b2wGR_2x.sx_06c0ed")[0].click();
setTimeout(function()
{
[].slice.call(document.querySelectorAll("a[rel='async-post'][role='menuitem']")).pop().click();
setTimeout(startIt, 2000);
}, 1000);
}
@imthenachoman
imthenachoman / nachoDateDiff.js
Last active Aug 22, 2017
javascript pretty date difference with year, month, day
View nachoDateDiff.js
function nachoDateDiff(startDate, endDate)
{
// if start date is past end date stop
if(startDate > endDate) return null;
// calc the various start/end dates
var sy = startDate.getFullYear(),
ey = endDate.getFullYear(),
sm = startDate.getMonth(),
em = endDate.getMonth(),
@imthenachoman
imthenachoman / nXHR.js
Last active Oct 12, 2016
cross-browser (IE 8+) XMLHttpRequest that reuses an existing request for recurring requets
View nXHR.js
/* nXHR
* ----------------------------------------------------------------------------
* cross-browser (IE 8+) XMLHttpRequest that reuses an existing request for recurring requets
*
* url : https://gist.github.com/imthenachoman/8b4bbc1e4aa39fc5e6ef
* author : Anchal Nigam
* e-mail : imthenachoman@gmail.com
*
* Copyright (c) 2015 Anchal Nigam (imthenachoman@gmail.com)
* Licensed under the MIT license: http://opensource.org/licenses/MIT
@imthenachoman
imthenachoman / nCreateElement.js
Last active Oct 12, 2016
a JS shim to quickly create DOM elements using document.createElement
View nCreateElement.js
/* nCreateElement
* ----------------------------------------------------------------------------
* a JS shim to quickly create DOM elements using document.createElement
*
* url : https://gist.github.com/imthenachoman/4a72ff3f51133ab7eae3
* author : Anchal Nigam
* e-mail : imthenachoman@gmail.com
*
* Copyright (c) 2015 Anchal Nigam (imthenachoman@gmail.com)
* Licensed under the MIT license: http://opensource.org/licenses/MIT
@imthenachoman
imthenachoman / rAF.js
Last active Oct 12, 2016 — forked from paulirish/rAF.js
cross-browser (IE 8+) animation framework with easings
View rAF.js
/* rAF
* ----------------------------------------------------------------------------
* cross-browser (IE 8+) animation framework with easings
*
* url : https://gist.github.com/imthenachoman/d19dc4cf6e53ad3664ea
* author : Anchal Nigam
* e-mail : imthenachoman@gmail.com
*
* Copyright (c) 2015 Anchal Nigam (imthenachoman@gmail.com)
* Licensed under the MIT license: http://opensource.org/licenses/MIT
You can’t perform that action at this time.