Pull from branch from remote repository 'origin'
git pull origin masterpush to branch 'master' from remote repository 'origin'
git push origin master| button.addEventListener("click", function() { | |
| Ti.App.fireEvent("app:updateData", { | |
| field1: 'your', | |
| field2: 'new', | |
| field3: 'data' | |
| }); | |
| }); |
| (function($) { | |
| $.fn.textfill = function(maxFontSize) { | |
| maxFontSize = parseInt(maxFontSize, 10); | |
| return this.each(function(){ | |
| var ourText = $("span", this); | |
| function resizefont(){ | |
| var parent = ourText.parent(), | |
| maxHeight = parent.height(), | |
| maxWidth = parent.width(), | |
| fontSize = parseInt(ourText.css("fontSize"), 10), |
| if ($.browser.msie && window.XDomainRequest && $.browser.version.toString().indexOf('7') == 0) { | |
| // Use Microsoft XDR | |
| var xdr = new XDomainRequest(); | |
| xdr.open("get", url); | |
| xdr.onload = function () { | |
| var JSON = jQuery.parseJSON(xdr.responseText); | |
| if (JSON == null || typeof (JSON) == 'undefined') | |
| { | |
| JSON = jQuery.parseJSON(data.firstChild.textContent); | |
| } |
| $x: 2; | |
| $classnames: m, p; | |
| $rulenames: margin, padding; | |
| @while $x > 0{ | |
| $classname: nth($classnames, $x); | |
| $rulename: nth($rulenames, $x); | |
| $i: 4; | |
| $a: (-top, -right, -bottom, -left); | |
| $b: (-t, -r, -b, -l); |
| <?php print_r($this->getLayout()->getUpdate()->getHandles()) ?> |
| <?php | |
| /* Registering Post Types */ | |
| add_action( 'init', 'create_post_type' ); | |
| function create_post_type() { | |
| register_post_type( 'acme_product', | |
| array( | |
| 'labels' => array( | |
| 'name' => __( 'Slides' ), |
| define( [], function(){ | |
| var v_Filters = Backbone.View.extend({ | |
| filters: new (Backbone.Collection.extend({ | |
| url: 'http://www.google.com' | |
| })) | |
| }); |
Pull from branch from remote repository 'origin'
git pull origin masterpush to branch 'master' from remote repository 'origin'
git push origin master##1 Plugins vs Modules in an MVC context
I have the impression that the general online developer-community seems to say that if you build a backbone-based application almost every UI problem can be tackled with an MV* like structure. My opinion is that for UI-development it's often more appropriate to delegate a lot of that job to a flat plugin, like a jquery plugin for example. That way you can delegate all the UI-specific code to a sepperate Module.
###Notes
Dealing with $path
To edit $path on Mac OS lion create a file with a simple list of directories, line per line like this:
path/to/something path/to/something/else
and add the file to /etc/paths.d/
You could also directly edit the paths file under /etc/paths