Skip to content

Instantly share code, notes, and snippets.

@t-kashima
t-kashima / index.html
Created September 14, 2011 18:33
jQueryMobileTest
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQueryMobileTest</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js"></script>
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.css" />
<style type="text/css"></style>
#!/usr/bin/env perl
use strict;
use warnings;
use Mojolicious::Lite;
use DateTime;
use Mojo::JSON;
use utf8;
get '/' => 'index';
package Kadai::Library;
use strict;
use warnings;
use base qw(Class::Accessor::Fast);
use Carp qw(croak);
use WWW::Mechanize;
use Web::Scraper;
use DateTime;
use URI;
package Map::RemapGoogleMap;
use strict;
use warnings;
use base qw(Class::Accessor::Fast);
use Carp qw(croak);
use LWP::UserAgent;
use URI;
__PACKAGE__->mk_accessors(qw(url));
package Map::RemapGoogleMap;
use strict;
use warnings;
use CGI::Carp qw(croak);
use LWP::UserAgent;
use URI;
sub new {
my ($class, %args) = @_;
my $self = bless {
package WWW::Kadai::Auth::Simple;
use strict;
use warnings;
use CGI::Carp qw(croak);
use base qw(Class::Accessor::Fast Class::ErrorHandler);
use WWW::Mechanize;
use URI;
our $VERSION = 0.01;
var express = require('express');
var request = require('request');
var querystring = require('querystring');
var app = express.createServer();
var baseurl = "http://api.flickr.com/services/rest";
var searchPhotoQuery = {
method: "flickr.photos.search",
api_key: "",
min_taken_date: "2011-01-13 00:00:00",
<script>
var searchSong, skipSong;
var entries = null;
var content = {};
chrome.extension.onConnect.addListener(function(port) {
var api = new XMLHttpRequest();
port.onMessage.addListener(function(msg) {
if (msg.status == "start") {
content.title = msg.title;
function getTopUrl(query) {
var url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=' + encodeURI(query);
var response = UrlFetchApp.fetch(url);
var json = response.getContentText();
var object = Utilities.jsonParse(json);
return object["responseData"]["results"][0]["unescapedUrl"];
}
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Mojolicious::Lite;
use OAuth::Lite::Consumer;
use Config::Pit;
use Data::Dumper;