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
// Convert numbers to words | |
// copyright 25th July 2006, by Stephen Chapman http://javascript.about.com | |
// permission to use this Javascript on your web page is granted | |
// provided that all of the code (including this copyright notice) is | |
// used exactly as shown (you can change the numbering system if you wish) | |
/* | |
Documentation: Usage | |
===================== | |
1. Import the javascript file: |
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
function toWareki(year,month,day) | |
{ | |
var wareki = ""; | |
year = Number (year); | |
if (year == 1868) | |
{ | |
/* 9月8日から明治元年 */ | |
/* 誕生日がここの人はいないだろうから細かくは気にしない */ | |
wareki = '明治元年'; | |
} |
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 "open-uri" | |
[ | |
"http://pastebin.com/raw.php?i=Kc9ng18h", | |
"http://pastebin.com/raw.php?i=vCMndK2L", | |
"http://pastebin.com/raw.php?i=JdQkuYwG", | |
"http://pastebin.com/raw.php?i=fw43srjY" | |
].each do |url| | |
open(url).each_line do |line| | |
name, password = line.chomp.split(/:/) |
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 | |
""" | |
unofficial Google Weather API | |
http://www.google.com/ig/api?weather=,,,35693692,139700260&hl=ja | |
レスポンスのエンコーディングは hl=jaの場合Shift-JIS hl=enの場合ASCII | |
<xml_api_reply version="1"> | |
<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0"> | |
<forecast_information> |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
NewerOlder