Skip to content

Instantly share code, notes, and snippets.

View abstractj's full-sized avatar

Bruno Oliveira da Silva abstractj

View GitHub Profile
@abstractj
abstractj / store-spec.md
Created June 27, 2012 16:40 — forked from kborchers/store-spec.md
Initial persistence API draft

Persistence API - draft 0.1

This is a initial proposal on having a very simple persistence layer

Requirements

  • Persist data on local storage as a type of buffer
  • Enable data to be created/saved/persisted/queryied/removed to/from the server side

References

@abstractj
abstractj / store-spec.md
Created June 25, 2012 12:58 — forked from kborchers/store-spec.md
Initial persistence API draft

Persistence API - draft 0.1

This is a initial proposal on having a very simple persistence layer

Requirements

  • Persist data on local storage as a type of buffer
  • Enable data to be created/saved/persisted/queryied/removed to/from the server side

References

This quickstart demonstrates the use of a number of HTML5, CSS3 and JavaScript techniques. The registration form uses client side validation based on the constraints also defined on the model class as well as new input attributes like placeholder and autofocus. The member table is populated using RESTful get calls, client side templating and CSS3 styling.

/**
* Copyright 2011 Douglas Campos
* Copyright 2011 dynjs 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
*
@abstractj
abstractj / selenium
Created February 7, 2012 16:52
selenium
[INFO] Failures:
[INFO]
[INFO] 1) STOMP applications via websockets should be able to connect and disconnect using stomp over websockets
[INFO] Failure/Error: visit( '/stomp-websockets/give-me-a-cookie-please' )
[INFO] Selenium::WebDriver::Error::WebDriverError:
[INFO] unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
[INFO] # ./spec/browser_stomp_spec.rb:24:in `(root)'
[INFO] # ./target/rspec-runner.rb:97:in `(root)'
[INFO] # -e:1:in `(root)'
[INFO]
@abstractj
abstractj / TimeIntervalUtil
Created February 6, 2012 18:26
TimeIntervalUtil
/*
* Copyright 2008-2012 Red Hat, Inc, and individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@abstractj
abstractj / torquebox.yml
Created January 31, 2012 17:39
torquebox.yml
web:
host: foobar.com
context: /tacos
session-timeout: 10 m
@abstractj
abstractj / build_error
Created January 26, 2012 13:17
build_error
[WARNING] Invalid gemspec in [/scratch/hudson/workspace/torquebox-2x-abstractj/label/m1.large/ruby_compat_version/1.8/integration-tests/target/integ-dist/jruby/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Yecht::DefaultKey:0x2529caa4> 3.2.0"]
[WARNING] Invalid gemspec in [/scratch/hudson/workspace/torquebox-2x-abstractj/label/m1.large/ruby_compat_version/1.8/integration-tests/target/integ-dist/jruby/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Yecht::DefaultKey:0x2529caa4> 3.2.0"]
[WARNING] Invalid gemspec in [/scratch/hudson/workspace/torquebox-2x-abstractj/label/m1.large/ruby_compat_version/1.8/integration-tests/target/integ-dist/jruby/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Yecht::DefaultKey:0x2529caa4> 3.2.0"]
[WARNING] Invalid gemspec in [/scratch/hudson/workspace/torquebox-2x-abstractj/label/m1.large/ruby_compat_version/1.8/integration-tests/target/integ-di
@abstractj
abstractj / DynJSConfig
Created January 20, 2012 21:07
DynJSConfig
/**
* Copyright 2011 Douglas Campos
* Copyright 2011 dynjs 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
*
@abstractj
abstractj / DynJSCompiler
Created January 20, 2012 20:50
Main.java
/**
* Copyright 2011 Douglas Campos
* Copyright 2011 dynjs 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
*