WORDPRESS R.I.P
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; | |
use Alert; | |
use Artisan; | |
use Carbon\Carbon; | |
use Log; | |
use Spatie\Backup\Helpers\Format; | |
use Storage; |
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
#!/usr/bin/env bash | |
# # | |
# # Install main dependencies on CentOS: | |
# # Python 3.4.5, CMake 3.10.0, OpenCV 3.3.1 | |
# # Author Andrii Lundiak (landike@gmail.com) | |
# # | |
# https://github.com/ageitgey/face_recognition/issues/191 | |
# https://github.com/opencv/opencv/issues/8471 |
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
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
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
@servers(['remote' => 'ks1.xxxxx.com', 'local' => '127.0.0.1']) | |
@include('vendor/autoload.php') | |
@setup | |
# customize this keys... | |
# USERNAME_HERE, DOMAIN_NAME_HERE, REPO_GROUP, REPO_NAME | |
$dotenv = Dotenv\Dotenv::create(__DIR__, '.env'); | |
$dotenv->load(); |
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 | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateFormRequestsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
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\Back; | |
use App\Mail\Admin\ContactFormSubmitted; | |
use App\Models\FormResponse; | |
use App\Repositories\FormResponseRepository; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Mail; |
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 Helpers; | |
use Former\Interfaces\FrameworkInterface; | |
use Former\Traits\Field; | |
use Former\Traits\Framework; | |
use HtmlObject\Element; | |
use Illuminate\Container\Container; | |
use Illuminate\Support\Str; |
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
export default createPaginationContainer( | |
NewsList, | |
{ | |
viewer: graphql` | |
fragment NewsList_viewer on User { | |
news(first: $count, after: $after) @connection(key: "NewsList_news") { | |
edges { | |
node { | |
id |
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
import NavigatorService from './src/libs/navigator'; | |
renderMain() { | |
const { token } = this.state; | |
if (token && token.length > 10) { | |
return ( | |
<StackNavigator | |
ref={navigatorRef => { | |
NavigatorService.setContainer(navigatorRef); | |
}} |
NewerOlder