Git: Change DiffMerge Font-Size on Mac OSX
open -e ~/Library/Preferences/SourceGear\ DiffMerge\ Preferences
Append this to it
[File]
Font=22:76:consolas
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
# Command to open the webbrowser and immediately start searching | |
# for the right keyword. | |
# | |
# Usage: | |
# $ google test query | |
# $ => Opens the browser on http://www.google.com/search?q=test+query | |
# | |
google() | |
{ |
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
//root build.gradle | |
ext { | |
javaVersion = JavaVersion.VERSION_1_7 | |
} | |
Project.metaClass.prop { name -> | |
delegate.with { | |
ext.properties.containsKey( name ) ? | |
ext.properties[ name ] : parent?.prop( 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
DSLContext database = Mockito.mock(DSLContext.class, Mockito.RETURNS_DEEP_STUBS); | |
Mockito.when(database.select(ACTIVITY_TYPE.ID) | |
.from(ACTIVITY_TYPE) | |
.where(ACTIVITY_TYPE.SINGLE_PERSON_USABLE.isTrue()) | |
.fetch(ACTIVITY_TYPE.ID)) | |
.thenReturn(ImmutableList.of(singleActivityTypeId)); | |
Mockito.when(database.select(ACTIVITY_TYPE.ID) | |
.from(ACTIVITY_TYPE) |
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
tell application "System Events" | |
--set visible of every process whose visible is true and name is not in {"Finder", name of current application} to false | |
set visible of every process whose visible is true and name is not "Finder" and frontmost is false to false | |
end tell |
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
// http://stackoverflow.com/questions/8098564/is-it-possible-to-specify-java-system-properties-when-running-groovy-from-comman | |
/* | |
System properties are set on the java command line using the | |
java -Dpropertyname=value | |
syntax. | |
They can also be added at runtime using | |
System.setProperty(name, value) | |
or via the various | |
System.getProperties().load() | |
methods. |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="equals (Guava)" enabled="true" name="equals">${:import(com.google.common.base.Objects)} | |
@Override | |
public boolean equals(final Object obj) { | |
if (this == obj) { | |
return true; | |
} | |
if (obj == null) { | |
return false; | |
} | |
if (getClass() != obj.getClass()) { |
NewerOlder