βββ dashboard/
| βββ $layout/
| βββ members/
| | βββ index.blade.php
| | βββ create.blade.php
| | βββ edit.blade.php
| βββ projects/
| | βββ index.blade.php
| | βββ create.blade.php
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
| +(function(angular, _, undefined) { | |
| function columnDisplayDropdown() { | |
| var scope, template; | |
| // onColumnChange - a callback function | |
| // when the columns change | |
| // columns - column data | |
| scope = { | |
| columns: '=', | |
| onColumnChange: '&' |
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
| +(function(angular, _, undefined) { | |
| function BaseIndexCtrl($scope) { | |
| $scope.onColChange = function() { | |
| localStorageService.set('residents', $scope.columns); | |
| }; | |
| } | |
| angular | |
| .module('app') | |
| .controller('BaseIndexCtrl', BaseIndexCtrl); |
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
| +(function(angular, undefined) { | |
| function ScholarshipsCtrl($scope, $state, $controller, Scholarship, UtilService, SCHOLARSHIP_COLUMNS) { | |
| // Initialize variables | |
| var vm = this, | |
| controller, | |
| // Assigns this variable to | |
| // the data assigned by the resolve to the service | |
| collection = [], | |
| columns, | |
| storage, |
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 | |
| /** | |
| * Usage: | |
| * $pogi = new Pogi('Kier'); | |
| * echo $pogi->getName(); | |
| */ | |
| class Pogi { | |
| /** |
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
| function sort($a, $b) { | |
| // If a's contributions is equal to b's contributions, | |
| // return 0, indicating "as it is" | |
| if ( $a->contributions == $b->contributions ) { | |
| return 0; | |
| } | |
| // If a is less than b, put it before b. Otherwise, the opposite | |
| return $a->contributions < $b->contributions ? -1 : 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
| var CountdownControl = React.createClass({ | |
| // Simplified for brevity | |
| render: function() { | |
| var control = this.props.status | |
| ? 'Pause' | |
| : 'Resume'; | |
| return ( | |
| <span onClick={this._handleClick}> |
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
| 'use strict'; | |
| angular | |
| .module('app') | |
| .directive('CountdownControl', CountdownControl); | |
| function CountdownControl() { | |
| var template = [ | |
| '<span ng-click="controlCtrl.toggleTick()">', | |
| '{{ controlCtrl.state }}', |
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
| __ .__ .__ | |
| | | _|__| ___________ ______ ____ ____ |__| | |
| | |/ / |/ __ \_ __ \ \____ \ / _ \ / ___\| | | |
| | <| \ ___/| | \/ | |_> > <_> ) /_/ > | | |
| |__|_ \__|\___ >__| | __/ \____/\___ /|__| | |
| \/ \/ |__| /_____/ |
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
| [ | |
| { | |
| "category": "Sporting Goods", | |
| "price": "$49.99 ", | |
| "stocked": true, | |
| "name": "Football" | |
| }, | |
| { | |
| "category": "Sporting Goods", | |
| "price": "$9.99", |