Skip to content

Instantly share code, notes, and snippets.

View calvinalx's full-sized avatar

Calvin Alexander calvinalx

View GitHub Profile
package com.mycompany.mavenproject1;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.event.ListSelectionEvent;
import javax.swing.table.DefaultTableModel;
public class NewJFrame extends javax.swing.JFrame {
0xd39b49dDFFe833c0C26B123cf16b8F088CB9a4db
0x26136e1f86Aa285f1D180f6206256dfD3E5Bad5e
0x3887E4FD28A3ddDCFE650b1C023fB4939C609745
0x3731071fc66a3c435A66d078Da797c918025D38F
0xe0ac8142069a923fdd17189f8e1ed8562cd793c8
0xC4AC6dff8EF4296CE36B428b9045D8b85E8359E1
0xEa460389d39cdbB38Bd6d48Ce6E9Fa283F3B2E64
0x982083f8F2a15fd588685f6F0E7372c3642f3936
0xc0C71341BB99d6390aeb8E3728690Fd6d6591832
0xad0FeAcbc7aD289e0b63c50eB160cc64748A67f6
bool isNullOrEmptyString(String? value) {
return [null, ''].contains(value);
}
void main() {
dynamic value = null;
print(value == true ? false : !isNullOrEmptyString(value).replaceAll('null', ''));
}
@calvinalx
calvinalx / neko.sh
Created July 23, 2020 16:30
Install Neko
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
wget https://raw.githubusercontent.com/nurdism/neko/master/.examples/simple/docker-compose.yaml
sudo docker-compose up -d
## See the default craftbukkit.jar.conf for a detailed documentation of the
## format of this file.
[config]
name = Paper
source = https://papermc.io/api/v1/paper/1.15.2/latest/download
configSource = https://blockface.github.io/files/paper.jar.conf
category = Mods
[encoding]
#encode = system
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@calvinalx
calvinalx / httpd.conf
Created December 23, 2018 18:39
XAMPP Default
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/trunk/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/trunk/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@calvinalx
calvinalx / httpd.conf
Created December 21, 2018 10:34
AMPPS Default Apache Config
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
[1]
CREATE TABLE Pegawai (
Id_Pegawai VARCHAR2(4)
CONSTRAINT pg_id_pg PRIMARY KEY,
Nama_Pegawai VARCHAR2(50),
Alamat VARCHAR2(50),
Tgl_Lhr DATE,
Jenis_Kelamin VARCHAR2(1),
Pangkat VARCHAR2(4)
CONSTRAINT pg_ps REFERENCES Pangkat(Kd_Pangkat),
@calvinalx
calvinalx / git.md
Last active March 1, 2018 11:01
Git cheatsheet

Initialize new repo

git init
git add *
git commit -m "Initial commit"
git remote add origin https://github.com/username/repo.git
git pull --rebase origin master # Resolve conflicting branch
git push -u origin master