I hereby claim:
- I am yuchi on github.
- I am yuchi (https://keybase.io/yuchi) on keybase.
- I have a public key whose fingerprint is 6E1F FB29 BE6A AB78 08E5 5167 EB60 4195 15F7 654B
To claim this, I am signing this object:
function isUpperCase(c) { | |
return (c !== c.toLowerCase()); | |
} | |
function normalize(s) { | |
var buffer = ''; | |
var upperCase = false; | |
var l = s.length; | |
var c, nextUpperCase; |
extension Dictionary /* <KeyType, ValueType> */ { | |
func mapKeys<U> (transform: KeyType -> U) -> Array<U> { | |
var results: Array<U> = [] | |
for k in self.keys { | |
results.append(transform(k)) | |
} | |
return results | |
} |
<aui:script use="aui-base,anim-base,anim-node-plugin,anim-scroll"> | |
var step = 25; | |
var scrolling = false; | |
var list = A.one('.oneshop-portlet-item-browser .list'); | |
var a = new A.Anim({ | |
node: '.oneshop-portlet-item-browser .list', | |
duration: 0.5 | |
}); |
I hereby claim:
To claim this, I am signing this object:
@import('Foundation/NSDictionary'); | |
@import('Foundation/NSMutableDictionary'); | |
@import('Foundation/NSNumber'); | |
@import('Foundation/NSBundle'); | |
@import('Foundation/NSString'); | |
@import('Foundation/NSUTF8StringEncoding'); | |
@import('Foundation/NSObject'); | |
@import('Foundation/UILabel'); | |
@import("Foundation/NSLog"); | |
; |
AUI.add( | |
'animated-scroll', | |
function(A) { | |
// Yes, user agent sniffing. | |
var scrollTarget = /webkit/i.test(navigator.userAgent) || document.compatMode == 'BackCompat' ? | |
document.body : | |
document.documentElement;; |
/** | |
* Titanium SDK - Stream UTF-8 reader | |
* ================================== | |
* | |
* a snippet to read a Stream into a string preserving UTF-8 characters | |
* | |
* Author: Pier Paolo Ramon | |
* Copyright 2013 SMC Treviso <http://www.smc.it> | |
* | |
*/ |
var _oldPrepareModel = Backbone.Collection.prototype._prepareModel; | |
Backbone.Collection.prototype._prepareModel = function (model, options) { | |
var _id = model.id; | |
if (!(model instanceof Backbone.Model)) _id = model[this.model.prototype.idAttribute]; | |
if (this._byId[_id]) return this.get(_id); | |
return _oldPrepareModel.call(this, model, options); | |
} |