Skip to content

Instantly share code, notes, and snippets.

'doctrine' => array(
'driver' => array(
__NAMESPACE__ . '_driver' => array(
'class' => 'Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Document')
),
'orm_default' => array(
'drivers' => array(
__NAMESPACE__ . '\Document' => __NAMESPACE__ . '_driver'
//http://www.siraj360.com/ng2/ :: A single page application developed with Angular 2 (beta) and Bootstrap 4 (alpha).
<div class="row">
<div class="jumbotron bg-inverse" style="background-color:#eb7d00">
<div class="container">
<h5><b><span class="label label-primary label-pill">Let's Do Something Awesome!</span></b></h5>
<h1 class="display-3">ng2 & BS4 in action!</h1>
<h4>A sample single page application developed with Angular 2 (beta) and Bootstrap 4 (alpha).</h4>
<h4>
Code snippets/files are at <a class="label label-danger"
href="https://gist.github.com/SirajGadhia"
@ellipizle
ellipizle / frontendDevlopmentBookmarks.md
Created June 12, 2016 16:26 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
import {Component} from '@angular/core'
@Component({
selector: 'test-app',
template: '<div>hello {{name}}</div>'
})
export class App {
name: string;
constructor(){
this.name = 'electron!'
@ellipizle
ellipizle / Username Validation
Created July 13, 2016 03:22 — forked from qdouble/Username Validation
Username validator
import { FormControl } from '@angular/forms';
import { AsyncValidatorFn, ValidatorFn } from '@angular/forms/src/directives/validators';
import { Control } from '@angular/common';
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import { API_USER_URL } from '../services/constants';
@Injectable()
@ellipizle
ellipizle / domain-driven-desire-resources.md
Created November 24, 2016 07:52 — forked from somebox/domain-driven-desire-resources.md
Domain-Driven Desire: Further Reading

Domain-Driven Desire: The Talk from Øredev 2016

🎥 https://vimeo.com/191051851

Links and References

Thanks for watching my talk, Domain-Driven Desire at Øredev 2016. Here's a list of resources that inspired me, and will hopefully inspire you:

Videos

This is my response to an email asking about Domain-Driven Design in golang project.

Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.

That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.

Conclusions could be very different, if there was a different project, team or a story-teller.

Short story

@ellipizle
ellipizle / async validation with debounce
Created May 4, 2017 19:05
async validation with debounce listening to value change
import { Component, OnInit } from '@angular/core';';
import { FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors } from '@angular/forms';
import { Router } from '@angular/router'
import { CommonValidators } from '../service/CommonValidator';
import { Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { GlobalService } from '../../shared/service/global.service';
import { AuthHttp } from 'angular2-jwt'
declare var $: any;
import 'rxjs/add/operator/delay';
@ellipizle
ellipizle / frp.md
Created May 17, 2018 20:26 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

package mathema
import "errors"
type Config struct{
ExtraPoint float64
IsExtra bool
}
type Calculate struct{