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
nothing - do not push anything. | |
matching - push all matching branches. All branches having the same name in both ends are considered to be matching. This is the default. | |
upstream - push the current branch to its upstream branch. | |
tracking - deprecated synonym for upstream. | |
current - push the current branch to a branch of the same name. |
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
PS1="$PS1\$(parse_git_branch)$ " |
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
validator: { v -> | |
try{ | |
v = parseInt(v) | |
} catch (NumberFormatException e) { | |
field.background = Color.RED | |
field.revalidate() | |
return false | |
} | |
if (v >= 0 && v < MAX_VALUE) { | |
field.background = Color.WHITE |
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
@Override | |
public ProjectBlueprint scenario(ScenarioBlueprint... scenarioBlueprints) { | |
Collections.addAll(this.scenarios, scenarioBlueprints); | |
return this; | |
} |
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 void verifyObjectIsValid() { | |
Object object = test.getFacade().getObject(); | |
if (object.getObject() == null || object.getAnotherObject() == null) { | |
throw new IllegalStateException("Object: Invalid object: object=" + object.getAnotherObject() | |
+ ", Load Profile: " + object.getObject()); | |
} | |
} |
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
Underställ | |
- Överdel | |
- Underdel | |
Ytterplagg | |
- Skaljacka // Vindtät iallafall | |
- Täckbyxor | |
Övrigt | |
- Handskar // som inte drar till sig snö |
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
class Person { | |
String name | |
int age | |
Gender gender | |
enum Gender { | |
MALE, FEMALE, UNKNOWN | |
} | |
} | |
def persons = [new Person(name: 'Bob', age: 25, gender: Person.Gender.MALE), |
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
indexOf = function(collection, condition){ | |
if(collection && Array.isArray(collection) && condition){ | |
for(var i = 0; i < collection.length; i+=1){ | |
if(condition(collection[i])){ | |
return i; | |
} | |
} | |
} | |
return -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/bash | |
library=$1 | |
suite=$2 | |
coverage=$3 | |
if [ ! -d ui/$library ]; then | |
echo "Directory ui/$library does not exist" | |
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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
https://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<profiles> | |
<profile> | |
<id>home</id> | |
<repositories> | |
<repository> | |
<id>smartbear</id> |
OlderNewer