Skip to content

Instantly share code, notes, and snippets.

View ShingoFukuyama's full-sized avatar

Shingo Fukuyama ShingoFukuyama

  • Japan
View GitHub Profile
(defun baz1 (arg)
arg)
(defsubst baz2 (arg)
arg)
;; ----------------------------------------------------------------------
(defsubst foo1 (aaa)
(baz1 aaa)
(baz2 aaa))
<?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>
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}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#import "ViewController.h"
#import <WebKit/WebKit.h>
@interface ViewController ()
@property (nonatomic, strong) WKWebView *webView;
@property (nonatomic, strong) UIActivityViewController *activityController;
@end
@implementation ViewController

こちらのページを見ていただきありがとうございます。
v1.1.8時点のOhajiki WebブラウザURLスキームです。

ohajiki://x-callback-url/open/

指定されたURLを開きます。

  url=                        // URLを指定します。__CLIPBOARD__と指定するとクリップボード内のURLを使用可能です。
  bookmarklet-name=           // 登録済みブックマーク名を利用して実行します
  current-tab                 // これを加えると新しいタブで開かなくなります
  x-source=                   // 任意の名前(呼び出し元のアプリ名など)
(when (executable-find "cmigemo")
(when (require 'migemo nil t)
(setq migemo-command "cmigemo")
(setq migemo-options '("-q" "--emacs"))
(setq migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict")
(setq migemo-user-dictionary nil)
(setq migemo-regex-dictionary nil)
(setq migemo-coding-system 'utf-8)
(load-library "migemo")
(migemo-init)))
Ohajiki is a powerful web browser that packs complete browsing control into a unique circle gesture and menu.
With tilt scrolling, bookmark importing from Firefox and Chrome, Launcher-like search, QR code scanning, and more, Ohajiki Web Browser is filled with features yet easy to use.
------------------------------------------------------
* Main feature
Circle gesture button
Infinite tab with thumbnail
Non-transitioning tree structure bookmark list
/* Before load user script for Ohajiki Web Browser
* 読み込み前用です。
* FacebookとTwitter関連のページを開くときにそれぞれの公式アプリで開くか確認を取ります。
* 動きますが、まだ他にも調整が必要かもしれません。
*/
(function(){
/* Facebook公式アプリで開く */
var facebook = 1; // 1:有効, 0:無効
var facebookConfirm = 0; // 確認してから移動するか
/* Twitter公式アプリで開く */
(function(){
var domain = location.host; // ドメイン
var url = location.href; // URL全体
var extension = location.pathname.split('.').pop(); // 拡張子
// よく切り替える機能はスイッチ用の変数があると、機能のON/OFFしやすい
var youtubeSwitch = 1; // 例: 1が有効、0が無効