Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

'use strict';
angular.module('vcrudValidatedInputDirective', [])
.directive('validatedInput', function($tooltip, $interval) {
return {
restrict: 'A',
scope:{
feedbackType: '@',
label:'@',
formValidation:'@',
<form role="form" name='registerForm' class="register-form" ng-controller="registerFormCtrl">
<div growl></div>
<div class="form-group col-md-6">
<input
type="text"
id="firstname"
name="firstname"
class="form-control"
placeholder="{{ 'sign.placeHolderFirstname' | translate }}"
ng-model="register.firstname"
'use strict';
angular.module('vcrudSign', ['vcrudSignService', 'vcrudSignDirective', 'angular-growl'])
.controller('registerFormCtrl', ['$scope', 'growl', function($scope, growl) {
$scope.submit = function() {
if (!$scope.registerForm.$valid){
growl.addErrorMessage('Error in form',{ttl: 5000});
}
$scope.$broadcast('validateFormEvent');
};
@ddelizia
ddelizia / gist:3714418
Created September 13, 2012 13:49
mvn repositories for camel project
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
@ddelizia
ddelizia / gist:3714403
Created September 13, 2012 13:47
Error - mvn missing repository
Failed to execute goal on project projectName:
Could not resolve dependencies for project com.package.projectName:type:version:
The following artifacts could not be resolved:
org.apache.camel:camel-bindy:jar:2.8.0-fuse-03-06, org.apache.camel:camel-core:jar:2.8.0-fuse-03-06, org.apache.camel:camel-spring:jar:2.8.0-fuse-03-06, org.apache.camel:camel-jetty:jar:2.8.0-fuse-03-06, org.apache.camel:camel-http:jar:2.8.0-fuse-03-06, org.apache.camel:camel-test:jar:2.8.0-fuse-03-06: Could not find artifact org.apache.camel:camel-bindy:jar:2.8.0-fuse-03-06 in central (http://repo1.maven.org/maven2)
@ddelizia
ddelizia / VcrudModel.java
Created July 15, 2013 14:47
Vcrud Model
package org.ddelizia.vcrud.model;
import javax.persistence.*;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* User: danilo.delizia
* Date: 8/05/13
* Time: 16:17
@ddelizia
ddelizia / httpd.conf
Created August 5, 2018 17:15
My httpd configuration with php installed
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
{
"code-runner.runInTerminal": true,
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Cobalt2",
"editor.fontSize": 12,
"editor.formatOnSave": true,
"files.autoSaveDelay": 10000,
"files.autoSave": "afterDelay",
"python.pythonPath": "${workspaceFolder}/venv/bin/python",
"python.linting.enabled": true,
code --install-extension ecmel.vscode-html-css
code --install-extension felixfbecker.php-debug
code --install-extension felixfbecker.php-intellisense
code --install-extension formulahendry.code-runner
code --install-extension k--kato.intellij-idea-keybindings
code --install-extension mikestead.dotenv
code --install-extension mrmlnc.vscode-apache
code --install-extension ms-python.python
code --install-extension ms-vscode.Go
code --install-extension PeterJausovec.vscode-docker
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'
export JREBEL_HOME=/Applications/jrebel
export LC_ALL=es_ES.UTF-8
export LANG=es_ES.UTF-8
alias ccat='pygmentize -g'
alias hosts='cat /etc/hosts'
alias mysshkey='pbcopy < ~/.ssh/id_rsa.pub'
alias jupyter='cd ~/projects/jupyter;pipenv run jupyter notebook'