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
require "rubygems" | |
require "sinatra" | |
require 'json' | |
require 'haml' | |
require 'sequel' | |
Sequel::Model.plugin(:schema) | |
Sequel.sqlite('twitter.db') | |
class Users < Sequel::Model | |
unless table_exists? |
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
!!! XML | |
!!! | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> | |
<script src="/js/suggest.js"></script> | |
</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
var $ = {}; // jQuery? or prototype.js? | |
$.P = function () { | |
var $_ = arguments, | |
i = 1, | |
len = arguments.length, | |
args = []; | |
var toString = Object.prototype.toString; | |
if (toString.call(arguments[0]) !== "[object Function]") |
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
require "rubygems" | |
require "net/http" | |
require "rexml/document" | |
require 'twitter' | |
class RandomTumble | |
attr_accessor :id, :tumblelog, :posts, :url | |
def initialize(id) | |
@@uri = id + '.tumblr.com' |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<script src="lib/jquery.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8" id="lazy1"> | |
/* |
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 lang="ru-RU"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>squareDeferred</title> | |
<script src="jquery.js" type="text/javascript" charset="utf-8"></script> | |
<script src="easing.js" type="text/javascript" charset="utf-8"></script> | |
<script src="jsdeferred.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> |
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 lang="ru-RU"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>space</title> | |
<script src="jquery.js" type="text/javascript" charset="utf-8"></script> | |
<script src="easing.js" type="text/javascript" charset="utf-8"></script> | |
<script src="jsdeferred.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> |
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
// jAudio - jQuery Plugin | |
(function($) { | |
// init | |
$.jAudio = function(elem) { | |
return new Audio(elem); | |
} | |
var Audio = function(elem) { | |
this.audio = elem.get(0); | |
} |
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
(function($) { | |
/* | |
* jTemplate | |
* | |
* Copyright (c) 2010 hisasann | |
* | |
* Example: | |
* var temp01 = $.jTemplate("<div id='hoge'>${hoge}</div>"); | |
* var html = temp01.evaluate({ | |
* hoge: "ほげ" |
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
require "rubygems" | |
require "twitter" | |
require "date" | |
class Kinenter | |
@@prefix_msg = [ | |
"おいら", | |
"わたし", | |
"私", | |
"ぼく", |