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
############################################################## | |
# | |
# P12 to Pem | |
# | |
# iOSのPushの証明書と鍵からpemファイルを生成する | |
# | |
# %p12topem cert.p12 key.p12 password | |
# | |
# output: apns.pem, apns-key-noec.pem | |
# |
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
var keyword = 'りんご'; | |
function searchComplete(searcher) { | |
var results = searcher.results; | |
if( results && (0 < results.length)) { | |
var content = document.getElementById( 'content' ); | |
// 情報を取得する | |
for( var i = 0; i < results.length; i++ ) { | |
if (canAnimate(results[i].tbUrl) === true) { | |
logDebug('url:' + results[i].tbUrl); |
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 JSON::XS; | |
use DateTime; | |
use utf8; | |
use Data::Dumper; | |
binmode STDIN, ':utf8'; | |
binmode STDOUT, ":utf8"; |
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 lib './lib'; | |
use Wight; | |
use utf8; | |
binmode STDOUT, ':utf8'; | |
my $baseurl = 'http://google.co.jp'; |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Notification</title> | |
</head> | |
<body> | |
<button>Notification</button> | |
<script type="text/javascript" src="notification.js"></script> | |
</body> |
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
#import <UIKit/UIKit.h> | |
#import "OAConsumer.h" | |
#import "OADataFetcher.h" | |
#import "OAMutableURLRequest.h" | |
@interface testViewController : UIViewController { | |
IBOutlet UIButton *btnLogin; | |
IBOutlet UIWebView *oauthWebView; | |
IBOutlet UILabel *lblUser; |
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 | |
require 'rubygems' | |
require 'sinatra' | |
require 'koala' | |
configure do | |
APPLICATION_ID = "facebook_application_id" | |
APPLICATION_SECRET = "facebook_application_secret" | |
set :sessions, 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
require 'rubygems' | |
require 'sinatra' | |
require 'oauth' | |
require 'twitter' | |
configure do | |
CONSUMER_KEY = "twitter_consumer_key" | |
CONSUMER_SECRET = "twitter_consumer_secret" | |
set :sessions, true | |
enable :sessions |
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 LWP::UserAgent; | |
use XML::Simple; | |
use Data::Dumper; | |
sub main { | |
my $baseurl = "http://f.hatena.ne.jp/userlist"; |
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 LWP::UserAgent; | |
use XML::Simple; | |
use Image::MetaData::JPEG; | |
use URI; | |
use Time::Local; | |
use MongoDB; |