Skip to content

Instantly share code, notes, and snippets.

@kepano
kepano / obsidian-web-clipper.js
Last active July 22, 2024 07:29
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/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@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)
@binary1230
binary1230 / wells fargo website bulk statement downloader
Last active June 3, 2024 18:58
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
@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 ) {
@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active July 6, 2024 15:54
Using Git with Subversion Mirroring for WordPress Plugin Development