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 | |
/** | |
* Class AdoDbDoctrineAdapter | |
* | |
* | |
* Intentaremos empalmar adodb con doctrine | |
* | |
* Metodos de ADODB: | |
* |
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 | |
trait EventGenerator | |
{ | |
protected $pendingEvents = array(); | |
protected function raise($event) | |
{ | |
$this->pendingEvents[] = $event; | |
} |
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 | |
/** | |
* Logging | |
*/ | |
namespace Galonso\Logging; | |
/** | |
* Logging trait | |
*/ | |
trait Logging |
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
= Some yum usage for people who know "apt" = | |
If you are familiar with the apt package manager on Debian/Ubuntu this page should help you transfer your knowledge to working with yum on Fedora/RHEL/CentOS/etc. | |
Note that this page as currently written is by non-apt experts, so there may be some mistakes. | |
== General points == | |
* Speed: | |
* data/CPU: apt on Debian deals with roughly ~37,000 packages[1] and an extra 6,500 "provides"[2]. yum on Fedora deals with roughly 24,000 packages, 143,000 provides and 3,100,000 file provides. |
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://jsfiddle.net/brendanowen/uXbn6/8/ | |
<script type="text/ng-template" id="tree_item_renderer.html"> | |
{{data.name}} | |
<button ng-click="add(data)">Add node</button> | |
<button ng-click="delete(data)" ng-show="data.nodes.length > 0">Delete nodes</button> | |
<ul> | |
<li ng-repeat="data in data.nodes" ng-include="'tree_item_renderer.html'"></li> | |
</ul> | |
</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
// Module | |
// ------ | |
var upload = angular.module('Upload', []); | |
// Directive | |
// --------- | |
upload.directive('fileChange', function () { | |
var linker = function ($scope, element, attributes) { | |
// onChange, push the files to $scope.files. |
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
//recursion | |
(function g(tree, element){ | |
angular.forEach(tree, function(elm, k){ | |
if(element.attribute_id == elm.attribute_id){ | |
tree[k].repeated++; | |
} | |
g(tree[k].children, element); | |
}); | |
})(scope.tree, element) |
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
/*Get Sequences*/ | |
select iway_base.APP_ROLE_SEQ.currval from dual; | |
select iway_base.APP_ROLE_SEQ.nextval from dual; |
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
/** | |
* | |
* | |
* Angular Modal Service | |
* | |
* Requiere Bootstrap's modal (http://getbootstrap.com/javascript/#modals) | |
* | |
* Example: | |
* | |
* //1) Confirmation Modal |
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
/* | |
Original Source: http://blog.boxelderweb.com/2013/08/22/angularjs-multi-select-widget/ | |
Modif: | |
-03/12/2013 | |
Gabriel Alonso ([email protected]) | |
Example: |
NewerOlder