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
/*! | |
* jQuery plugin - jquery.and.js v1.1 | |
* http://github.com/iwill/ | |
*/ | |
(function($) { | |
$.fn.and = function(selector, context) { | |
return $.merge(this.pushStack(this), $(selector, context)); | |
}; | |
})(jQuery); |
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
/*! | |
* jQuery plugin - jquery.addEventType.js v1.0 | |
* http://github.com/iwill/ | |
*/ | |
(function($) { | |
$.addEventType = $.fn.addEventType = function(eventType) { | |
(this.fn || this)[eventType] = function(handler) { | |
return handler ? this.bind(eventType, handler) : this.trigger(eventType); | |
}; | |
return this; |
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
// | |
// UIColor+.h | |
// iTest | |
// | |
// Created by iwill on 11-03-09. | |
// Copyright 2011 iwill. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
/*! | |
* Javascript library - $class 2.0.0 | |
* https://gist.github.com/iwill/2303057 | |
*/ | |
export default function $class(source, SuperClass) { | |
// default values | |
SuperClass = SuperClass || Object; | |
source = source || {}; | |
// constructor & super constructor |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
#!/bin/bash | |
# @see https://www.npmjs.org/package/json | |
## nodejs [js-statement ...] js-expression | |
function nodejs() { | |
local statements="" | |
while [[ $# > 1 ]]; do | |
statements="${statements:+$statements; }$1" | |
shift |
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
/* | |
html5doctor.com Reset Stylesheet | |
v1.6.1 | |
Last Updated: 2010-09-17 | |
Author: Richard Clark - http://richclarkdesign.com | |
Twitter: @rich_clark | |
*/ | |
html, body, div, span, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
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
#! /bin/bash | |
function repeat() { | |
if [[ $# < 2 ]]; then | |
echo "repeat: Too few arguments." | |
return 1 | |
else | |
n=$1 | |
shift | |
seq $n | xargs -I{} "$@" |
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
# which and | |
function wa() { | |
which "$2" | xargs "$1" | |
} | |
export -f wa | |
# which and mate | |
function wamate() { | |
wa mate "$1" | |
} |
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
[method] | |
mm | |
[<#object#> <#method#>] | |
{block} | |
bb | |
[<#object#> <#method#>] | |
#pragma mark - | |
pp |
OlderNewer