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
sdqali@bihzad ~/src/work/selenium-read-only >rake selenium-java | |
/Users/sdqali/src/work/selenium-read-only/rake-tasks/checks.rb:45: warning: Insecure world writable dir /usr/local in PATH, mode 040777 | |
Compiling: //java/client/src/com/thoughtworks/selenium:api as build/java/client/src/com/thoughtworks/selenium/api.jar | |
go aborted! | |
cannot load such file -- third_party/java/eclipse_compiler/ecj-3.5.2.jar | |
Tasks: TOP => selenium-java => //java/client/src/org/openqa/selenium:client-combined:project => build/java/client/src/org/openqa/selenium/client-combined-nodeps.jar => //java/client/src/com/thoughtworks/selenium:selenium => build/java/client/src/com/thoughtworks/selenium/selenium.jar => //java/client/src/com/thoughtworks/selenium:api => build/java/client/src/com/thoughtworks/selenium/api.jar | |
(See full trace by running task with --trace) | |
sdqali@bihzad ~/src/work/selenium-read-only >ls third_party/java/eclipse_compiler | |
ecj-3.5.2.jar |
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 class InternetExplorerDriverServer { | |
// Constantly reloading the DLL causes JVM crashes. Prefer a static field this one time. | |
private static IEServer lib = initializeLib(); |
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
eval "a = 1 if false" | |
eval "puts a" |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function doSomething() { | |
alert("Foobar"); | |
// do something more useful here | |
}; | |
</script> | |
</head> |
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 | |
JENKINS_HOME=/var/lib/jenkins | |
cd $JENKINS_HOME | |
git add *.xml jobs/*/config.xml users/*/config.xml userContent/* | |
CHANGES_TO_BE_COMMITTED=$(git status | grep "^# Changes to be committed:" | wc -l) | |
if [ $CHANGES_TO_BE_COMMITTED -eq 0 ]; then | |
echo "Nothing to commit" |
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
# The following ignores... | |
# Miscellaneous Hudson litter | |
*.log | |
*.tmp | |
*.old | |
*.bak | |
*.jar | |
*.json | |
# Linux user files |
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 request = (HttpWebRequest) HttpWebRequest.Create("https://example.com/foo"); | |
request.ServicePoint.Expect100Continue = false; | |
request.Credentials = new NetworkCredential("user", "password"); | |
request.Method = "PUT"; | |
request.ContentType = "application/x-www-form-urlencoded"; | |
byte[] objByteArray = Encoding.UTF8.GetBytes("foo=bar"); | |
request.ContentLength = objByteArray.Length; | |
var dataStream = request.GetRequestStream(); | |
dataStream.Write(objByteArray, 0, objByteArray.Length); | |
dataStream.Close(); |
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
<system.net> | |
<settings> | |
<servicePointManager expect100Continue="false"/> | |
</settings> | |
</system.net> |
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 org.bar.foo; | |
import java.io.BufferedReader; | |
import java.io.DataInputStream; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.HashMap; |
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
first = [1, 2, 3] | |
second = first.map do |element| | |
element + 1 | |
end | |