This package allows CSV based seeds.
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
| public clas AsyncImplementation extends AsyncTask<Void, Void, Void> { | |
| /*Please read the rest of the explanation in the DefaultImplementation.java file. The difference between a default http request | |
| and one using an AsyncTask is the enqeue() or the .execute() method*/ | |
| /*If you are passing params to the url, like it would be the case of the method post(long theDynamicParameter) you can | |
| do it using replacing the void in the AsyncTask, in this case we are passing a Map so is passed in the constructor. Some times, | |
| you would want the AsyncTask solve all the logic, then implements methods here to do it. Create the request http in a loop. | |
| Use getter and setter to extends this to another class, etc. | |
| Now in activity you can new AsyncImplementation(map).execute();*/ |
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 class BaseComponent { | |
| public scope: ComponentScope; | |
| constructor() { | |
| } | |
| } |
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 { Injectable , Component} from '@angular/core'; | |
| import { HttpClient, HttpHeaders } from "@angular/common/http"; | |
| import { Observable } from 'rxjs'; | |
| import {AuthServiceJwt} from '../Common/sevice.auth.component'; | |
| @Injectable() | |
| export class GenericHttpClientService { | |
| private readonly baseUrl : string = "**********"; | |
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 { TokenInterceptor } from './auth/token.interceptor'; | |
| @NgModule({ | |
| declarations: [], | |
| imports: [], | |
| exports: [], | |
| providers: [ | |
| { | |
| provide: HTTP_INTERCEPTORS, | |
| useClass: TokenInterceptor, |
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 | |
| // I made this array by joining all the following lists + .php extension which is missing in all of them. | |
| // please contribute to this list to make it as accurate and complete as possible. | |
| // https://gist.github.com/plasticbrain/3887245 | |
| // http://pastie.org/5668002 | |
| // http://pastebin.com/iuTy6K6d | |
| // total: 1223 extensions as of 16 November 2015 | |
| $mime_types = array( | |
| '3dm' => array('x-world/x-3dmf'), | |
| '3dmf' => array('x-world/x-3dmf'), |
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 Illuminate\Http\Request; | |
| use Session; | |
| use Illuminate\Support\Facades\Redirect; | |
| use DB; | |
| use Illuminate\Support\Facades\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
| //Autofac Configuration | |
| using Autofac.Integration.Mvc; | |
| using Autofac; | |
| var builder = new Autofac.ContainerBuilder(); | |
| builder.RegisterControllers(typeof(MvcApplication).Assembly).PropertiesAutowired(); | |
| builder.RegisterModule(new RepositoryModule()); |
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
| public abstract class AuditableEntity<T> : Entity<T>, IAuditableEntity | |
| { | |
| [ScaffoldColumn(false)] | |
| public DateTime CreatedDate { get; set; } | |
| [MaxLength(256)] | |
| [ScaffoldColumn(false)] | |
| public string CreatedBy { get; set; } | |
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
| // Basic unitOfWork pattern as described by Martin Fowler (http://martinfowler.com/eaaCatalog/unitOfWork.html) | |
| // Other methos as 'registerNew' are going to be managed by each repository | |
| public interface IUnitOfWork : IDisposable | |
| { | |
| void Commit(); | |
| Task CommitAsync(); | |
| void Rollback(); | |
| } | |
| public interface IUnitOfWorkFactory |