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
// Javascript / RSS / Limechat 現在使用しているスクリプトの改造.. - 人力検索はてな | |
// http://q.hatena.ne.jp/1349127857 | |
// gede99 @ http://pen2.com/rss_check/ | |
var version = "rss_check.js v0.06"; | |
// チェックするRSSのURLと発言先 | |
var rss_urls={ | |
"http://feedproxy.google.com/hatena/b/hotentry":"#発言先channelA", |
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
class String | |
def caesar; tr 'a-zA-Z', 'n-za-mN-ZA-M' end | |
def uncaesar; tr 'n-za-mN-ZA-M', 'a-zA-Z' end | |
end | |
print "unccl oveguqnl!".caesar | |
#パスワードにカエサル暗号(シーザー暗号)を使う。Rubyを使った場合:Garbage In Garbage Out | |
#http://g1g0.com/2012/01/523/ |
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
取り敢えず、前回の質問にあった http://1811way.com/work008/sample&source.txt を動かしてみました。 | |
(回答時はちゃんと読んでいませんでした。スミマセン) | |
前回のエラーメッセージ、 | |
「Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in C:\Tools\htdocs\twitterapi\twitter_oauth.php on line 25」 | |
などは、 | |
include 'HTTP/OAuth/Consumer.php'; | |
したときにPEARのパスが通っていなかったのでHTTP_OAuthが読み込めていないというものです。 | |
まずこれを直していきます。 | |
今回、PEARライブラリの導入にpearコマンドは使わない方法で進めます。 | |
(レンタルサーバなどで使えなかったり、コマンド一発でインストールできない場合もあるので) |
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>Google Spreadsheet ⇒ Google Maps 反映</title> | |
<meta name="Description" content="" /> | |
<meta name="Keywords" content="" /> | |
</head> |
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
1 | 1(一、いち、ひと、ひとつ)は、最小の正の整数であ... | |
---|---|---|
2 | 2(二、に、じ、ふた、ふたつ)は、自然数、また整数... | |
3 | 3(三、さん、み、みっつ)は、自然数または整数にお... | |
4 | 4(四、よん、し、す、よつ、よ)は、自然数および整... |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<table> | |
<thead> | |
<tr> | |
<td>タイトル</td> | |
<td>行追加</td> |
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
<html> | |
<head> | |
<title>Google+ API test</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script language="javascript"> | |
var apiKey = 'ここに自分のGoogle API Keyを入れてください'; | |
var counter; | |
function getActivity() { | |
req('https://www.googleapis.com/plus/v1/people/' + $('#userId').val() + '/activities/public?maxResults=100&key=' + apiKey); | |
} |
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 | |
//JSONでデータを読み込んで更新された分だけ追加していきたい Goo.. - 人力検索はてな | |
//http://q.hatena.ne.jp/1336822696 | |
//APIからつぶやき部分だけを抜き出してファイルにJSONで保存する。 | |
//reference | |
//https://developers.google.com/+/api/ | |
//https://developers.google.com/+/api/latest/activities | |
//https://developers.google.com/+/api/latest/activities/list |
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"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type='text/javascript'> | |
$(function() { | |
var feed = [ | |
'http://rss.itmedia.co.jp/rss/1.0/news_security.xml', | |
'http://michaelsan.livedoor.biz/index.rdf', |
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 | |
$nums = 10; // 1ページの表示件数 | |
$rsslist = array('http://michaelsan.livedoor.biz/index.rdf', // RSSのURLを配列にして代入します。 | |
'http://blog.livedoor.jp/domesaka/index.rdf', // 2件で大丈夫な場合はこの行を削除します。(※行を追加して4件以上にしても大丈夫です。) | |
'http://news4vip.livedoor.biz/index.rdf'); | |
//デバッグ時はコメントアウトにする。うまくいかなかったらcookieを消す。 | |
session_start(); // ページ遷移ごとにリクエストしないようにセッションを使用します。 | |
header('Content-Type:text/html; charset=UTF-8'); |