- SoulChef
- Feat. Cise Starr & Akin From Cyne
- Danny Breaks
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 Api | |
| { | |
| public static function is_password($password, $confirm) | |
| { | |
| $v = Validator::make(array( | |
| 'password' => $password, | |
| 'password_confirmation' => $confirm | |
| ), array( |
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
| // NOTE Popover | |
| .directive('popover', ['$document', '$http', '$compile', function($document, $http, $compile) { | |
| return function(scope, element, attrs) { | |
| var popoverId = Math.floor(Math.random() * 10000000000), | |
| popoverTitle = attrs.popoverTitle, | |
| popoverPlacement = attrs.popoverPlacement || "top" | |
| $http.get(attrs.popover).success(function(data) { | |
| createPopover(data); | |
| }); |
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
| scope.zoomIn = function() { | |
| // TODO limit the max canvas zoom in | |
| canvasScale = canvasScale * SCALE_FACTOR; | |
| canvas.setHeight(canvas.getHeight() * SCALE_FACTOR); | |
| canvas.setWidth(canvas.getWidth() * SCALE_FACTOR); | |
| var objects = canvas.getObjects(); | |
| for (var i in objects) { | |
| var scaleX = objects[i].scaleX; |
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 Test_Controller extends Base_Controller | |
| { | |
| public function get_index() | |
| { | |
| try { | |
| $s = extend(array( | |
| ), sr()); |
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
| services.factory('Wizard', [function(){ | |
| var wizardService = {}, | |
| steps = [], | |
| step = 0, | |
| finishLabel = "Finish"; | |
| wizardService.isFirstStep = function() { | |
| return step === 0; | |
| }; |
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
| services.factory('$www', function($http){ | |
| function encodeObject(obj) { | |
| var str = ""; | |
| for(var p in obj) { | |
| switch(typeof obj[p]) { | |
| case 'boolean' : | |
| str += p + '=' + parseInt(obj[p]) + "&"; | |
| break; | |
| case 'number' : |
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
| app.config(function($routeProvider, $httpProvider) { | |
| var numLoadings = 0, | |
| loadingScreen = $('.processing'); | |
| $httpProvider.interceptors.push(function() { | |
| return { | |
| request: function(config) { | |
| ++numLoadings; | |
| loadingScreen.show(); |
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
| // Concept | |
| public static function auto_version($url) | |
| { | |
| $file = $_SERVER['DOCUMENT_ROOT'] . '/' . $url; | |
| if(! is_file($file)) | |
| return $url; | |
| $mtime = filemtime($file); | |
| return preg_replace('{\\.([^./]+)$}', ".$mtime.\$1", URL::to_asset($url)); |
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
| <IfModule mod_rewrite.c> | |
| RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] | |
| </IfModule> |