Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
#!/usr/bin/env ruby | |
# Works with IFTTT recipe https://ifttt.com/recipes/125999 | |
# | |
# Set Hazel to watch the folder you specify in the recipe. | |
# Make sure nvALT is set to store its notes as individual files. | |
# Edit the $target_folder variable below to point to your nvALT | |
# ntoes folder. | |
require 'date' | |
require 'open-uri' | |
require 'net/http' |
@implementation UITextView (RSExtras) | |
static BOOL stringCharacterIsAllowedAsPartOfLink(NSString *s) { | |
/*[s length] is assumed to be 0 or 1. s may be nil. | |
Totally not a strict check.*/ | |
if (s == nil || [s length] < 1) | |
return NO; |
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
tell application "System Events" | |
tell process "Finder" | |
if window 1 exists then | |
tell application "Finder" | |
set thePath to get quoted form of POSIX path of (target of front Finder window as text) | |
return "cd " & thePath & return | |
end tell | |
else | |
display alert "Finder doesn't have a window open." as warning giving up after 2 | |
end if |
#!/usr/bin/env python | |
# A quick and dirty script to rename a pinboard.in tag. | |
# I'll probably update this become a proper command line app one day | |
import urllib2 | |
import pinboard | |
pinuser = "" | |
pinpasswd = "" |
Now moved here... | |
https://github.com/jonohunt/Mute-filters-for-Tweetbot |
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
var express = require('express'); | |
var sys = require('util'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = process.env['TWITTER_CONSUMER_KEY']; | |
var _twitterConsumerSecret = process.env['TWITTER_CONSUMER_SECRET']; | |
console.log("_twitterConsumerKey: %s and _twitterConsumerSecret %s", process.env['TWITTER_CONSUMER_KEY'], process.env['TWITTER_CONSUMER_SECRET']); |