Skip to content

Instantly share code, notes, and snippets.

TakesxiSximada TakesxiSximada

  • sximada
  • Tokyo/Japan
Block or report user

Report or block TakesxiSximada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TakesxiSximada
TakesxiSximada / testing.el
Last active Sep 17, 2018
markdown内のcode blockをpythonで1行ずつ実行する
View testing.el
;;; our-execblock.el --- Markdown code block execution helper for Emacs -*- lexical-binding: t -*-
;; Copyright (C) 2018 sximada
;; Author: sximada
;; Version: 1.0.0
;; Package-Version: 20180917.0001
;; Keywords: markdown
;; This program is free software; you can redistribute it and/or modify
@TakesxiSximada
TakesxiSximada / testing.el
Created Sep 12, 2018
現在開いているファイルのパスをコピーする
View testing.el
(defun our-buffer-copy-current-file-path ()
(interactive)
(let ((path (buffer-file-name)))
(if path
(progn
(kill-new path)
(message (format "Copied: %s" path)))
(message (format "Cannot copied")))))
@TakesxiSximada
TakesxiSximada / testing.el
Created Sep 10, 2018
xwidget-webkit-browse-urlを使ってgoogleの検索を行う
View testing.el
(defun our-google (word)
(interactive "sSearch: ")
(let* ((word (string-join (split-string word " ") "+"))
(url (format "https://www.google.co.jp/search?q=%s" word)))
(xwidget-webkit-browse-url (url-encode-url url) t)))
View .agignore.txt
*~
*.swp
*.bak
*.old
tmp
old
.vim/bundle
.vim/dict
.git
.svn
@TakesxiSximada
TakesxiSximada / README.md
Created Sep 2, 2018
nuxtが生成するハッシュ値がどの範囲で変更になるのか調べる
View README.md

nuxtが生成するハッシュ値がどの範囲で変更になるのか調べる

最初の状態

    pages/login.38d6a3574ef7f24208c7.js    3.59 kB       0  [emitted]  pages/login
    pages/index.95646d9712ba91c18314.js    3.69 kB       1  [emitted]  pages/index
layouts/default.52aef6d75cf0748a8cee.js    1.42 kB       2  [emitted]  layouts/default
         vendor.9c7eb01e587af9c61f5f.js     155 kB       3  [emitted]  vendor
            app.4402cd14b5769b636d07.js    30.1 kB       4  [emitted]  app
@TakesxiSximada
TakesxiSximada / mast-search.el
Created Sep 1, 2018
エゴサ用major-mode
View mast-search.el
(require 'dom)
(require 's)
(require 'url)
(defconst mast-search-url "DUMMY")
(defconst mast-search-user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36")
(defvar mast-search-buffer-name "*mast-search*")
(defvar mast-search-buffer nil)
(defvar mast-search-posts nil)
@TakesxiSximada
TakesxiSximada / sximada.org
Created Aug 31, 2018
put-text-propertyを使ってテキストのRead Onlyを設定する
View sximada.org
--------- --------- ---------|
--------+ +++++++++ ---------|
--------- --------- ---------|

(put-text-property 40 50 'read-only t)

+ のところがREAD ONLYになる 文字を移動してもその属性の文字の箇所にプロパティがついてくる

@TakesxiSximada
TakesxiSximada / sximada.org
Created Aug 31, 2018
interactiveに渡せる文字
View sximada.org
使える文字列内容
b既存バッファ名
Bバッファ名(新規含む)
dディレクトリ名
f既存ファイル名
Fファイル名(新規含む)
n数値
s文字列
rリージョン
@TakesxiSximada
TakesxiSximada / *scratch*.el
Created Aug 31, 2018
複数のorg-modeのファイルをF11キーで切り替える
View *scratch*.el
(use-package dash)
(setq our-org-files '("/path/to/your/org-file-01.org"
"/path/to/your/org-file-02.org"
"/path/to/your/org-file-03.org"
))
(defun our-org-next-file ()
You can’t perform that action at this time.