Skip to content

Instantly share code, notes, and snippets.

Yuhei Maeda myuhe

View GitHub Profile
View inoreader_conpact.user.js
// ==UserScript==
// @name InoReader Compact
// @namespace http://thekryz.de
// @version 2013.09.20
// @description Makes InoReader more compact
// @match https://inoreader.com/*
// @match http://inoreader.com/*
// @match https://www.inoreader.com/*
// @match http://www.inoreader.com/*
// @include http://jp.inoreader.com/*
View init-twittering.el
(setq twittering-status-format "%i %s, %@: %FACE[font-lock-warning-face]{%FIELD-IF-NONZERO[✶%d]{favorite_count}} %FACE[font-lock-warning-face]{%FIELD-IF-NONZERO[↺%d]{retweet_count}}\n%FOLD[ ]{%T // from %f%L%r%R}\n")
View init-twittering.el
(setq twittering-status-format "%i %s, %@: %FACE[font-lock-warning-face]{%FIELD-IF-NONZERO[✶%d]{favorite_count}} %FACE[font-lock-warning-face]{%FIELD-IF-NONZERO[↺%d]{retweet_count}}\n%FOLD[ ]{%T // from %f%L%r%R}\n")
@myuhe
myuhe / InoReader_-_Open_Article_in_Background_Tab.user.js
Created May 9, 2015
InoReader - Open Article in Background Tab
View InoReader_-_Open_Article_in_Background_Tab.user.js
// ==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
View InoReader_kill_shortcuts.user.js
// ==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_Colorful_ListView.user.js
Last active Nov 19, 2017
Set different background colors to article header based on article sources
View InoReader_Colorful_ListView.user.js
// ==UserScript==
// @name InoReader Colorful ListView Mod
// @name:en InoReader Colorful ListView Mod
// @namespace https://gist.github.com/myuhe/c2207a76f77b65b072b6
// @version 0.9.1
// @description:ja InoReaderの記事を色分け
// @description:en Set different background colors to article header based on article sources
// @author http://sheephead.homelinux.org/
// @include http*://www.inoreader.com/*
// @include http*://inoreader.com/*
View initfuncs.el
(defmacro global-set-keys (&rest body)
`(progn
,@(mapcar #'(lambda (arg)
`(global-set-key
(kbd ,(car arg)) ,(cadr arg))) body)))
View *scratch*.el
(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")
View byte-run.el.el
(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)
You can’t perform that action at this time.