Skip to content

Instantly share code, notes, and snippets.

View sebastienblanc's full-sized avatar

Sebastien Blanc sebastienblanc

View GitHub Profile
{
"security":
	"createUsers" :["sebi","abtractj"],                   //1
	"createRole" :["simple","admin"],                     //2
	"roleMap": ["simple":["abstractj","sebi"],"admin":["sebi"]], //3
 	"generateLoginForm" : true,                           //4
 	"generateOTPPage" : true,                             //5
	"entities" : {                                        //6
 "org.sebi.Task" : {
@sebastienblanc
sebastienblanc / gist:5387550
Created April 15, 2013 11:52
team meeting 15/04/13

|function|In vertx ? | Implemented | |fs.rename(oldPath, newPath, callback)| fs.renameSync(oldPath, newPath) fs.ftruncate(fd, len, callback) fs.ftruncateSync(fd, len) fs.truncate(path, len, callback) fs.truncateSync(path, len) fs.chown(path, uid, gid, callback) fs.chownSync(path, uid, gid) fs.fchown(fd, uid, gid, callback)

WARNING: Missing required dependency to activate optional built in extension coffeescripttransform.rb
cannot load such file -- coffee-script
WARNING: Missing required dependency to activate optional built in extension minify.rb
cannot load such file -- htmlcompressor
Using profile: production
Generating site: http://localhost:4242
/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': cannot load such file -- asciidoctor (LoadError)
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /home/sebastien/.gem/ruby/1.9.1/gems/tilt-1.3.6/lib/tilt/template.rb:118:in `require_template_library'
from /home/sebastien/.gem/ruby/1.9.1/gems/awestruct-0.5.0/lib/awestruct/handlers/template/asciidoc.rb:12:in `initialize_engine'
[sebastien@sblanc nodyn.io]$ rake
WARNING: Missing required dependency to activate optional built in extension coffeescripttransform.rb
cannot load such file -- coffee-script
WARNING: Missing required dependency to activate optional built in extension minify.rb
cannot load such file -- htmlcompressor
Using profile: development
Generating site: http://localhost:4242
/home/sebastien/apps/nodej/nodyn.io/vendor/ruby/1.9.1/gems/tilt-1.3.7/lib/tilt/template.rb:118:in `require': cannot load such file -- coffee_script (LoadError)
from /home/sebastien/apps/nodej/nodyn.io/vendor/ruby/1.9.1/gems/tilt-1.3.7/lib/tilt/template.rb:118:in `require_template_library'
from /home/sebastien/apps/nodej/nodyn.io/vendor/ruby/1.9.1/gems/tilt-1.3.7/lib/tilt/coffee.rb:36:in `initialize_engine'
if (window.navigator.geolocation) {
var accuracyThreshold = 100,
timeout = 10 * 1000,
watchID = navigator.geolocation.watchPosition(function(position) {
$('#latitude').val(position.coords.latitude); // set your latitude value here
$('#longitude').val(position.coords.longitude); // set your longitude value here
// if the returned distance accuracy is less than your pre-defined accuracy threshold,
// then clear the timeout below and also clear the watchPosition to prevent it from running continuously
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="forge-default" transaction-type="JTA">
<description>Forge Persistence Unit</description>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show_sql" value="true"/>
PersistenceFacet persistenceFacet = this.project.getFacet(PersistenceFacet.class);
PersistenceDescriptor persistenceConfig = persistenceFacet.getConfig();
persistenceConfig.persistenceUnit("forge-default").classes( "org.picketlink.idm.jpa.schema.IdentityObject",
"org.picketlink.idm.jpa.schema.PartitionObject",
"org.picketlink.idm.jpa.schema.RelationshipObject",
"org.picketlink.idm.jpa.schema.RelationshipIdentityObject",
"org.picketlink.idm.jpa.schema.RelationshipObjectAttribute",
"org.picketlink.idm.jpa.schema.IdentityObjectAttribute",
"org.picketlink.idm.jpa.schema.CredentialObject",
persistence setup --provider HIBERNATE --container JBOSS_AS7;
validation setup --provider JAVA_EE;
entity --named Customer;
field string --named firstName;
field temporal --type DATE --named dateOfBirth;
entity --named DiscountVoucher;
field string --named voucherCode;
entity --named StoreOrder;
field string --named product;
field int --named amount;