Skip to content

Instantly share code, notes, and snippets.

@AALMA
AALMA / massInsertOrUpdate.php
Last active September 25, 2020 07:04 — forked from RuGa/massInsertOrUpdate.php
Mass (bulk) insert or update on duplicate for Laravel 4/5
<?php
namespace App\Traits;
use DB;
use Carbon\Carbon;
trait MassInsertOrUpdate
{
protected $insert_or_update_chunk_size = 1000;
@AALMA
AALMA / mint_date_range.js
Last active June 28, 2018 01:10 — forked from n8henrie/mint_date_range.js
Bookmarklet to filter Mint transactions by date range
// mint_date_range.js
// https://mint.lc.intuit.com/questions/948537-mint-faq-how-can-i-view-transactions-within-a-specific-date-range
// jsmin <mint_date_range.js
//
// Copy the minified version below into a bookmarklet
// javascript:(function(){var currentUrl=window.location.href,destUrl="https://mint.intuit.com/transaction.event?",today=new Date,today_str=today.getMonth()+1+"/"+today.getDate()+"/"+today.getFullYear(),startDate=prompt("Start Date? Format: MM/DD/YYYY",today_str),endDate=prompt("End Date? Format: MM/DD/YYYY",today_str);destUrl+="&startDate="+startDate+"&endDate="+endDate,currentUrl.indexOf("mint.intuit.com")>-1?location.href=destUrl:window.open(destUrl);})();
var currentUrl = window.location.href;
var destUrl = "https://mint.intuit.com/transaction.event?";