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 | |
login=$1 | |
password=$2 | |
repository=$3 | |
command=curl | |
#command=echo | |
#Create a private repository in github | |
#Assign all usersname in githubusers.txt file to this repository. |
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 | |
for num in $(seq 1 1 10) ; do echo foobar ; done ; | |
echo "baz, qix, what else ?" |
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 foo.bar; | |
import com.mycila.xmltool.XMLDoc; | |
import com.mycila.xmltool.XMLTag; | |
public class PoiBuilder { | |
public Poi buildFromXml(String xml) { | |
XMLTag xmlTag = XMLDoc.from(xml, true); | |
return new Poi(xmlTag.getText("//xml/address/way"), xmlTag.getText("//xml/address/town")); |
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
perl -p -i -e 's/relativePath>../relativePath>..\/../g' `find ./ -name pom.xml` |
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 | |
#Need MacOSX Lion with French voices... | |
say -v Sebastien "On bosse à la ferme !" | |
say -v Virginie "Quelle ferme ?" | |
say -v Sebastien "La ferm ta gueule !" | |
say -v Hysterical "AH AH" |
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 | |
function checkError { | |
if [ "$?" -ne "0" ]; then | |
echo "" | |
echo "ECHEC dans $1" | |
echo "" | |
exit 1 | |
fi | |
} |
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 net.codestory; | |
import java.io.PrintStream; | |
import java.util.Map; | |
import com.google.common.collect.ImmutableSortedMap; | |
public class FooBarQix { | |
private Map<Character, String> keywords = ImmutableSortedMap.of('3', "Foo", '5', "Bar", | |
'7', "Qix"); |
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 org.junit.Test; | |
import java.util.ArrayList; | |
import java.util.List; | |
import static com.google.common.collect.FluentIterable.from; | |
import static java.util.Arrays.asList; | |
import static java.util.streams.Streams.stream; | |
import static org.fest.assertions.Assertions.assertThat; |
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.math.BigDecimal; | |
import static DoubleMath.Operation.ADD; | |
import static DoubleMath.Operation.DIVIDE; | |
import static DoubleMath.Operation.MULTIPLY; | |
import static DoubleMath.Operation.SUBSTRACT; | |
import static java.math.RoundingMode.HALF_EVEN; |
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
fs = require 'fs' | |
json = fs.readFileSync 'data.json.1','UTF-8' | |
data = JSON.parse json | |
data.sort (a,b) -> | |
b.perf - a.perf | |
for user in data when user.perf >= 1000 | |
console.log "* ![](#{user.gravatar})#{user.name} #{user.perf}" |
OlderNewer