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
| // | |
| // plugin呼び出し | |
| // | |
| $(function() { | |
| $("#message").sample1("hello world").css("color","red"); | |
| }); | |
| // | |
| // plugin本体 | |
| // |
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
| // | |
| // plugin呼び出し | |
| // | |
| $(function() { | |
| $.sample2.hello("world"); | |
| }); | |
| // | |
| // plugin本体 | |
| // |
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
| sub test1 { | |
| # reference | |
| return [0, "error"]; | |
| } | |
| sub test2 { | |
| # array | |
| return (0, "success"); | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/> | |
| <meta name="format-detection" content="telephone=no"/> | |
| <meta name="apple-mobile-web-app-capable" content="yes"/> | |
| <link media="screen" rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"/> | |
| <link rel="apple-touch-icon" href="apple-touch-icon.png"/> | |
| <script src="http://code.jquery.com/jquery.min.js"></script> |
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
| use strict; | |
| use warnings; | |
| use utf8; | |
| use AnyEvent::Twitter::Stream; | |
| use Log::Minimal; | |
| $Log::Minimal::AUTODUMP=1; | |
| $Log::Minimal::COLOR=1; |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Mojolicious::Lite; | |
| use Encode; | |
| use EV; | |
| use AnyEvent::Twitter::Stream; |
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
| $("a[href^='http']").each(function() { | |
| $(this).css({ | |
| background: "url(<a href="http://www.google.com/s2/u/0/favicons?domain=" target="_blank" rel="noreferrer" style="cursor:help;display:inline !important;">http://www.google.com/s2/u/0/favicons?domain=</a>" + this.hostname + | |
| ") left center no-repeat", | |
| "padding-left": "20px" | |
| }); | |
| }); |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Encode; | |
| use LWP::UserAgent; | |
| use JSON; | |
| use Digest::SHA1 qw(sha1_hex); |
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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'openssl' | |
| require 'net/imap' | |
| require 'yaml' | |
| class Filter | |
| def initialize(options={}) | |
| @imap = Net::IMAP.new(options[:host], options[:port] || 993, options[:ssl] || true) |
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
| .row { | |
| display:table; /* コンテナ全体にテーブルの表示スタイルを適用 */ | |
| width:960px; /* 全体の幅、サイズの変更をはじめ、単位を%, emにも変更可能 */ | |
| margin:0 auto /* 左右の中央に配置*/ | |
| } | |
| .cell { | |
| display:table-cell; /* 各カラムにテーブルのセルの表示スタイルを適用*/ | |
| vertical-align:top; /* 上端(top)揃え */ | |
| padding-left:10px /* カラム間の溝の幅 */ | |
| } |