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 | |
while [ true ] | |
do | |
if [ $(curl -XGET "http://store.apple.com/de" | grep "We'll be back soon" | wc -l) -eq 0 ] | |
then | |
say -v Alex 'The Apple Store is back online!' | |
growlnotify -m 'The Apple Store is back online!' -t 'Apple Store' | |
fi | |
sleep 120 |
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
private final Similarity similarity = new DefaultSimilarity() | |
{ | |
private static final long serialVersionUID = 1L; | |
@Override | |
public byte encodeNormValue(final float f) | |
{ | |
return SmallFloat.floatToByte52(f); | |
} |
NewerOlder