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 | |
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 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
#!/usr/bin/env bash | |
# # | |
# # Install main dependencies on CentOS: | |
# # Python 3.4.5, CMake 3.10.0, OpenCV 3.3.1 | |
# # Author Andrii Lundiak ([email protected]) | |
# # | |
# https://github.com/ageitgey/face_recognition/issues/191 | |
# https://github.com/opencv/opencv/issues/8471 |
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 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 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 App\Http\Controllers; | |
use Alert; | |
use Artisan; | |
use Carbon\Carbon; | |
use Log; | |
use Spatie\Backup\Helpers\Format; | |
use Storage; |
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 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 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
import NavigatorService from './src/libs/navigator'; | |
renderMain() { | |
const { token } = this.state; | |
if (token && token.length > 10) { | |
return ( | |
<StackNavigator | |
ref={navigatorRef => { | |
NavigatorService.setContainer(navigatorRef); | |
}} |
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
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 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 | |
# Copyright 2018 Sunnyface.com. | |
# | |
echo "running commands on" && pwd | |
rm -rf ios/build | |
rm -rf node_modules && npm install | |
node_modules/react-native/packager/packager.sh --reset-cache | |
watchman watch-del-all |
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 | |
# PREREQUISITES: | |
# have this repo under know directory | |
# https://github.com/ADVTOOLS/ADVTrustStore.git | |
# Add valet certificates to ios simulators | |
echo "Im Done..;-)" | |
ls -la ~/.valet/Certificates | |
echo "Which one? (without extension name)" | |
read CERT_NAME | |
cd ~/kscripts/ADVTrustStore |
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
import { AsyncStorage } from 'react-native'; | |
// retrieve | |
export const get = async key => await AsyncStorage.getItem(key); | |
// store | |
export const set = async (key, value) => { | |
await AsyncStorage.setItem(key, value); | |
}; |
NewerOlder