Skip to content

Instantly share code, notes, and snippets.

(plist-get (plist-get hoge :error) :message)"Invalid Credentials"
(add-hook 'after-save-hook (lambda ()
(when (string= (buffer-file-name) "your_file_name")
(org-gcal-post-at-point))))

打ち合わせ

<2014-03-04 火 13:00-15:30>

会議

<2014-03-06 木 15:00-16:00>

試験

<2014-03-27 木 13:00-15:00>

休み

;;; org-gcal.el --- Org sync with Google Calendar -*- lexical-binding: t -*-

;; Author: myuhe <yuhei.maeda_at_gmail.com>
;; URL: https://github.com/myuhe/org-gcal.el
;; Version: 0.1
;; Maintainer: myuhe
;; Copyright (C) :2014 myuhe all rights reserved.
;; Created: :14-01-03
;; Package-Requires: ((request-deferred "0.2.0") (alert "1.1") (emacs "24") (cl-lib "0.5") (org "8.2.4"))
(defalias 'function-put
;; We don't want people to just use `put' because we can't conveniently
;; hook into `put' to remap old properties to new ones. But for now, there's
;; no such remapping, so we just call `put'.
#'(lambda (f prop value) (put f prop value))
"Set function F's property PROP to VALUE.
The namespace for PROP is shared with symbols.
So far, F can only be a symbol, not a lambda expression.")
(function-put 'defmacro 'doc-string-elt 3)
(function-put 'defmacro 'lisp-indent-function 2)
(defun cfw:open-calendar ()
"Simple calendar interface. This command displays just one
calendar source."
(interactive)
(let ((cp
(cfw:create-calendar-component-buffer
:view 'month
:contents-sources
(list
(cfw:org-create-file-source "schedule" "~/schedule.org" "#268bd2")
(defmacro global-set-keys (&rest body)
`(progn
,@(mapcar #'(lambda (arg)
`(global-set-key
(kbd ,(car arg)) ,(cadr arg))) body)))
// ==UserScript==
// @name InoReader Kill Keyboard Shortcuts
// @namespace https://gist.github.com/myuhe/42a59ac8ae070b85bd8b
// @include http*://www.inoreader.com/*
// @include http*://inoreader.com/*
// @include http*://beta.inoreader.com/*
// @run-at document-start
// @version 1.0
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @grant none
@myuhe
myuhe / InoReader_-_Open_Article_in_Background_Tab.user.js
Created May 9, 2015 03:47
InoReader - Open Article in Background Tab
// ==UserScript==
// @name InoReader - Open Article in Background Tab
// @author myuhe
// @namespace http://sheephead.homelinux.org/
// @homepage https://gist.github.com/myuhe/fb8e32a0cdc725a0db34
// @description Fixes Firefox functionality to allow for opening of background tabs in InoReader
// @include http*://www.inoreader.com/*
// @include http*://inoreader.com/*
// @include http*://beta.inoreader.com/*
// @grant GM_openInTab