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 e2wm:c-code-recipe | |
'(| (:left-max-size 35) | |
(- (:upper-size-ratio 0.7) | |
files history) | |
(- (:upper-size-ratio 0.7) | |
(| (:right-max-size 30) | |
main | |
(- (:upper-size-ratio 0.8) | |
imenu clock)) | |
sub))) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>Pjax sample</title> | |
<%# jquery と pjax を読み込む。順番重要らしい %> | |
<script type="text/javascript" src="/js/jquery-1.9.1.js"></script> | |
<script type="text/javascript" src="/js/jquery.pjax.js"></script> | |
<%# 別の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
# -*- coding: utf-8 -*- | |
class Boyfriend | |
# 1.たばこを吸わない人(必須) | |
def smoke? | |
return false | |
end | |
# 2.アルコールを飲んでも性格が変わらない人(必須) | |
def drink(alchol) |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; text-size | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(global-set-key (kbd "M-S-<down>") 'text-scale-decrease) | |
(global-set-key (kbd "M-S-<up>") 'text-scale-increase) |
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
% rails new myapp --skip-test-unit | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/images/rails.png | |
create app/assets/javascripts/application.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
// ==UserScript== | |
// @name z2h | |
// @namespace http://somethingnew2.com/js/monkeys/ | |
// @description 全角英数字を半角に変換するよ | |
// @author SATO Yozo | |
// @version 0.1 | |
// ==/UserScript== | |
(function() { | |
var z = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@-.,:'; |
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
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'net/https' | |
require 'pit' | |
OAUTH_DOMAIN = 'graph.facebook.com' # ホスト名 | |
OAUTH_PATH = '/oauth/access_token' # パス | |
OAUTH_QUERY_APIKEY = 'client_id' # API Keyのクエリパラメータ | |
OAUTH_QUERY_APISEC = 'client_secret' # API secret のクエリパラメータ | |
OAUTH_QUERY_TYPE = 'grant_type=client_credentials' # 固定 |
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 | |
/usr/bin/pmset -g ps | tail -n 1 | awk '{print $2", " $4" remains"}' | sed 's/;//'; |
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
# -*- mode: snippet -*- | |
# name: roger | |
# -- | |
お疲れ様です。佐藤です。 | |
下記、了解しました。 |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<movie width="240" height="320" framerate="12"> | |
<background color="#000000" /> | |
<frame> | |
<library> | |
<clip id="foo" import="library/foo.jpg"/> | |
</library> | |
<place id="foo" name="foo" depth="1" width="100%" height="100%" x="10"/> | |
</frame> |
NewerOlder