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
#!/usr/bin/env bash | |
# make.sh script to build maven | |
path=$(cd ${0%/*} && pwd -P) | |
. $path/mvnopts | |
# contents of mvnopts: | |
# export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" | |
usage() | |
{ |
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.jawspeak; | |
import org.junit.Test; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNotNull; |
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
#!/usr/bin/env ruby | |
# http://projecteuler.net/index.php?section=problems&id=1 | |
# 2010-01-26 | |
def sums(n) | |
s, i, p = 0, 0, 0 | |
while (p < 1000) do | |
p = n*i | |
i += 1 | |
s += p |
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
// ==UserScript== | |
// @name escape_to_close_window | |
// @namespace Users | |
// @include http://www.quickmandarin.com/chinesepinyintable/ | |
// ==/UserScript== | |
// Any key you press will close the modal for pronounciation | |
function closeModal() { | |
unsafeWindow.hideShutter() |
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
#!/bin/bash | |
set -e | |
env=$1 | |
user=somebody | |
case $env in | |
# with help from http://serverfault.com/questions/70482/how-can-i-remotely-log-on-to-a-machine-execute-a-script-which-sets-up-an-environ | |
machine01) | |
dir=/opt/tomcat/servers/env-a-1/webapps/foo/ |
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
#!/bin/bash | |
# Modified by: jwolter/paul: this is based on teh file located at http://www.yolinux.com/TUTORIALS/src/svndiffwrapper.txt | |
# modified to only work with beyond compare | |
# Return an errorcode of 0 on successful merge, 1 if unresolved conflicts | |
# remain in the result. Any other errorcode will be treated as fatal. | |
# Author: Michael Bradley | |
#NOTE: all output must be redirected to stderr with "1>&2" as all stdout output is written to the output file |
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
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'find' | |
# FOR THE RECORD: I strongly dislike branch based development | |
# FOR THE RECORD: I strongly dislike branch based development | |
# FOR THE RECORD: I strongly dislike branch based development | |
# FOR THE RECORD: I prefer trunk based development, and branch by abstraction |
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
#!/usr/bin/env ruby | |
require 'pp' | |
require 'set' | |
require 'test/unit' | |
$heights = %w(T S) | |
$colors = %w(D F) | |
$looks = %w(H U) | |
$people = %w(Adam Bond Cruz Dumbo) |
NewerOlder