Updated: 20240917
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
### Tutorial oficial: | |
https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
### Passo 1 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
### Passo 2 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
### Passo 3 |
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 org.json.*; | |
import java.io.*; | |
public class main { | |
public static JSONObject obj; | |
public static void main(String args[]){ | |
try { | |
obj = new JSONObject( fileToString("src/main/resources/questions.json") ); | |
JSONArray questionsArray = obj.getJSONArray("question"); |
It sometimes happen you need change code on a machine from which you cannot push to the repo.
You’re ready to copy/paste what diff
outputs to your local working copy.
You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:
1. Generate the patch:
git diff > some-changes.patch
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
### env.cmd: | |
set ROOT=%~dp0% | |
set JAVA_HOME=%ROOT%bin\jdk1.8.0_66 | |
set GRADLE_HOME=%ROOT%bin\gradle | |
set GRADLE_USER_HOME=%ROOT%gradle_repository | |
set M2_HOME=%ROOT%bin\maven | |
set MAVEN_HOME=%ROOT%bin\maven | |
set M2_REPO=%ROOT%maven_repository | |
set MAVEN_REPO=%ROOT%maven_repository |
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
@echo off | |
cd %~dp0 | |
call environment.bat | |
start %ECLIPSE_HOME%\eclipse.exe -data %ECLIPSE_WORKSPACE% | |
exit |