Skip to content

Instantly share code, notes, and snippets.

@tetu1225
tetu1225 / twitter-cards.html
Created March 1, 2013 05:18
Twitter Cardsのmetaタグ
<meta name="twitter:url" content="http://www.wp-themer.net/wordpress-theme/2column/wordpress-theme-bizvector/">
<meta name="twitter:title" content="ビジネスサイトやアフィリエイトに最適過ぎるWordPressテーマ(テンプレート)『BizVector』が無料なのにスゴすぎる!">
<meta name="twitter:description" content="ビジネス特化型の無料WordPressテーマ(テンプレート)で、カスタマイズ性にも優れたBizVectorを紹介します。">
<meta name="twitter:image" content="http://www.wp-themer.net/wp-content/uploads/BizVector1.jpg">
<meta name="twitter:image:width" content="1200">
<meta name="twitter:image:height" content="314">
@tetu1225
tetu1225 / facebook-ogp.html
Created September 5, 2012 07:06
Facebook OGP metaタグ
<meta property="og:title" content="WordPressの2012年公式テーマ「Twenty Twelve」がついに公開!" />
<meta property="og:site_name" content="WordPressテーママニア!" />
<meta property="og:description" content="こんにちは。 WordPressテーママニア!の@WPThemeManiaです。 WordPressが毎年発表している公式テーマをご存知でしょうか?テーマの名前が「Twenty〜」というやつですね。WordPressをインストール..." />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.wp-themer.net/2012/08/wordpress-theme-twenty-twelve/" />
<meta property="og:image" content="http://www.wp-themer.net/wp-content/uploads/2d986d911841950c2c3e413f9ea09b231-150x150.png" />
<meta property="fb:admins" content="100000559951846" />
<meta property="fb:app_id" content="488913504471974" />
@tetu1225
tetu1225 / twittercards.html
Created September 5, 2012 07:04
Twitter Cards metaタグ
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="http://www.wp-themer.net/2012/08/wordpress-theme-twenty-twelve/">
<meta name="twitter:title" content="WordPressの2012年公式テーマ「Twenty Twelve」がついに公開!">
<meta name="twitter:description" content="こんにちは。 WordPressテーママニア!の@WPThemeManiaです。 WordPressが毎年発表している公式テーマをご存知でしょうか">
<meta name="twitter:image" content="http://www.wp-themer.net/wp-content/uploads/2d986d911841950c2c3e413f9ea09b231.png">
<meta name="twitter:image:width" content="1059">
<meta name="twitter:image:height" content="563">
@tetu1225
tetu1225 / gist:1397515
Created November 27, 2011 12:53
Google Alert RSS
#<RSS::Atom::Feed::Entry:0x112d4a310
@author=
[#<RSS::Atom::Feed::Author:0x112d299a8
@base=nil,
@converter=nil,
@do_validate=true,
@email=nil,
@lang=nil,
@name=
#<RSS::Atom::PersonConstruct::Name:0x112d27450
@tetu1225
tetu1225 / gist:1397195
Created November 27, 2011 07:59
Instagram APIレスポンス(pp)
{"data"=>
[{"location"=>nil,
"user_has_liked"=>false,
"comments"=>{"data"=>[], "count"=>0},
"filter"=>"Normal",
"id"=>"371225896_3348709",
"tags"=>["indonesia", "iphonesia"],
"caption"=>
{"from"=>
{"username"=>"kojiro_",
@tetu1225
tetu1225 / gist:1397193
Created November 27, 2011 07:57
Instagram APIレスポンス(YAML)
data:
- location:
latitude: -6.262909
longitude: 106.779
user_has_liked: false
comments:
data: []
count: 0
filter: Lomo-fi
@tetu1225
tetu1225 / gist:1397165
Created November 27, 2011 07:30
楽天APIレスポンス例(ppメソッドで表示)
{"Response"=>
{"Body"=>
{"ItemSearch"=>
{"pageCount"=>"100",
"hits"=>"30",
"Items"=>
{"Item"=>
[{"mediumImageUrl"=>
"http://thumbnail.image.rakuten.co.jp/@0_mall/donya/cabinet/item12/mt2011051501-0.jpg?_ex=128x128",
"imageFlag"=>"1",
@tetu1225
tetu1225 / gist:1396950
Created November 27, 2011 04:13
楽天APIレスポンス例(XML)
<response>
<header:header xmlns:header="http://api.rakuten.co.jp/rws/rest/Header">
<args>
<arg key="User-Agent" value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2">
true
</arg>
<arg key="developerId" value="1a17906c3ca67237529280545156b4e9">
true
</arg>
<arg key="apiVersion" value="30">
@tetu1225
tetu1225 / rails_cycle.html.erb
Created October 16, 2011 06:02
Rails Cycle ヘルパー
<table>
<tr>
<th>名前</th>
<th>性別</th>
<th>血液型</th>
</tr>
<% @people.each do |person| %>
<tr style="background-color:<%= cycle('#FFffFF', '#FFff99') %>
<td><%= person.name %></td>
<td><%= person.sex %></td>
@tetu1225
tetu1225 / gogakuru_bookmarklet
Created September 11, 2011 07:06
ゴガクルフレーズ検索ブックマークレット
javascript:var%20d=document;var%20tx=d.selection?d.selection.createRange().text:d.getSelection();var%20subw=window.open('http://gogakuru.com/english/phrase/keyword/'+tx+'.html').document;