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 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2' | |
md5 '917ce0054ef63773078a6e99b55df1ee' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
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
#!/bin/sh | |
echo '--- svn update ---' | |
svn up | |
echo '--- svn status ---' | |
svn st |
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
#!/bin/sh | |
NOW_TIME=`date +%Y%m%d-%H%M%S` | |
REC_SAVE_DIR="/path/to/" | |
REC=${REC_SAVE_DIR}/${NOW_TIME}_commandlog.txt | |
script ${REC} |
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
user www-data; | |
worker_processes 3; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
worker_processes 2 | |
listen '/tmp/redmine.sock' | |
stderr_path File.expand_path('log/unicorn.log', ENV['RAILS_ROOT']) | |
stdout_path File.expand_path('log/unicorn.log', ENV['RAILS_ROOT']) | |
preload_app true | |
before_fork do |server, worker| |
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
upstream unicorn { | |
server unix:/tmp/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /var/www/redmine/public; | |
error_log /var/www/redmine/log/error.log; | |
location / { |
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
- php wp_list_comments(); | |
- php comment_form(); | |
とテンプレートに書いて、出力されるHTMLのclassとidをまとめてみた。 |
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
(function (window) { | |
function EventDispatcher() { | |
} | |
EventDispatcher.prototype = { | |
hasEvent: function () { | |
}, | |
add: function () { | |
}, |
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
underscore.js初挑戦。 | |
多次元配列化。 |
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
以下のURLで紹介されている関数を自作ライブラリで使ってみた。 | |
最初の一回だけ実行される関数を生成する関数 #JavaScript - Qiita http://qiita.com/items/631bb3ef2a34064b0d86 |
OlderNewer