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
<scheme name="Gray" version="142" parent_scheme="Default"> | |
<metaInfo> | |
<property name="created">2021-02-15T17:20:10</property> | |
<property name="ide">idea</property> | |
<property name="ideVersion">2020.3.1.0.0</property> | |
<property name="modified">2021-02-15T17:20:16</property> | |
<property name="originalScheme">_@user_Gray</property> | |
</metaInfo> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="89de73" /> |
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
xmodmap -e "keycode 94 = Shift_L" |
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
logging.level.root=info | |
##------------------------------------------------------ | |
## Datasource Config | |
##------------------------------------------------------ | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
spring.jpa.properties.hibernate.id.new_generator_mappings=false | |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect | |
spring.datasource.hikari.initializationFailTimeout=15000 | |
spring.jpa.database-platform=org | |
spring.datasource.url=jdbc:postgresql://localhost:5432/demo-service?useUnicode=true&characterEncoding=UTF-8 |
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
zenity --error --text='Stop doing that!' |
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
stage { | |
font-size: 10.5pt; | |
font-weight: 400; | |
color: rgba(0,0,0,0.75); | |
} | |
/* add an activity icon on top of the left corner. something like apple icon, ubuntu icon, etc. */ | |
#panel #panelActivities.panel-button > * { | |
background-image: url("assets/activities.svg"); | |
background-position: center top; |
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
// break a string into multiple substrings with RegEx | |
Stream<String> streamOfString = Pattern.compile(", ").splitAsStream("a, b, c"); | |
//creating stream of strings from array | |
String[] arr = {"a", "b", "c"}; | |
Stream<String> streamOfArray = Arrays.stream(arr); | |
// every line of text becomes an element of stream | |
Path path = Paths.get("C:\\file.txt"); | |
Stream<String> streamOfStrings = Files.lines(path); |
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
StyledDocument sd = (StyledDocument) jTextPane.getDocument(); //get the styled document | |
SimpleAttributeSet boldBlue = new SimpleAttributeSet(); //a bold, blue color, with font attribute creation | |
StyleConstants.setBold(boldBlue, true); //set it bold | |
StyleConstants.setForeground(boldBlue, Color.blue); //set the attribute color | |
jTextPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); //RTL support | |
StyleConstants.setFontFamily(boldBlue, "Mikhak Light"); //custom font | |
String text = jTextPane.getSelectedText(); //get selected text in the Editor | |
try { | |
jTextPane1.replaceSelection(""); | |
sd.insertString(jTextPane.getCaretPosition(), text, boldBlue); |
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
//restrict the user to only input numeric format in the account field | |
accountID.addKeyListener(new KeyAdapter() { | |
@Override | |
public void keyTyped(KeyEvent e) { | |
super.keyTyped(e); | |
char c = e.getKeyChar(); | |
String regex = "[0-9]*"; | |
Pattern pattern = Pattern.compile(regex); | |
Matcher matcher = pattern.matcher(String.valueOf(c)); | |
if(!matcher.matches()){ |
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
int minutes = insertedValue; //init value | |
Timer timer = new Timer(); | |
timer.scheduleAtFixedRate(new TimerTask() { | |
int seconds = minutes * 60; | |
String secString, minString; //two strings for printing | |
int ss = 0; //formatted second | |
int mm = minutes; //formatted minute | |
public void run(){ | |
if(ss < 10) | |
secString = "0" + ss; //[0s] format: 01, 02, ... 09 |
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
@font-face{ | |
font-family: Table; | |
src: url(gamelogger/fonts/Ubuntu-R.ttf); | |
} | |
#recentTable{ | |
-fx-font-family: Ubuntu; | |
} |
NewerOlder