Skip to content

Instantly share code, notes, and snippets.

View gdevdeiv's full-sized avatar
🏠
Working from home

David Juan gdevdeiv

🏠
Working from home
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@extends('voyager::master')
@section('css')
<meta name="csrf-token" content="{{ csrf_token() }}">
@stop
@section('page_title', __('voyager.generic.'.(isset($dataTypeContent->id) ? 'edit' : 'add')).' '.$dataType->display_name_singular)
@section('page_header')
<h1 class="page-title">
@if(isset($view) && ($view == 'browse' || $view == 'read'))
@php
$relationshipData = (isset($data)) ? $data : $dataTypeContent;
$model = app($options->model);
$selected_values = $model::where($options->column, '=', $relationshipData->id)->pluck($options->label)->all();
@endphp
@if($view == 'browse')
@php
<div class="panel panel-warning panel-bordered" data-id="{{ $dataTypeContent->id }}">
<div class="panel-heading">
<h3 class="panel-title panel-icon">
<i class="voyager-bolt"></i> {{ $dataTypeContent->road_name ? $dataTypeContent->road_name : 'Item' }}
</h3>
<div class="panel-actions">
<a class="panel-action voyager-power" onclick="removeChildForm(this)"></a>
<a class="panel-action voyager-resize-full" data-toggle="panel-fullscreen" aria-hidden="true"></a>
<a class="panel-action voyager-angle-up" data-toggle="panel-collapse" aria-hidden="true"></a>
<?php
namespace App\Http\Controllers\Voyager;
use TCG\Voyager\Events\BreadDataUpdated;
use TCG\Voyager\Facades\Voyager;
use TCG\Voyager\Http\Controllers\VoyagerBreadController as BaseVoyagerBreadController;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
@gdevdeiv
gdevdeiv / ftb-1-10-2-jvm-args-for-gc-issue
Last active May 26, 2017 19:02
FTB 1.10.2 JVM argumens for Garbage Collector issue
-Xms8192m
-Xmn768m
-XX:PermSize=512m
-XX:+DisableExplicitGC
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+UseNUMA
-XX:+CMSParallelRemarkEnabled
-XX:MaxTenuringThreshold=15
-XX:MaxGCPauseMillis=30

Keybase proof

I hereby claim:

  • I am gdevdeiv on github.
  • I am davidjotta (https://keybase.io/davidjotta) on keybase.
  • I have a public key ASAVZwX4kbgF_8xNz86LI2EGJnLThm_WMaRxWK1BqOY1Zwo

To claim this, I am signing this object: