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
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root (or with sudo)" | |
| exit 1 | |
| fi | |
| function install_google_chrome() { | |
| echo "Checking googlechromelabs.github.io/chrome-for-testing latest release version" | |
| wget --no-verbose -O /tmp/chrome_latest_stable https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE |
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 | |
| namespace MyProject\Facades; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Support\Facades\Facade as BaseFacade; | |
| use Volume; | |
| use Trend; | |
| class Indicator |
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 | |
| <?php | |
| namespace App\Observers\CalculatedTimesheetHours; | |
| use Carbon\Carbon; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| use App\Models\CalculatedTimesheetHours; | |
| use App\Models\EmployeeBillingRates; |
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
| /** | |
| * @desc Primary jsx file for the fancy search react component. | |
| * @author Chad Payne chad@simplesimple.ca | |
| */ | |
| var FancySearchInput = React.createClass({ | |
| getInitialState: function() { | |
| var string; | |
| if(typeof this.props.text !== 'undefined') { |
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 | |
| /** | |
| * @file aliases.drushrc.php | |
| * Author: Chad Payne <chadpayne@gmail.com> | |
| * Date: Apr 7th 2016 | |
| * | |
| * Automatic alias Generation for drush sa. | |
| * Updated to allow for local site alias and to ignore any gitlab remotes | |
| */ |
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 | |
| function ss_menu_location_term_name_load($term_name) { | |
| module_load_include('inc', 'pathauto'); | |
| $vocab = taxonomy_vocabulary_machine_name_load('ss_menu_vocab_categories'); | |
| $vocabTree = taxonomy_get_tree($vocab->vid, 0, NULL, TRUE); | |
| $cleanstrings = array(); | |
| foreach($vocabTree as $term) { | |
| $cleanstring = pathauto_cleanstring($term->name); |
NewerOlder