Skip to content

Instantly share code, notes, and snippets.

View matschaffer's full-sized avatar
🧡

Mat Schaffer matschaffer

🧡
View GitHub Profile
git clone git://github.com/schapht/corundum.git
cd corundum/
mvn clean install
cd testapp/
mvn clean install
java -jar target/testapp-0.0.1-SNAPSHOT-jruby-complete.jar
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.cimians.code.corundum</groupId>
<artifactId>parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>myapps</groupId>
<artifactId>testapp</artifactId>
mv ~/.profile ~/.profile.old
git clone git://github.com/schapht/profile.git ~/.profile.d
ln -s ~/.profile.d/init ~/.profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/grid.css"/>
<script type="text/javascript" src="__SERVER_URL__/js/toolkit/yui.js"></script>
<script type="text/javascript" src="__SERVER_URL__/js/toolkit/toolkit.js"></script>
<script type="text/javascript" src="__SERVER_URL__/js/toolkit/connection.js"></script>
<script type="text/javascript" src="__SERVER_URL__/js/toolkit/datasource.js"></script>
<script type="text/javascript" src="__SERVER_URL__/js/toolkit/grid.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/renderer.css" />
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/grid.css" />
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/editor.css" />
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/toolkit.css" />
<link type="text/css" rel="stylesheet" href="__SERVER_URL__/css/toolkit/toolkit.css" />
// ==UserScript==
// @name Fix igoogle
// @namespace User
// @include http://www.google.com/ig
// ==/UserScript==
document.getElementById('col1').style.display = "None";
document.getElementById('gsea').style.display = "None";
RALLY.JsonApi.prototype.capitalize = function(o) {
if (typeof o == "string") {
return o.charAt(0).toUpperCase() + o.substr(1).toLowerCase();
} else {
return o;
}
};
RALLY.JsonApi.prototype.capitalizedKeys = function(data) {
var newData = {};
import commands
from string import Template
tmpl = Template("git-svn clone $repo $folder")
def getCommandOutput(command):
status, output = commands.getstatusoutput(command)
if status != 0:
raise RuntimeError, '%s failed w/ exit code %d' % (command, status)
return data
public class TubeClass {
public static boolean methodCalled = false;
public static boolean constructorCalled = false;
public TubeClass() {
constructorCalled = true;
System.err.println("I really wish you wouldn't call me.");
}
public void dontCallMe() {
class AClassThatUsesSend
def action
# here's where the action happens
@helper_type = "foo"
# this is equivalent to self.foo_helper or just foo_helper
send("#{@helper_type}_helper")
end
def foo_helper