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
npm_bin:=$(shell npm bin) | |
psc=$(npm_bin)/psc | |
bower=$(npm_bin)/bower | |
outdir=target | |
all: $(outdir)/js/HelloWorld.js | |
$(outdir)/js/HelloWorld.js: src/HelloWorld.purs |
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
LoggingEvent loggedEvent = null; | |
private Logger capturingLogger() { | |
return new Logger("testing") { | |
{ | |
level = Level.ALL; | |
repository = mock(LoggerRepository.class); | |
when(repository.isDisabled(anyInt())).thenReturn(false); | |
} |
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
public interface Prickable { | |
void prick(); | |
boolean isBleeding(); | |
} | |
public interface Ticklable { | |
void tickle(); | |
boolean isLaughing(); | |
} |
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 -e | |
version=`git describe --tags --match 'v*' --always --dirty=-monkeypatched | cut -c 2-` | |
sbt -Dversion=$version "$@" |
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 -e | |
for f in `find . -name '*.class'` | |
do | |
echo $f `basename $f .class|grep -Eo '[[:lower:]][eo]r([^[:lower:]]|$)'|wc -l` | |
done | sort -rnk 2 |
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 | |
for f in $(find /sys/class/gpio/ -name 'gpio[0-9]*') | |
do | |
echo $(basename $f | cut -c 5-) | tee /sys/class/gpio/unexport | |
done |
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 string | |
import os | |
from filecmp import cmp as file_contents_equal | |
def _extension(template_file, format): | |
if format is not None: | |
return "." + format | |
elif template_file is not None: | |
return os.path.splitext(template_file)[1] |
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 -e | |
if [ ! -f ~/.bintray-login ] | |
then | |
echo save your bintray.com <userid>:<api-key> in ~/.bintray-login | |
exit 1 | |
fi | |
groupid=${1:?group-id} |
NewerOlder