Skip to content

Instantly share code, notes, and snippets.

View nulltask's full-sized avatar

Seiya KONNO nulltask

View GitHub Profile
@nulltask
nulltask / 20110524_prototype.html
Created May 24, 2011 02:43
20110524_prototype
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>20110524_prototype</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
<link rel="stylesheet" href="style.css">
<script src="http://visionmedia.github.com/move.js/move.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
@nulltask
nulltask / controller.js
Created May 25, 2011 10:12
20110525_prototype
(function(exports) {
var Reel, Pane, Controller;
Reel = function(panes) {
this.panes = panes;
this._current = 0;
}
Reel.prototype = {
prev: function() {
@nulltask
nulltask / oauth.js.diff
Created July 5, 2011 04:16
oauth.js.diff
326c326
< return Math.floor(t / 1000);
---
> return Math.floor(t / 1000).toFixed(0);
@nulltask
nulltask / oauth_adaptor.js.diff
Created July 5, 2011 04:16
oauth_adaptor.js.diff
27,30d26
< * This library currently works only with Twitter, although I'd like to
< * spend some more time to make it generally compatible with other services
< * too.
< *
48c44
< // this function will be called as soon as the application is authorized
---
> // this function will be called as soon as the application is authorized
50,53c46,48
@nulltask
nulltask / twitter_api.js.diff
Created July 5, 2011 04:16
twitter_api.js.diff
2,4c2,8
< Ti.include('./lib/sha1.js');
< Ti.include('./lib/oauth.js');
< Ti.include('./lib/oauth_adapter.js');
---
> var path_lib = '';
> if(Titanium.Platform.osname == 'iphone' && Titanium.version<'1.7.0'){
> path_lib = '/lib/';
> }
> Ti.include(path_lib+'sha1.js');
window.console = window.console || { log: function() {} };
-function(window, document, $, undefined) {
// TODO: add your code here
}(window, document, jQuery);
function Klass(name) {
if (!(this instanceof Klass)) {
return new Klass(name);
}
this.name = name;
}
Klass.prototype.greeting = function() {
alert('Hi, My name is ' + this.name + '!');
};
$('div')
.css({ opacty: 0 })
.animate({ opacity: 1 }, 1000, 'linear', function() {
if (this.style.filter) {
this.style.filter = '';
}
});

Hello world

  1. one
  2. two

The quick brown fox jumps over the lazy dog.


``