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/ruby | |
require 'parsedate' | |
f = open("target.txt") | |
f.each{ |line| | |
day = ParseDate::parsedate(line) | |
year = day[0].to_s | |
month = day[1].to_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
// ==UserScript== | |
// @name s/cloud/online/g | |
// @namespace http://somethingnew2.com/js/monkeys/ | |
// @description buzz word killer. | |
// @author SATO Yozo | |
// @version 0.1 | |
// ==/UserScript== | |
(function() { | |
var suffix = 'オンライン'; |
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> |
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
#!/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
# -*- 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
// ==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
% 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; 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
# -*- coding: utf-8 -*- | |
class Boyfriend | |
# 1.たばこを吸わない人(必須) | |
def smoke? | |
return false | |
end | |
# 2.アルコールを飲んでも性格が変わらない人(必須) | |
def drink(alchol) |
OlderNewer