I hereby claim:
- I am hectormenendez on github.
- I am etor (https://keybase.io/etor) on keybase.
- I have a public key whose fingerprint is 063F 1200 5B87 95AB 262E 0EC5 7425 4EE3 3741 D2EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Extends old object with new (returns a copy) | |
| * | |
| * @author Hector Menendez <etor.mx@gmail.com> | |
| * @created 2011/NOV/21 17:41 | |
| * @updated 2012/MAR/20 01:13 Added support for unlimited arguments. | |
| * Native properties will be ignored. | |
| */ | |
| core.extend = function(){ | |
| var args = private.arguments(arguments); // sanitize args |
| var tabGroup = Titanium.UI.createTabGroup(); | |
| // First tab, main window | |
| var mainWinTab1 = Titanium.UI.createWindow({ | |
| title: 'Window 1' | |
| }); | |
| var data = [{title: 'item one'}, {title: 'item two'}, {title: 'item three'}]; | |
| var table = Titanium.UI.createTableView({ | |
| data: data |
| jQuery.extend = jQuery.fn.extend = function() { | |
| var options, name, src, copy, copyIsArray, clone, | |
| target = arguments[0] || {}, | |
| i = 1, | |
| length = arguments.length, | |
| deep = false; | |
| // Handle a deep copy situation | |
| if ( typeof target === "boolean" ) { | |
| deep = target; |
| # If not running interactively, don't do anything | |
| [[ $- != *i* ]] && return | |
| # don't put duplicate lines in the history. | |
| HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # check the window size after each command and, if necessary, |
| <?php | |
| class DBControl { | |
| private $__db = null; | |
| private $__parent = null; | |
| private function __appendDB($name,$args){ | |
| # Get method's declared parameters. | |
| $params = $this->__parent->getMethod($name)->getParameters(); |