Skip to content

Instantly share code, notes, and snippets.

View tacksoo's full-sized avatar

Tacksoo Im tacksoo

  • Georgia Gwinnett College
  • Lawrenceville, GA
View GitHub Profile
@tacksoo
tacksoo / ComboBoxWindow.java
Created April 2, 2012 12:41
ComboBoxWindow
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
This class demonstrates a combo box.
*/
public class ComboBoxWindow extends JFrame
{
@tacksoo
tacksoo / MultipleIntervalSelection.java
Created April 2, 2012 05:43
MultipleIntervalSelection
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
This class demonstrates the List Component in
multiple interval selection mode.
*/
public class MultipleIntervalSelection extends JFrame
@tacksoo
tacksoo / ChatClient.java
Created February 7, 2013 20:32
Simple chat server/client example
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;
public class ChatClient implements Runnable {
// why is the ChatClient Multi-threaded?
@tacksoo
tacksoo / 0-self-publishing.md
Created February 4, 2021 16:45 — forked from caseywatts/0-self-publishing.md
Self-Publishing via Markdown
@tacksoo
tacksoo / BankAccount.java
Created February 7, 2013 06:20
Big Java example of using the ReentrantLock
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
A bank account has a balance that can be changed by
deposits and withdrawals.
*/
public class BankAccount
{
@tacksoo
tacksoo / emacs.markdown
Created November 19, 2019 21:30 — forked from rochacbruno/emacs.markdown
Emacs and Screen commom keys

emacs

basic

C-g = abort command
C-x C-c = Exit
C-_ | C-x u = Undo
C-z = iconify / %emacs to get back
C-x C-z = suspend, back qith "fg"
M-x shell = bash
ESC-! = shell command

@tacksoo
tacksoo / readme.txt
Last active September 6, 2018 17:23
Sample Text file
ferrari california,2019,1000000,FALSE
toyota sienna,2019,50000,FALSE
@tacksoo
tacksoo / 0_reuse_code.js
Created October 17, 2013 05:48
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
@tacksoo
tacksoo / Core.java
Created April 9, 2013 13:47
Print out the number of cores
public class Core {
public static void main(String[] args) {
int coreNum = Runtime.getRuntime().availableProcessors();
System.out.println("Number of cores are: " + coreNum);
long maxMemory = Runtime.getRuntime().maxMemory();
System.out.println("MAX size of the heap (MB): " + maxMemory / 1048576);
long freeMemory = Runtime.getRuntime().freeMemory();
@tacksoo
tacksoo / gist:5002643
Last active December 14, 2015 00:59
Data to be used for analysis.
Mr Robert Aaron
Part-time Librarian
faculty-and-staff/robert-aaron
Ms Zaynab Abdul-Razacq
Library Assistant I
faculty-and-staff/zaynab-abdul-razacq
Dr Donna Abrams
Assistant Professor