Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@curtisallen
curtisallen / example
Created April 18, 2013 00:02
how to add a github remote from an existing git repo
git clone <OPENSHIFT STUFF>
cd <OPENSHFIT REPO DIR>
git remote add github -m master https://github.com/curtisallen/<reponame>.git
git pull -s recursive -X theirs github master
package com.mis.rex.rexdev;
import com.mis.rex.rexdev.view.SportTweet;
import com.mis.rex.rexdev.view.SportTweetMetaData;
import org.tcrex.data.Rex;
import org.tcrex.data.RexFactory;
import org.tcrex.data.event.RexPublisher;
import org.tcrex.data.event.impl.RecordingStubPublisher;
import org.tcrex.data.loaders.BeanDataLoader;
@curtisallen
curtisallen / gist:5158650
Created March 14, 2013 03:43
pom for assembly
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.intelligence.mrcy</groupId>
<artifactId>STRAP</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>STRAPServer</artifactId>
<packaging>jar</packaging>
<name>STRAP Server</name>
@curtisallen
curtisallen / curtis.zsh-theme
Last active December 11, 2015 05:28
Curtis' oh-my-zsh theme
function toon {
echo -n "➜"
}
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
get_git_dirty() {
git diff --quiet || echo '*'
}
@curtisallen
curtisallen / gist:2841350
Created May 31, 2012 05:46
all the tweets
Incoming tweet: {"text":"RT @Sydneys_Word: Baseball is a sport but I don't consider baseball players athletes.","replyToId":-1,"vote":"player","urls":"[]","retweetCount":0,"screenName":"ItsNadaSport","profileImageUrl":"http://a0.twimg.com/profile_images/2205719553/Sports-Junkie-253x300_normal.jpg","id":208070738995974145,"replyToUserId":-1,"isRetweet":true,"username":"Its NadaSport","time":1338442904000,"retweetStatus":"StatusJSONImpl{createdAt=Wed May 30 21:28:40 CDT 2012, id=208022152321056768, text='Baseball is a sport but I don't consider baseball players athletes.', source='<a href=\"http://mobile.twitter.com\" rel=\"nofollow\">Mobile Web<\/a>', isTruncated=false, inReplyToStatusId=-1, inReplyToUserId=-1, isFavorited=false, inReplyToScreenName='null', geoLocation=null, place=null, retweetCount=0, wasRetweetedByMe=false, contributors=null, annotations=null, retweetedStatus=null, userMentionEntities=[], urlEntities=[], hashtagEntities=[], user=UserJSONImpl{id=212456089, name='Sydney Bowden', screenName='Sy