Skip to content

Instantly share code, notes, and snippets.

(function(global, undefined) {
"use strict";
var Pocket = (function() {
var https = require("https");
function Pocket(opt) {
this.consumer_key = opt.consumer_key;
this.access_token = opt.access_token;
}
@panweizeng
panweizeng / gist:2472157
Last active January 10, 2017 04:29
evernote:在日志notebook下自动创建当天日期的note
--在Automator新建Service,Utilities选Run AppleScript,粘帖以下代码,保存命名为evernote-diarynew
--在System Prefrences > Keyboard > Application Shortcut,点+号新增
--Application选Evernote, Menu Title写evernote-diarynew, Keyboard Shortcut自选,推荐Command+D
on run {input, parameters}
set yearStr to do shell script "date +%Y"
set dateStr to do shell script "date +%Y-%m-%d"
set diaryNotebook to "[日志-" & yearStr & "]"
set searchQuery to ("notebook:" & diaryNotebook & " intitle:" & dateStr) as string
set searchQueryCollection to ("notebook:" & diaryNotebook) as string