First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
This is my personal setup for linting and repo branches protection for a new laravel project. Feel free to copy and adjust.
I am using both bitbucket and github for mostly private projects, while bitbucket allows private repo to use advance features such as branch permission, github limit their protected branch feature for free-user.
On the other hand, implementing standard linting for both JS and PHP will help code-reviewer to read and evaluate the code.
Last but not least, standardized commit message will make everybody happy. =)
<?php | |
namespace App\Traits; | |
use Illuminate\Http\JsonResponse; | |
use Symfony\Component\HttpFoundation\Response; | |
trait ApiResponse | |
{ | |
/** |
Go to https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html
Download the following zip files according to the required version
instantclient-basic-macos.x64-19.8.0.0.0.zip
instantclient-sqlplus-macos.x64-19.8.0.0.0.zip
instantclient-sdk-macos.x64-19.8.0.0.0.zip
# Brewの場合 | |
$ brew install tor | |
# Macportsの場合 | |
$ sudo port install tor |
<?php | |
$streamedResponse = new StreamedResponse(); | |
$streamedResponse->setCallback(function () { | |
$spreadsheet = //create you spreadsheet here; | |
$writer = new Xlsx($spreadsheet); | |
$writer->save('php://output'); | |
}); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CKFinder Keygen</title> | |
</head> | |
<body> | |
<table style="border: 1px solid #999;"> | |
<thead> | |
<tr> |
var game_ids = []; | |
db.getCollection('games').aggregate([ | |
{ | |
$lookup: | |
{ | |
from: "users", | |
localField: "user_id", | |
foreignField: "_id", | |
as: "users_docs" |
function initMyList(values) { | |
var selected = []; | |
var initials = []; | |
for (var s in values) { | |
initials.push({id: s, name: values[s].name}); | |
selected.push(s); | |
} | |
$('#myselect2').select2({ |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |