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
{ | |
"require": { | |
"wordpress/core": "3.5.2", | |
"wordpress/twentytwelve": "1.1", | |
"wordpress/akismet": "2.5.7", | |
"wordpress/google-sitemap-generator": "3.2.9", | |
"wordpress/google-analytics-for-wordpress": "4.3.3", | |
"wordpress/wordpress-importer": "0.6.1" | |
}, | |
"repositories": [ |
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
$('.episode-list > div.col-sm-5').attr('id', 'episode-notes').addClass('col-sm-12'); | |
$('.episode-list > div.col-sm-7').attr('id', 'episode-video').addClass('col-sm-12'); | |
$('.episode-list > div').css({transition: 'width 1s'}); | |
$('#episode-video').append('<p style="text-align: center;margin-top: 10px;"><a href="#" id="movie-mode"><i class="fa fa-film"></i> Movie Mode</a></p>'); | |
$('#movie-mode').click( function() { | |
$('#episode-notes').toggleClass('col-sm-5'); | |
$('#episode-video').toggleClass('col-sm-7'); | |
}); |
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
// Something like this: | |
array_push($profile['items_missing'], array( 'message' => 'Like or save at least 1 hotel', 'action' => 'hotels')); | |
// could be this: | |
array_push( | |
$profile['items_missing'], | |
[ | |
'message' => 'Like or save at least 1 hotel', | |
'action' => 'hotels' | |
] |
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 | |
// Taken from Illuminate\Support\helpers.php | |
if (! function_exists('dd')) { | |
/** | |
* Dump the passed variables and end the script. | |
* | |
* @param mixed | |
* @return void |
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 | |
public function get($topic, $specific = null, $param = null) | |
{ | |
if (isset($this->config[$topic])) { | |
$value = $this->config[$topic]; | |
} | |
if (! is_null($specific) && isset($value[$specific])) { | |
$value = $value[$specific]; |
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 | |
function dump() | |
{ | |
array_map('pre', func_get_args()); | |
} | |
function pre($to_dump) | |
{ | |
echo "<pre>"; |
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
// look in .env file for definitions | |
define("HOST", env('DB_HOST')); // The host you want to connect to. | |
define("USER", env('DB_USER')); // The database username. | |
define("PASSWORD", env('DB_PASSWORD')); // The database password. | |
define("DATABASE", env('DB_DATABASE')); // The database name. | |
define("SECURE", env('DB_SECURE')); // The database name. | |
define('FTPHOST', env('SFTP_HOST')); | |
define('FTPPORT', env('SFTP_PORT')); | |
define('FTPUSER', env('SFTP_USER')); |
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 Something { | |
const example = 'test'; | |
} | |
namespace Another { | |
const example = 'anothervalue'; | |
} |
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 | |
// Before | |
public function getIDsForClient() | |
{ | |
$sql = "SELECT DISTINCT FilingID FROM Snapshot1094C WHERE ClientID = ?"; | |
$params = [$this->clientID]; | |
$stmt = sqlsrv_query($this->mssqli, $sql, $params); | |
$ids = []; |
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\Providers; | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
OlderNewer