Skip to content

Instantly share code, notes, and snippets.

@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active August 16, 2024 17:33
Using Git with Subversion Mirroring for WordPress Plugin Development
@scribu
scribu / defaultdict.php
Created October 13, 2012 16:18
defaultdict in PHP
<?php
# http://scribu.net/blog/defaultdict-in-php.html
class Defaultdict implements ArrayAccess {
private $container = array();
private $default;
public function __construct( $default ) {
@binary1230
binary1230 / wells fargo website bulk statement downloader
Last active August 20, 2024 19:30
wells fargo ability to download all bank statements
3/18/2021: WE HAVE MOVED: For the latest instructions on how to use the bulk wells fargo PDF downloader,
please ignore this page and visit below:
https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md
@andrasguseo
andrasguseo / default-view-with-first-event.php
Last active May 1, 2017 19:37
Set the view to the date with the first upcoming event
<?php
/*
* In month view the month with the first upcoming event is shown
* Author: Barry Hughes, Andras Guseo
* Last updated: February 17, 2017
*/
add_action( 'tribe_events_pre_get_posts', 'fast_forward_month_view' );
function fast_forward_month_view( $query ) {
// Don't interfere with other month views (like mini-cal)
@kepano
kepano / obsidian-web-clipper.js
Last active November 14, 2024 04:15
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */