Skip to content

Instantly share code, notes, and snippets.

@kepano
kepano / obsidian-web-clipper.js
Last active May 16, 2024 02:32
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/" */
import SwiftUI
import PlaygroundSupport
// constants
let cardWidth: CGFloat = 343
let cardHeight: CGFloat = 212
let spacing = 36
let animation = Animation.spring()
let cardColors = [
Color(UIColor.systemRed),
@mackuba
mackuba / wwdc15.md
Last active August 6, 2022 17:28
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@gfontenot
gfontenot / Instapaper-Yojimbo-Sync.rb
Created March 11, 2011 16:32
Ruby script to archive "liked" items to Yojimbo. Modified version of original script written by Rhet Turnbull
####!/usr/bin/ruby
# Ruby script to import an RSS feed, for example from InstaPaper or delicious, into Yojimbo
# Items already in the Yojimbo Library will not be re-imported unless you delete them from Yojimbo
# To use this, you'll need to install rb-appscript with the following two Terminal commands:
# sudo gem update --system
# sudo gem install rb-appscript
#
# If you get an with gem update, you may need to update your version of rubygems as follows:
# Get latest rubygems from http://rubyforge.org/projects/rubygems/