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
//Singleton.h | |
+ (id) sharedInstance; | |
// singleton.m | |
+ (id)sharedInstance { | |
static BackendResource *shared = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
shared = [[self alloc] init]; | |
}); |
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
TYPO3: | |
Flow: | |
persistence: | |
backendOptions: | |
driver: 'pdo_mysql' | |
dbname: 'helloflow' | |
user: 'helloflow' | |
password: 'helloflow' | |
host: '127.0.0.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
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<default> | |
<reference name="head"> | |
<action method="addJs"> | |
<script>luckyduck_angularlist/angular.min.js</script> | |
</action> | |
</reference> | |
</default> | |
</layout> |
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
<div ng-app> | |
<p>Nothing here {{'yet' + '!'}}</p> | |
</div> |
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
<div ng-app> | |
<ul> | |
<li> | |
<span>Produkt #1</span> | |
<p> | |
Traces of the most awesome test product ever created. | |
</p> | |
</li> | |
<li> |
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
<div ng-app="angularlistApp"> | |
<div ng-controller="ProductListCtrl"> | |
<ul> | |
<li ng-repeat="product in products"> | |
{{product.name}} | |
<p>{{product.description}}</p> | |
</li> | |
</ul> | |
<p>Total number of products: {{products.length}}</p> |
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
<script type="text/javascript"> | |
var angularlistApp = angular.module('angularlistApp', []); | |
angularlistApp.controller('ProductListCtrl', function($scope, $http) { | |
$http.get('<?php echo Mage::getBaseUrl()?>api/rest/products').success(function(data) { | |
$scope.products = data; | |
}); | |
}); | |
</script> |
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
<layout> | |
<updates> | |
<luckyduck_angularlist> | |
<file>luckyduck_angularlist.xml</file> | |
</luckyduck_angularlist> | |
</updates> | |
</layout> |
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
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<default> | |
<reference name="head"> | |
<action method="addJs"> | |
<script>angularlist/angular.min.js</script> | |
</action> | |
</reference> | |
</default> |
OlderNewer