This file contains hidden or 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
ext { | |
__anyFailed = false; | |
__failedTasks = []; | |
__failures = []; | |
__allowFail = []; | |
} | |
gradle.taskGraph.afterTask { Task task, TaskState state -> | |
if (project.ext.__allowFail.contains(task.name)) { | |
if (task.state.failure != null) { |
This file contains hidden or 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
.\gradlew --no-daemon -Dorg.gradle.debug=true |
This file contains hidden or 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
declare var p4vjs: any; | |
(async () => { | |
const workspace = await p4vjs.getClient(); | |
let workspaceRoot = ''; | |
const workspaceP = document.getElementById('workspace'); | |
if (workspaceP) { | |
workspaceP.innerText = workspace; | |
} | |
const info = await p4vjs.p4([ |
This file contains hidden or 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
// Create | |
const outputChannel = vscode.window.createOutputChannel(context.extension.id.replace('sandipchitale.', '')); | |
// Use | |
outputChannel?.appendLine('-'); |
This file contains hidden or 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
vscode.window.withProgress({ | |
location: vscode.ProgressLocation.Notification, | |
title: `Progress message` | |
}, (progress, token) => { | |
return new Promise((resolve, reject) => { | |
}); | |
}) |
This file contains hidden or 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
REM Show Open With Dialog for file | |
rundll32.exe shell32,OpenAs_RunDLL %* |
This file contains hidden or 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 javax.swing.plaf.basic.BasicLookAndFeel | |
import java.awt.event.* | |
import javax.swing.* | |
import javax.swing.tree.* | |
import java.util.concurrent.CountDownLatch | |
def addChild(DefaultMutableTreeNode p, String name, def value, int depth = 0) { | |
if (depth < 4) { | |
DefaultMutableTreeNode c = new DefaultMutableTreeNode("${name}: ${value}"); | |
p.add(c) |
This file contains hidden or 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
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 | |
Administrator cmd: | |
taskkill /f /im explorer.exe | |
start explorer.exe |
This file contains hidden or 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
<div class="center"></div> | |
<div class="center"></div> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
display: grid; | |
grid-template-columns: auto; |
This file contains hidden or 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
task generateHttpProxy() { | |
doFirst { | |
println "Paste the above sysprops to your gradle.properties in your project or ${project.gradle.gradleUserHomeDir}${File.separator}gradle.properties" | |
} | |
} | |
defaultTasks 'generateHttpProxy' |