Public Gists by tomjadams

Gravatar
Mon Aug 10 19:10:50 -0700 2009
1
2
3
package com.foo.http
 
import scapps.http.BaseApp
Gravatar
Sun Mar 29 19:44:45 -0700 2009
1
2
3
// OLD
 
- (NSDictionary *)parsePerks:(NSArray *)perks {
Gravatar
Thu Mar 26 16:15:38 -0700 2009
1
2
3
module UserAgentHelper
  def on_iphone_like_device?
    request && (request.user_agent =~ /iPhone/ || request.user_agent =~ /iPod.*AppleWebKit.*Mobile.*Safari/)
Gravatar
Tue Mar 24 15:22:52 -0700 2009
1
2
3
#!/bin/sh
NUM_CORES=2
FJ_ARTIFACTS_DIR=/home/me/functionaljava/artifacts/latest
Gravatar
Wed Mar 18 17:30:14 -0700 2009
1
2
3
+ (FKEither *)doParseContent:(NSString *)rssContent {
    PXRss20ParserDelegate *parser = [[PXRss20ParserDelegate alloc] initWithContent:rssContent];
    FKEither *maybeItems = [parser.parse.right map:[NSArray liftFunction:[FKFunction functionFromSelector:@selector(parseItem:)]]];
gist: 70639 Without the destructive update
Gravatar
Wed Feb 25 19:44:46 -0800 2009
1
2
3
# sans destructive update
def f(rss, n)
  rss.inject(0) {|acc, rs| rs.include?(n) ? acc + 1 : acc}
Gravatar
Wed Sep 03 18:28:51 -0700 2008
1
2
3
package com.googlecode.furnace.grid
 
import org.gridgain.grid.{GridTaskSplitAdapter, GridJobResult, GridJob}
Gravatar
Wed Aug 27 20:53:54 -0700 2008
1
2
3
    <property name="project.longname" value="Instinct Behaviour Driven Development (BDD) Framework"/>
    <property name="project.shortname" value="instinct-core"/>
    <property name="project.version.major" value="0"/>
Gravatar
Wed Aug 27 19:32:38 -0700 2008
1
2
3
CmdUtils.CreateCommand({
  name: "showmore",
  takes: {"url to shorten": noun_arb_text},
Gravatar
Mon Aug 25 15:16:09 -0700 2008
1
2
3
package com.googlecode.furnace.analyse.blast;
 
import static com.googlecode.instinct.expect.Expect.expect;
Gravatar
Thu Aug 21 20:16:35 -0700 2008
1
2
3
object CommandLineBlast {
  lazy val blastHome = getenv("BLAST_HOME")
  lazy val tmpDir = getProperty("java.io.tmpdir")
Gravatar
Tue Aug 19 23:14:40 -0700 2008
1
2
3
scala> val list = List(1, 2, 3, 4, 5, 6, 7, 8, 9)
list: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9)
 
Gravatar
Tue Aug 19 21:17:41 -0700 2008
1
2
3
package com.googlecode.furnace.parse
 
import sequence.GeneSequence
Gravatar
Mon Aug 04 22:12:58 -0700 2008
1
2
3
private SpecificationResult runLifecycle(final long startTime, final SpecificationLifecycle lifecycle,
        final SpecificationMethod specificationMethod) {
    List<Option<Throwable>> lifecycleStepErrors = nil();
gist: 3574 Finding a specification res...
Gravatar
Thu Jul 31 20:53:46 -0700 2008
1
2
3
package com.googlecode.instinct.internal.runner;
 
import static com.googlecode.instinct.expect.Expect.expect;
Gravatar
Wed Jul 30 18:41:58 -0700 2008
1
2
3
public final class SpecificationLifecycleImpl implements SpecificationLifecycle {
    public <T extends Throwable> Either<T, ContextClass> createContext() {
        throw new UnsupportedOperationException();