Skip to content

Instantly share code, notes, and snippets.

Dragan Mijatovic gandra

Block or report user

Report or block gandra

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
import java.nio.file.Files;
import java.nio.file.*;
public class MoveFilesDemo {
public static void main(String[] args) throws IOException
Path temp = Files.move
View composer.json
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"caouecs/laravel-lang": "~3.0",
"darkaonline/l5-swagger": "~4.0",
vagrant@my-api:~/Code/my-api$ composer install --no-dev --optimize-autoloader
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
PHP Fatal error: Uncaught InvalidArgumentException: Authentication user provider [external-user] is not defined. in /home/vagrant/Code/my-api/vendor/laravel/framework/src/Illuminate/Auth/CreatesUserProviders.php:40
Stack trace:
#0 /home/vagrant/Code/my-api/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(123): Illuminate\Auth\AuthManager->createUserProvider('users')
View MyTestingComponent.spec..ts
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from "@angular/router/testing";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing";
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { MyService1, MyService2, MyService3, MyService4, MyService5, MyService6, SomeClass } from '../comun/services';
import { Ng2Bs3ModalModule } from "ng2-bs3-modal/ng2-bs3-modal";
import { MyTestingComponent } from './my-testing-component.component';
View gist:b8a842b6cfd3267cde186f351875ecee
image: woohuiren/php-laravel-env:5.3
- mysql:latest
- bash # Script injection for SSH keys used for deployments
View angular-cli.json
"project": {
"version": "1.0.0-beta.25.5",
"name": "my-project"
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
View angular-cli.json
"project": {
"version": "1.0.0-beta.25.5",
"name": "kibernum-dnc-client"
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
View app.component.html
<header class="main-header">
<!-- Logo -->
<a href="./" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>Min</b>ju</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Minju</b> 003</span> </a>
<!-- Header Navbar: style can be found in header.less -->
View app.component.ts
import { Component, ViewChild, OnInit, ElementRef, HostBinding } from '@angular/core';
import { environment } from '../environments/environment';
import { MenuComponent } from './menu';
import { LoginService, EstiloService, UtilService } from './comun/services';
import { KeycloakService } from './comun/keycloak';
import * as moment from 'moment/moment';
import { enableProdMode } from '@angular/core';
if (environment.production) {
View gist:f968ae4435dc79188aca414ad1de3124
git reset --hard HEAD
git checkout master
git pull
composer install
composer update
php artisan migrate
php artisan db:seed
You can’t perform that action at this time.