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
@echo off | |
Set delayed=%1 | |
If "%delayed%"=="" ( | |
Set delayed=false | |
) | |
If %delayed%==true ( | |
SetLocal EnableDelayedExpansion | |
) | |
echo "==============================" |
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
Set IsSystemUser=0 | |
If "%USERNAME%" == "SYSTEM" Set IsSystemUser=1 | |
If "%COMPUTERNAME%$" == "%USERNAME%" Set IsSystemUser=1 | |
If %IsSystemUser% EQU 1 ( | |
echo "running as system user %USERNAME%"; | |
If NOT %PROCESSOR_ARCHITECTURE% == x86 ( | |
echo "64bit system, looking for WOW64" | |
IF EXIST %SYSTEMROOT%\SysWOW64\config\systemprofile\AppData\Local\NUL ( | |
Set LOCALAPPDATA="%SYSTEMROOT%\SysWOW64\config\systemprofile\AppData\Local" | |
) 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
/// <summary>simple Value Object</summary> | |
public class MyDataObject | |
{ | |
public string Name { get; set; } | |
} |
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
mkdir svn | |
mkdir git | |
svnadmin create --pre-1.4-compatible svn | |
svn checkout file:///%CD:\=/%/svn svninit | |
cd svninit | |
mkdir trunk branches tags | |
svn add trunk branches tags | |
svn commit -m "init" | |
cd .. | |
svn checkout file:///%CD:\=/%/svn/trunk svnco |
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
using System; | |
using System.Collections.Generic; | |
public class BaseClass | |
{ | |
} | |
public class DerivedClassA : BaseClass | |
{ |
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
TYPO3: | |
Flow: | |
persistence: | |
backendOptions: | |
driver: 'pdo_sqlite' | |
path: '/tmp/example.sqlite' | |
user: 'exuser' | |
password: 'expass' | |
#core: | |
#phpBinaryPathAndFilename: '/usr/local/zend/bin/php-cli' |
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
test("reposition arrow test", function () { | |
var tooltip = $('<a href="#" rel="tooltip" title="Simple tooltip" style="display: inline-block; position: absolute; top: 0; left: 100px;"></a>') | |
.appendTo('#qunit-fixture') | |
.tooltip({ | |
placement: 'bottom' | |
}) | |
.tooltip('show') | |
equal($('.tooltip').children('.tooltip-arrow').length, 1, '.tooltip-arrow is present') | |
equal($('.tooltip').children('.tooltip-arrow').position().left, '50%', '.tooltip-arrow positioned in the middle') |
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
tasks.withType(JavaCompile) { | |
doFirst { | |
if (!JavaVersion.current().java8Compatible) { | |
throw new IllegalStateException("Must be built with Java 8 or higher") | |
} | |
} | |
// typical compileJava options | |
options.encoding = 'UTF-8' | |
} |
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
sourceCompatibility = JavaVersion.VERSION_1_8 | |
// !! HAVE TO BE SET AFTER project.sourceCompatibility | |
idea { | |
project { | |
// explicit set to sourceCompatibility since default is JVM level that runs gradle | |
jdkName = project.sourceCompatibility | |
outputFile = new File('.idea/modules.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
sourceSets { | |
mock { | |
java.srcDir 'src/mock/java' | |
output.classesDir sourceSets.main.output.classesDir | |
resources.srcDir 'src/mock/resources' | |
output.resourcesDir sourceSets.main.output.resourcesDir | |
} | |
} | |
compileJava.dependsOn compileMockJava | |
processResources.dependsOn processMockResources |
OlderNewer