This file contains 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
-- such that the following holds true (where => indicates function output) | |
-- splicer [ ['a', 'b'], ['c', 'd'], ['e', 'f'] ] => [ ['a', 'c', 'e'], ['b', 'd', 'f'] ] | |
splicer :: [[a]] -> [[a]] | |
splicer [] = [] | |
splicer (x:[]) = splitEvery 1 x | |
splicer (x:xs) = zipWith (:) x $ splicer xs |
This file contains 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.module( 'ng-angular-element', [] ) | |
.directive( 'angular', function() { return { restrict: 'E' }; } ) | |
.directive( 'html', ['$compile', '$rootScope', '$document', | |
function( $compile, $rootScope, $document ) { | |
return { | |
restrict: 'E', | |
compile: function(scope, element, attributes) { | |
angular.forEach( $document.find( 'angular' ), function( angularElement ) { | |
$compile(angularElement)($rootScope); | |
} ); |
This file contains 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 | |
/** | |
* Enum Abstract Class | |
* | |
* Warning: Uses Reflection and LSB. :D | |
* ========================================================== | |
* | |
* To use this class: | |
* |
NewerOlder