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
(defvar display-couple-parenthesis-type "token") | |
(defvar display-couple-parenthesis-process nil) | |
(defvar display-couple-parenthesis-interval 0.5) | |
;; 表示を行表示に切り替える | |
(defun switch-display-couple-parenthesis-line () | |
"switch display couple parenthesis type to line" | |
(interactive) | |
(setq display-couple-parenthesis-type "line")) |
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
(defvar polygon-flag nil) | |
(defun polygon-shock () | |
(interactive) | |
(cond | |
(polygon-flag | |
(custom-set-faces | |
'(default ((t (:background "red" :foreground "white"))))) | |
(setq polygon-flag nil)) | |
(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
(defvar ebb:display-taget "" | |
"ebbで表示する文字を設定") | |
(defcustom ebb:display-limit 7 | |
"表示する文字数を設定" | |
:type 'integer | |
:group 'ebb) | |
(defcustom ebb:display-interval 0.5 |
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
;; reference-user-comment.el | |
;(global-set-key "\C-c\C-r" 'ruc-reference-document) | |
(require 'popup) | |
(require 'gtags) | |
(defun ruc-reference-document () | |
"This function display document comment | |
from user defined function | |
@return (popup) document" |
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
;; | |
;; ---- how to use -------- | |
;; | |
;; M-x fit:generate | |
;; | |
;; ---- setting templete and varibale -------- | |
;; | |
;; (setq template-dir "~/template") | |
;; | |
;; (fit:register-template "経営会議" "management-meeting" fit:week-tuesday) |
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 file-size (make-hash-table :test #'equal)) | |
(defun re-load-log (file-name) | |
(interactive) | |
(let (point-last-read regenesis) | |
(setq point-last-read (gethash file-name file-size)) | |
(with-temp-buffer | |
(insert-file-contents file-name) | |
(when (> point-last-read (point-max)) | |
(setq point-last-read (point-min))) | |
(when (not point-last-read) |
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
#! /usr/bin/env ruby | |
require "capybara" | |
require "selenium-webdriver" | |
Capybara.current_driver = :selenium | |
module Crowler | |
class Google | |
include Capybara::DSL |
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
p [[1,2],[3,4],[5,6]].flatten | |
# => [1, 2, 3, 4, 5, 6] |
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 sys | |
sys.path.append('/usr/local/lib/python2.7/site-packages') | |
import cv2 | |
import os | |
argv = sys.argv | |
#HAAR分類器の顔検出用の特徴量 | |
#cascade_path = "/usr/local/Cellar/opencv/2.4.9/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml" |
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
#! /usr/bin/env ruby | |
require "capybara" | |
require "selenium-webdriver" | |
session = Capybara::Session.new(:selenium) | |
session.visit 'http://example.com' | |
session.save_screenshot('screenshot.png') | |
OlderNewer