Skip to content

Instantly share code, notes, and snippets.

View jacobheric's full-sized avatar

Jacob Heric jacobheric

View GitHub Profile
@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: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: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: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: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 / 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: