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 | |
use Aws\S3\S3Client; | |
use Gregwar\Image\Image; | |
use Gregwar\Image\GarbageCollect; | |
class Image_Controller extends Base_Controller | |
{ | |
public function get_index() | |
{ |
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
javascript: (function () { var root = $(document.getElementsByTagName('body')); var watchers = []; var f = function (element) { if (element.data().hasOwnProperty('$scope')) { angular.forEach(element.data().$scope.$$watchers, function (watcher) { watchers.push(watcher); }); } angular.forEach(element.children(), function (childElement) { f($(childElement)); }); }; f(root); console.log(watchers.length);})(); |
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
'use strict'; | |
angular.module('colorpicker.module', []) | |
.factory('Helper', function () { | |
return { | |
closestSlider: function (elem) { | |
var matchesSelector = elem.matches || elem.webkitMatchesSelector || elem.mozMatchesSelector || elem.msMatchesSelector; | |
if (matchesSelector.bind(elem)('I')) { | |
return elem.parentNode; | |
} |
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 | |
class PermissionsTest extends PHPUnit_Framework_TestCase | |
{ | |
public $user; | |
public function setUp() | |
{ | |
$this->user = User::create([ | |
'permissions' => '' |
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
<div ng-controller="ImagesCtrl"> | |
<div class="form-horizontal"> | |
<div style="position: relative;"> | |
<div ng-if="Fabric.isLoading" class="image-loading"> | |
<div class="loading-indicator"></div> | |
</div> | |
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
describe('Profile | Clipboard | Finder |', function() { | |
beforeEach(module('profile.clipboard.finder')); | |
beforeEach(module('ui.router')); | |
describe('ClipboardFinderCtrl |', function() { | |
var ctrl, scope, httpBackend, finder; | |
beforeEach(inject(function($rootScope, $controller, Finder, $httpBackend) { | |
scope = $rootScope.$new(); | |
scope.main = {}; |
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
// NOTE: I ripped this out of my app so it's missing some context. Just observe the methodology used. | |
// This was also incredibly simple to reach 100% testing across the board. | |
(function() { | |
'use strict'; | |
angular.module('module.finder', []) | |
.controller('ModuleFinderCtrl', ['$scope', 'Finder', function($scope, Finder) { | |
$scope.finder = new Finder(); |
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
⚡ grunt release | |
Running "clean:0" (clean) task | |
Cleaning public/dist/js...OK | |
Running "uglify:vendor" (uglify) task | |
File public/dist/js/vendor.js created. | |
Running "uglify:profile" (uglify) task | |
File public/dist/js/profile.js created. |
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 namespace Modules\Api; | |
use Validator; | |
use User; | |
use Input; | |
use Response; | |
use Sanitize; | |
class Api | |
{ |
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
commands: | |
01updateComposer: | |
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update | |
02installVendors: | |
command: /usr/bin/composer.phar install --no-dev | |
option_settings: | |
- namespace: aws:elasticbeanstalk:application:environment | |
option_name: COMPOSER_HOME | |
value: /root |
OlderNewer