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
setlocal | |
set "psCommand="(new-object -COM 'Shell.Application')^.BrowseForFolder(0,'Please choose a folder.',0,0).self.path"" | |
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I" | |
endlocal |
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
setlocal | |
for /f "delims=" %%I in ('powershell -noprofile "iex (${%~f0} | out-string)"') do ( | |
echo You chose %%~I | |
) | |
goto :EOF | |
: end Batch portion / begin PowerShell hybrid chimera #> | |
Add-Type -AssemblyName System.Windows.Forms |
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 | |
:Initialisation | |
title Lenovo Fn and Function Keys Indicators | |
:Administrator_Permission | |
REM Complying with Administrator Permissions | |
:Check | |
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
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 | |
:Initialisation | |
REM YOUR INITIALISATION CODE HERE | |
:Administrator_Permission | |
REM Complying with Administrator Permissions | |
:Check | |
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
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
section .data | |
input db "abc", 0 | |
output db 0 | |
section .text | |
global _start | |
_start: | |
; Find the length of the string | |
mov rsi, input ; rsi points to the string |
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
public class Cat { | |
private String name; | |
private int age; | |
private String color; | |
public Cat(String name, int age, String color) { | |
this.name = name; | |
this.age = age; | |
this.color = color; | |
} |
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 zoo; | |
public abstract class Animal { | |
protected String name; | |
public Animal(String name) { | |
this.name = name; | |
} | |
public abstract void makeSound(); |
OlderNewer