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/sh | |
set -eux | |
cd docker-java | |
git pull | |
mvn clean deploy | |
git push | |
rm -R ~/.m2/repository/com/alexecollins/docker-java | |
cd .. |
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
var is=document.getElementsByTagName('input');for (var i=0;i<is.length;i++){var x=is[i];if (x.type=='password') {x.type='text'}} |
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 -ue | |
BEGIN=$(date +%s) | |
BACK="\b\b\b\b" | |
($* ; touch /tmp/$$.done) & | |
OLDDIFF=0 | |
while true; do |
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
require 'csv' | |
class History | |
def initialize(name, cols, size) | |
@f=name | |
@headers=cols | |
@size=size | |
read | |
write | |
end |
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
# suitable for small files only | |
require 'csv' | |
f='a.csv' | |
headers=['x','y'] | |
csv=[] | |
if File.exists?(f) | |
CSV.foreach(f, {:headers => :first_row, :converters => [:numeric]}) do |row| |
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.io.IOException; | |
import java.io.InputStream; | |
/** | |
* @author alex.collins | |
*/ | |
public class SearchAndReplaceInputStream extends InputStream { | |
private final InputStream is; |
NewerOlder