Instance | Branch |
---|
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
var asyncModule = function(name) { | |
return { | |
controller: function() { | |
m.startComputation() | |
require([name], function(module) { | |
this.controller = new module.controller() | |
this.view = module.view | |
m.endComputation() |
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
var asyncModule = function(name) { | |
return { | |
controller: function() { | |
m.request({ | |
method: "GET", | |
url: name + ".js", | |
deserialize: function(data) { | |
return new Function("var module = {};" + data + ";return module").call().exports | |
} | |
}) |
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
class ASampleClass | |
{ | |
public static function test() | |
{ | |
return 'yo'; | |
} | |
} | |
echo (new ASampleClass())->test(); |
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
<?php | |
/** | |
* Asset dependencies manager | |
* @author: dphamtri | |
* @date 20140124 | |
*/ | |
class AssetManager | |
{ | |
static $instance = null; |
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(document).ready(function ($) { | |
var divs=$('.sbSubLitsIt .listIt').hide(); | |
var divs2=$('.sbListIt .sbSubList').hide(); | |
jQuery('.sbSubLitsIt').each(function(){ | |
if(jQuery(this).find('.listIt').length){ | |
jQuery(this).find('.clShowCapNone').addClass('clShowCap'); | |
} | |
}); | |
jQuery('.sbListIt').each(function(){ | |
if(jQuery(this).find('.sbSubList').length){ |
##Register new user URI : http://realphim.com/api/user/register ###Input
- username : required, length [3-32], alpha numeric
- password : required, length [3-32]
- email : required, valid email
- first_name : required, length [1-100]
- last_name : required, length [1-100]
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
<richcart_product_view> | |
<label>Catalog Product View (Any)</label> | |
<!-- Mage_Catalog --> | |
<remove name="right"/> | |
<remove name="left"/> | |
<!-- <reference name="root"> | |
<action method="setTemplate"><template>page/2columns-right.phtml</template></action> | |
</reference> --> | |
<reference name="head"> | |
<action method="addJs"><script>varien/product.js</script></action> |
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
INSERT INTO admin_user SELECT | |
NULL `user_id`, | |
"Dung" `firstname`, | |
"Pham" `lastname`, | |
"[email protected]" `email`, | |
"dungpt.sutunam" `username`, | |
"9684dfd577831f73890e88fe18ca9072:Hs" `password`, | |
NOW() `created`, | |
NULL `modified`, | |
NULL `logdate`, |
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
@color: #666; | |
@type: 'bold'; | |
body{ | |
background-color: @color; | |
font-weight: @type; | |
} |