Skip to content

Instantly share code, notes, and snippets.

View Jswizzy's full-sized avatar

Justin Smith Jswizzy

View GitHub Profile
@Jswizzy
Jswizzy / resume.md
Last active March 20, 2018 04:11
resume

Justin Nathaniel Smith

Charleston, SC | 843.864.8274 | [email protected] | https://www.linkedin.com/in/justinsmithnathaniel | https://github.com/Jswizzy

Java Developer | Automation Test Developer | Secret clearance | Test driven development | Java | Agile | Android SDK | Spring

Test Automation development and QA and internal software development for DOD. College of Charleston’s BA in Computer Science program and former Navy Nuclear Machinist Mate and Cheif Machinery Operator for a A4W nuclear Reactor Plant. Android and Kotlin developer hobbyist working on several apps for fun and to keep up with Java and JVM development. Polyglot computer language enthusiast. Knowledge of concurrent and distributed systems. Practing Continous Development and Integration on several DOD projects.

Career Highlights

@Jswizzy
Jswizzy / kotlinJDBC.md
Created February 13, 2018 01:29
Working with SQL with JDBC and Kotlin

JDBC

    val customerId = 1
    
    val conn = DriverManager.getConnection("jdbc:sqlite:~/usr/my-database.db")

    val ps = conn.prepareStatement("SELECT * FROM CUSTOMER_ORDER WHERE CUSTOMER_ID = ?")
    ps.setInt(1, customerId)
    val rs = ps.executeQuery()
@Jswizzy
Jswizzy / Memoize.kt
Created April 26, 2019 22:19
Caching results
import kotlin.reflect.KProperty
import kotlin.system.measureTimeMillis
class Memoize<T, R>(val fn: (T) -> R) {
private val cache = mutableMapOf<T, R>()
operator fun getValue(thisRef: Any?, property: KProperty<*>) =
{ arg: T -> cache.getOrPut(arg) { fn(arg) } }
}
@Jswizzy
Jswizzy / init.vim
Last active July 9, 2020 14:57 — forked from benawad/init.vim
filetype plugin indent on
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'Yggdroot/indentLine'
Plug 'airblade/vim-gitgutter'
Plug 'christoomey/vim-sort-motion'
Plug 'editorconfig/editorconfig-vim'
{
"coc.preferences.colorSupport": true,
"coc.preferences.formatOnSaveFiletypes": [
"css",
"html",
"javascript",
"javascriptreact",
"json",
"liquid",
"scss"
# -- general -------------------------------------------------------------------
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
bind C-a send-prefix -2
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
TERM: xterm-256color
# Background opacity
# Path to your oh-my-zsh installation.
export ZSH="/home/justinsmith/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
@Jswizzy
Jswizzy / InstallingSwift.md
Last active October 28, 2024 20:04
Swift Install Instruction 20.04

Installing Swift on Ubuntu 20.04

1. Install Depencies

“clang”[ˈklæŋ] is the compiler based on LLVM for C, C++, Objective-C, and Objective-C++. clang is needed to install in order to Swift. Run the following code in Ubuntu terminal.

Before installing swift “libpython2.7” and “libpython2.7-dev” are needed to get Swift running. Run the following code.