This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Change Return Key R</name> | |
<item> | |
<name>Return to Command_R</name> | |
<identifier>remap.return2commandR</identifier> | |
<autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::COMMAND_R</autogen> | |
</item> | |
<item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-helm-for-only-dir ($query) | |
(interactive "sDir name: ") | |
(helm :sources | |
`((name . "helm for directory") | |
(candidates . (lambda () | |
(split-string | |
(shell-command-to-string | |
(format "find `pwd -P` -type d | grep '%s'" $query))))) | |
(action . (lambda ($cand) | |
(if (file-directory-p $cand) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Usage: | |
;; Make reagion, and then M-x my-sanctuarize-region. You can only edit the region area you made. | |
;; M-x my-sanctuarize-region-clear to clear the effect | |
(defvar my-sanctuarize-region-outer) | |
(defun my-sanctuarize-region () | |
(interactive) | |
(if mark-active |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq my-org-init-elisp-beg "# elisp") | |
(setq my-org-init-elisp-end "# end") | |
(setq my-org-init-elisp-comment "^#") | |
(defun my-org-init-elisp () | |
(save-excursion | |
(goto-char (point-min)) | |
(while (re-search-forward my-org-init-elisp-beg nil t) | |
(let ($beg $end $elisp) | |
(forward-line 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Assume you have already installed Font Awesome on the system | |
;; http://fortawesome.github.io/Font-Awesome/ | |
(require 'ov) | |
;; Overlay Library | |
;; https://github.com/ShingoFukuyama/ov.el | |
;; Example 1: Insert all fonts at the cursor position | |
(defun font-awesome-insert-all () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMACS_VER=24.3 | |
curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-${EMACS_VER}.tar.gz | |
curl -O https://gist.githubusercontent.com/anonymous/8553178/raw/c0ddb67b6e92da35a815d3465c633e036df1a105/emacs.memory.leak.aka.distnoted.patch.diff | |
svn co http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk inline_patch | |
tar xvfz emacs-${EMACS_VER}.tar.gz | |
cd emacs-${EMACS_VER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; require ov.el (ver 1.0.5) | |
;; https://github.com/ShingoFukuyama/ov.el | |
(require 'ov) | |
(defvar my-ov-font-size nil) | |
(defun my-ov-font-size-change (ratio &optional update-all-buffer) | |
(let ((ov-sticky-rear t) | |
(ov-sticky-front t)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIScrollView+Scrollabitily.h | |
// | |
// Created by FukuyamaShingo on 9/4/14. | |
// Copyright (c) 2014 FukuyamaShingo. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIScrollView (Scrollabitily) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
#import <WebKit/WebKit.h> | |
@interface ViewController () | |
@property (nonatomic, strong) WKWebView *webView; | |
@property (nonatomic, strong) UIActivityViewController *activityController; | |
@end | |
@implementation ViewController |