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
repositories { mavenCentral() } | |
configurations { libs } | |
dependencies { libs 'org.hibernate:hibernate-core:4.3.5.Final' } | |
configurations.libs.dependencies.each { dependency -> | |
def myFiles = configurations.libs.files dependency | |
myFiles.each { println it } | |
} |
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.gradle.api.NamedDomainObjectContainer | |
import org.gradle.api.Plugin | |
import org.gradle.api.Project | |
import org.gradle.api.DefaultTask | |
import org.gradle.api.tasks.TaskAction | |
import liquibase.integration.commandline.Main | |
apply plugin: LiquibasePlugin | |
buildscript { |
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
function DownloadFileFrom($link) { | |
$filename = [System.IO.Path]::GetFileName($link) | |
$wc = New-Object System.Net.WebClient | |
$wc.DownloadFile($link, $filename) | |
} |
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
# inspired from this article: | |
# http://windowsitpro.com/powershell/easily-finding-special-paths-powershell-scripts | |
$folders = [Environment+SpecialFolder]::GetNames([Environment+SpecialFolder]) | |
foreach ($folder in $folders) { | |
$location = [Environment]::GetFolderPath($folder) | |
$specialFoldersTable = New-Object PSObject | |
$specialFoldersTable | Add-Member FolderName $folder |
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
param ( | |
[string] $MSBUILD = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe", | |
[string] $GIT = "C:\Program Files (x86)\Git\bin\git.exe" | |
) | |
$nugetCachesDirectory = "$env:LOCALAPPDATA\NuGet\Cache" | |
$buildDirectory = "bin" | |
$solutionFile = "GildedRoseKata.sln" | |
$configuration = "Release" | |
$platform = "Any CPU" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#include "Ifx.h" | |
#define TITLE "RegDBSetKeyValueEx & RegDBGetKeyValueEx" | |
export prototype MyFunction(HWND); | |
function MyFunction(hMSI) | |
STRING szKey, szNumName, szNumValue, svNumValue, szTitle, szMsg; | |
NUMBER nType, nSize, nvType, nvSize; | |
begin | |
szKey = "SOFTWARE\\Wow6432Node\\Company Ltd.\\COMPANY\\20144"; |
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 io.igorpopov; | |
import javax.swing.*; | |
import java.awt.event.*; | |
public class ClickCountingApp { | |
public static void main(String args[]) { | |
JButton button = new JButton("Button never pressed..."); | |
button.addActionListener(new ButtonListener()); |
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
function Main() { | |
RetryCommand ` | |
-maxRetries 5 ` | |
-delayInSeconds 0 ` | |
-command { cmd /c $SIGNTOOL sign /v /debug /sm /t $TIMESTAMP_URL $files } | |
RetryCommand ` | |
-maxRetries 5 ` | |
-delayInSeconds 3 ` | |
-command { . $INSTALLSHIELD $arguments } |
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
function ShortenPath($longPath) { | |
$id = ([guid]::NewGuid() -split '-')[0] | |
$shortPath = "C:\temp\$id" | |
cmd /c mklink /D /J $shortPath $longPath | Out-Null | |
return $shortPath | |
} |
OlderNewer