Skip to content

Instantly share code, notes, and snippets.

View GreyTeardrop's full-sized avatar

Mykola Rybak GreyTeardrop

View GitHub Profile
@GreyTeardrop
GreyTeardrop / 0_reuse_code.js
Created October 7, 2013 23:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
public void showNoties() { //todo empty massages WTF?
try {
if (null == allNoties) {
throw new ValidationException("Ops! List is NULL");
}
if (allNoties.isEmpty()) {
throw new ValidationException("There are no noties");
}
import javax.swing.table.AbstractTableModel;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
public class CitatumTableModel extends AbstractTableModel {
private WindowFrame windowFrame;
private List<CitatumInfo> citatumInfos;