Skip to content

Instantly share code, notes, and snippets.

View jacobheric's full-sized avatar

Jacob Heric jacobheric

View GitHub Profile
@jacobheric
jacobheric / keybase.md
Created September 27, 2017 22:29
keybase proof

Keybase proof

I hereby claim:

  • I am jacobheric on github.
  • I am jacobheric (https://keybase.io/jacobheric) on keybase.
  • I have a public key ASCa4t8ExR0norKBhFzBKO_0e7JrJXy8OgjnZVH1ODBwAwo

To claim this, I am signing this object:

@jacobheric
jacobheric / gist:5460761
Created April 25, 2013 15:44
some flex code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
creationComplete="creationCompleteHandler();">
<mx:Script>
<![CDATA[
import com.jacobheric.youbrew.model.Recipe;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
@jacobheric
jacobheric / gist:5460744
Created April 25, 2013 15:43
some blazeds related actionscript
[Bindable]
[RemoteClass(alias="com.jacobheric.youbrew.domain.Recipe")]
public class Recipe
{
public var id:int;
public var name:String;
public var start:Date;
public var end:Date;
public var brewNotes:String;
@jacobheric
jacobheric / gist:5460732
Created April 25, 2013 15:42
example java dao
//PersistenceExceptions will be auto-translated due to @Repository
@Repository("recipeService")
@RemotingDestination(channels = { "my-amf" })
@Transactional
public class RecipeDAO extends BaseDao<Recipe> implements RecipeService {
/**
* Constructor, see super class implementation.
*/
@jacobheric
jacobheric / gist:5460721
Last active December 16, 2015 16:09
spring component scan config snippet
<!--
Enable annotation-based configuration.
-->
<context:annotation-config />
<context:component-scan base-package="com.jacobheric" />
@jacobheric
jacobheric / gist:5460718
Last active December 16, 2015 16:09
tell flex servlet which remoting channel
<flex:message-broker>
<flex:message-service
default-channels="my-amf" />
<flex:secured />
</flex:message-broker>
@jacobheric
jacobheric / gist:5460703
Last active December 16, 2015 16:09
flex servlet config
<servlet>
<servlet-name>flex</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>flex</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
@jacobheric
jacobheric / gist:5460688
Last active December 16, 2015 16:09
a spring blazeds amf remoting channel config
<services>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
</services>
<channels>
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://localhost:8080/youbrew/messagebroker/amf"
@jacobheric
jacobheric / gist:5460682
Last active December 16, 2015 16:09
some Maven pom flex configs
<configuration>
<parameters>
<swf>${project.artifactId}-${youbrew.version}</swf>
<title>You Brew your own software</title>
</parameters>
<outputDirectory>${basedir}/../java-web/src/main/webapp/</outputDirectory>
<services>${basedir}/../java-web/src/main/webapp/WEB-INF/flex/services-config.xml</services>
<htmlName>index</htmlName>
<contextRoot>/youbrew</contextRoot>
<locales>
@jacobheric
jacobheric / gist:5460651
Last active December 16, 2015 16:09
Maven pom flex snippet
<!-- See module poms for more detail. -->
<modules>
<module>flex</module>
<module>java-web</module>
</modules>