最初にプリロード用スクリプトを用意します。
プリロードスクリプトでは、Symfony2のカーネルディレクトリ(KERNEL_DIR
)の設定と、Symfony2のブートストラップファイルの読み込みを行うようにします。
(app/testrunner_preload.php
に作成します)
This file contains hidden or 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
// ==UserScript== | |
// @name Deny Rakuten News | |
// @namespace http://espion.just-size.jp/archives/05/136155838.html | |
// @description Deny Rakuten News | |
// @include https://*.step.rakuten.co.jp/* | |
// @include https://*.travel.rakuten.co.jp/rsv/RsvInput.do* | |
// @include https://my.rental.rakuten.co.jp/action/my/* | |
// @include https://delivery.rakuten.co.jp/*?module=Default&action=OrderStep* | |
// @include https://auction.item.rms.rakuten.co.jp/* | |
// @include https://my.checkout.rakuten.co.jp/myc/purchase/Confirm |
This file contains hidden or 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
# | |
# Show branch name in Zsh's right prompt | |
# | |
autoload -Uz VCS_INFO_get_data_git; VCS_INFO_get_data_git 2> /dev/null | |
setopt prompt_subst | |
function rprompt-git-current-branch { | |
local name st color gitdir action |
This file contains hidden or 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
(let ((default-directory (expand-file-name "~/Dropbox/home/.emacs.d"))) | |
(add-to-list 'load-path default-directory) | |
(load (expand-file-name "~/Dropbox/home/.emacs.d/subdirs.el") t t t)) | |
(if (file-exists-p (locate-library "init")) | |
(load (locate-library "init") nil t nil)) |
This file contains hidden or 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
// ==UserScript== | |
// @name Fast look up JP and EN | |
// @namespace http://d.hatena.ne.jp/jimo1001/ | |
// @description Fast look up Japanese and English character strings. | |
// @include * | |
// ==/UserScript== | |
var VERSION = "2009.03.16"; | |
var SITEINFO_IMPORT_URLS = | |
[ |
This file contains hidden or 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
[OptimizeGoogle] | |
http://itpro.nikkeibp.co.jp/word/* | |
http://*.ceron.jp/* | |
http://ceron.jp/* | |
http://tweetbuzz.jp/* | |
/http:\/\/(\w+\.)*buzzurl\.jp//i | |
http://wadaino.jp/* | |
http://eimg.jp/* | |
http://*.eimg.jp/* | |
http://d.hatena.ne.jp/keyword/* |
This file contains hidden or 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
;;; -*- coding: utf-8; mode: emacs-lisp; -*- | |
;;; init-loader.el --- | |
;; Author: IMAKADO <[email protected]> | |
;; Author's blog: http://d.hatena.ne.jp/IMAKADO (japanese) | |
;; Prefix: init-loader- | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
This file contains hidden or 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 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
This file contains hidden or 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
;;; anything | |
(setq anything-command-map-prefix-key "C-x C-a") | |
(require 'anything) | |
;; C-z は C-; で実行できるようにする | |
(define-key anything-map (kbd "C-;") 'anything-execute-persistent-action) | |
(define-key anything-map (kbd "M-;") 'anything-execute-persistent-action) | |
(require 'anything-startup) | |
(dolist (map (list | |
anything-map | |
anything-c-buffer-map |
This file contains hidden or 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
# digit : 一桁の数字 | |
# roman : その桁の1, 5, 10を表す文字三文字 (ex: 'IVX') | |
def digit2roman(digit, roman) | |
a, b, c = roman.split(//) | |
case digit | |
when 0 then '' | |
when 1..3 then a * digit | |
when 4 then a + b | |
when 5 then b |
OlderNewer