This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toon { | |
echo -n "➜" | |
} | |
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
get_git_dirty() { | |
git diff --quiet || echo '*' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> | |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Threshold" value="TRACE" /> | |
<param name="Target" value="System.out" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Objects; | |
import java.util.Optional; | |
import java.util.stream.Stream; | |
/** | |
* Utilities for working with default values | |
*/ | |
public class DefaultUtils { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DefaultUtilsSpecTest extends Specification { | |
@Unroll | |
def "test defaults (#a #b #c) = #d"(String a, String b, String c, String d){ | |
expect: | |
DefaultUtils.defaultIfNull(a, b, c) == d | |
where: | |
a | b | c | d | |
"val1" | null | "default" | "val1" | |
null | "val2"| "default" | "val2" | |
null | null | "default" | "default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\,,,/ | |
(o o) | |
-----oOOo-(_)-oOOo----- | |
gremlin> import com.pearson.atwood.dsl.* | |
gremlin> import com.pearson.atwood.dsl.util.* | |
gremlin> c = ConfigurationProvider.create(ConfigurationProvider.Env.DEV, ConfigurationProvider.WorkLoad.READ_HEAVY) | |
==>org.apache.commons.configuration.BaseConfiguration@41813449 | |
gremlin> g = TitanFactory.open(c) | |
==>titangraph[inmemory:[192.168.1.112]] |
OlderNewer