Skip to content

Instantly share code, notes, and snippets.

View hjast's full-sized avatar

Reuben Doetsch hjast

View GitHub Profile
@hjast
hjast / BlogPostTest
Created July 15, 2011 03:08
XML code inquiry
<lift:surround with="black-main-column" at="content">
<div class="lift:BlogPostTest">
<lift:bind-at name="side-col">
<lift:surround with="_userfaces">
<lift:bind-at name="title"><span>Members</span></lift:bind-at>
</lift:surround>
</lift:bind-at>
@hjast
hjast / Experiment.scala
Created June 26, 2011 06:07
Test.scala
package com.sportaneous.snippet
import java.util.Calendar
import java.text.SimpleDateFormat
import net.liftweb.http.js.JsCmds.ReplaceOptions._
import com.sportaneous.snippet.SelectValue._
import net.liftweb.http.js.{JE, JsCmd}
import net.liftweb.http.js.JsCmds.After._
import xml.{Null, PrefixedAttribute, NodeSeq}
import net.liftweb.http.{StatefulSnippet, SHtml, S}
@hjast
hjast / API_Game
Created June 26, 2011 06:06
Annoying Code
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class API_Game
{
public Long gameID;
public Sport sport;
public GameStatus status;
public API_Facility facility;
public String date;
public String time;
@hjast
hjast / Metrics
Created November 17, 2010 22:59
My shit
One Tab
Note: in their HQ means that the region of domicile and the client rel region of domicile is the same
TABLE A:
MAIN PART
HQ-
Clients globally who have are selling that product in their HQ
---------------------------------------------------------------
Number of unique clients globally with one product over 25K
Sub-
Clients globally who have are selling that product in a sub
#APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require 'rubygems'
require 'sinatra'
require 'haml'
require 'sinatra/dynamicmatic'
class Gsd < Sinatra::Application
#set :root, APP_ROOT
From d171b1842eda04f0bc5c307888b6bd79ce8108b6 Mon Sep 17 00:00:00 2001
From: Charles Comstock <[email protected]>
Date: Fri, 30 Oct 2009 15:47:02 -0500
Subject: [PATCH] added missing cdstdio for vm/util/bert.hpp
---
vm/util/bert.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/vm/util/bert.hpp b/vm/util/bert.hpp