Skip to content

Instantly share code, notes, and snippets.

Kiko Seijo kikoseijo

Block or report user

Report or block kikoseijo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 2019_09_03_141329_create_form_requests_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFormRequestsTable extends Migration
{
/**
* Run the migrations.
View install-opencv-3.3.1-in-centos-7.sh
#!/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
@kikoseijo
kikoseijo / Admin-FormResponseController.php
Last active Apr 12, 2018
Laravel Contact Form - Form request with validations, back office admin views, recipients database relationship, ajax request using Axios, tests provided by Laravel Dusk. Includes Model files and migrations.
View Admin-FormResponseController.php
<?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;
@kikoseijo
kikoseijo / BackupController.php
Last active May 16, 2019
Laravel Spatie backup with controller routes and views
View BackupController.php
<?php
namespace App\Http\Controllers;
use Alert;
use Artisan;
use Carbon\Carbon;
use Log;
use Spatie\Backup\Helpers\Format;
use Storage;
@kikoseijo
kikoseijo / BulmaFramework.php
Created Feb 18, 2018
Laravel Former custom framework for Bulma.io compatibility
View BulmaFramework.php
<?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;
@kikoseijo
kikoseijo / App.js
Created Feb 11, 2018
React navigation wrapper
View App.js
import NavigatorService from './src/libs/navigator';
renderMain() {
const { token } = this.state;
if (token && token.length > 10) {
return (
<StackNavigator
ref={navigatorRef => {
NavigatorService.setContainer(navigatorRef);
}}
@kikoseijo
kikoseijo / NewsList.js
Last active Feb 25, 2018
React Relay Modern QueryRenderer + PaginationController.
View NewsList.js
export default createPaginationContainer(
NewsList,
{
viewer: graphql`
fragment NewsList_viewer on User {
news(first: $count, after: $after) @connection(key: "NewsList_news") {
edges {
node {
id
View react-native-clean.sh
#!/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
@kikoseijo
kikoseijo / certToSimulator.sh
Last active Feb 4, 2018
Easy way to add valet secured sites self signed certificates to iOS simulators
View certToSimulator.sh
#!/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
View ReactAsyncStore.js
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);
};
You can’t perform that action at this time.