Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: IDL Description: IDL Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: JavaFX Description: JavaFX Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: C++ Description: C/C++ Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: C# Description: C# Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: Perl Description: Perl Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: AspectJ Description: AspectJ (syntax highlighting only) Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: Haskell Description: Haskell Class: com.intellij.openapi.fileTypes.impl.AbstractFileType Name: PHP Description: PHP (syntax highlighting only) Class: com.intellij.ide.highlighter.ArchiveFileType Name: ARCHIVE Description: Archive Class: com.intellij.openapi.fileTypes.PlainTextFileType Name: PLAIN_TEXT Description: Text
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
# This file should be in ~/.gradle/gradle.properties | |
# | |
# In build.gradle.kt | |
# tasks { | |
# ... | |
# runIde { | |
# if (project.hasProperty("runIde_ideDir")) { | |
# ideDir = file("${project.extra["runIde_ideDir"]}") | |
# } | |
# } |
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
runIde_ideDir=/home/sandipchitale/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate |
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
private void searchActionMap(String text, JTextArea textArea) { | |
if (text.isEmpty()) { | |
textArea.setCaretPosition(0); | |
} else { | |
int index = textArea.getText().toLowerCase().indexOf(text.toLowerCase(), textArea.getCaretPosition()); | |
if (index == -1) { | |
// Try to wrap | |
index = textArea.getText().toLowerCase().indexOf(text.toLowerCase()); | |
if (index == -1) { |
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 java.awt.event.KeyEvent; | |
import java.util.*; | |
public class KeyEventCombinationTable { | |
public static void main(String[] args) { | |
// Get all VK_ fields | |
List<String> vkFields = new ArrayList<>(); | |
// List<String> asciiChars = new ArrayList<>(); | |
// Collect VK_ fields |
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.springframework.data.jpa.repository.Query; | |
import org.springframework.data.repository.CrudRepository; | |
import java.util.Optional; | |
public interface NamesToDiff1Repository extends CrudRepository<NamesToDiff1, Long> { | |
@Query(value = "SELECT ctid FROM names", nativeQuery = true) | |
Iterable<Object> findAllRowIds(); | |
@Query(value = "SELECT * FROM names WHERE ctid = ?::tid", nativeQuery = 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
Sample url to load config: | |
https://start.spring.io/#!type=gradle-project&language=java&bootVersion=3.3.4&baseDir=demo&groupId=com.example&artifactId=demo&name=BABA&description=BUI%20project%20for%20Spring%20Boot&packageName=com.example.demo&packaging=jar&javaVersion=17&dependencies=web | |
https://start.spring.io/#!type=gradle-project | |
language=java | |
bootVersion=3.3.4 | |
baseDir=demo |
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
> netstat -anpt46 | |
(Not all processes could be identified, non-owned process info | |
will not be shown, you would have to be root to see it all.) | |
Active Internet connections (servers and established) | |
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
tcp 0 0 127.0.0.1:3200 0.0.0.0:* LISTEN 7430/java | |
tcp 0 0 127.0.0.1:52829 0.0.0.0:* LISTEN 2213/./jetbrains-to | |
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:27500 0.0.0.0:* LISTEN - |
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
public int getMaximumEatenDishCount(int N, int[] D, int K) { | |
// N must be less than D.length right? | |
if (N > D.length) { | |
throw new IllegalArgumentException("N must be less than or equal to D.length"); | |
} | |
int count = 0; | |
// LRU cache to store the last K dishes | |
Map<Integer, Integer> lastK = new LinkedHashMap<Integer, Integer>(K, 0.75f, false) { | |
@Override |
NewerOlder