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
#!/bin/sh | |
# chmod a+x software.sh | |
# Install Brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap homebrew/core | |
brew tap homebrew/cask | |
brew tap homebrew/cask-drivers |
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 App\Http\Middleware\Admin; | |
use Closure; | |
use Illuminate\Contracts\Auth\Access\Gate; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use App\Models\Site as Model; |
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 App\Http\Controllers\Admin; | |
use App\Http\Controllers\AdminController as Controller; | |
use App\Models\User\User; | |
use App\Models\User\Role as UserRole; | |
use App\Http\Requests\UserRequest; |
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 App\Http\Controllers\Admin; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\AdminController as Controller; | |
use App\Models\Deposit; | |
use App\Http\Requests\DepositRequest; |
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 App\Http\Controllers\Auth; | |
use Illuminate\Http\Request; | |
use Illuminate\Mail\Message; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Password; | |
use Illuminate\Foundation\Auth\ThrottlesLogins; | |
use App\Http\Controllers\Controller; |
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
<script type="text/javascript" id="bowling--js"> | |
var bowling_options = [1,2,3,4,5]; | |
</script> | |
<script type="text/javascript" id="restaurant--js"> | |
var restaurant_options = ['a','b','c']; | |
</script> |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
default: { | |
// not concatenating jQuery here, production could use CDN | |
src: [ | |
'wp-content/themes/<%= pkg.theme %>/js/app/app.js', | |
'wp-content/themes/<%= pkg.theme %>/js/app/options.js', |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class Migrate extends CI_Controller { | |
public function __construct() { | |
parent::__construct(); | |
if (!$this->input->is_cli_request()) { | |
echo $this->error(); | |
exit; |
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 | |
/** | |
* Return the Survey model related to a Project. | |
* The survey model is based on the projec type. | |
* | |
* @return \Survey\Survey|\Survey\FireRisk\Survey | |
*/ | |
public function survey() | |
{ | |
return $this->type && $this->type->name === 'Fire Risk' ? $this->fireRiskSurvey() : $this->asbestosSurvey(); |
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 | |
/** | |
* _import_csv | |
* @desc Import the CSV in to the ACF field. | |
* @param string $file | |
* @param int $post_id | |
* @return boolean | |
*/ | |
function _import_csv($file, $post_id) { | |
if(!function_exists('get_field') || !function_exists('update_field') && file_exists($file)) { |