Skip to content

Instantly share code, notes, and snippets.

View rootex-'s full-sized avatar
:octocat:

Alex Dunayevsky rootex-

:octocat:
View GitHub Profile
@rootex-
rootex- / 0_reuse_code.js
Last active August 29, 2015 14:18
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
import slick.driver.H2Driver.api._
case class Holiday(id: Int, employeeId: Int, holDate: java.sql.Date, holDayType: String, holType: String)
class Holidays(tag: Tag)
extends Table[Holiday](tag, "HOLIDAYS") {
def id = column[Int]("HOL_ID", O.PrimaryKey)
def employeeId = column[Int]("EMP_ID")
def holDate = column[java.sql.Date]("HOL_DATE")
def holDayType = column[String]("HOL_DAY_TYPE")
import slick.driver.H2Driver.api._
case class Holiday(id: Int, employeeId: Int, holDate: java.sql.Date, holDayType: String, holType: String)
class Holidays(tag: Tag)
extends Table[Holiday](tag, "HOLIDAYS") {
def id = column[Int]("HOL_ID", O.PrimaryKey)
def employeeId = column[Int]("EMP_ID")
def holDate = column[java.sql.Date]("HOL_DATE")
def holDayType = column[String]("HOL_DAY_TYPE")
brew update
brew cask install java
@rootex-
rootex- / .zshrc
Created April 30, 2018 15:29
Universal Archive Extract / Pack / Compress Tool for your Zsh and Bash Shells
#
# Universal Archive Extract / Pack / Compress Tool for your Zsh and Bash Shells
# Include this into your ~/.zshrc or ~/.bashrc
#
# Extract an archive
# example: extract file
extract () {
if [ -f $1 ] ; then
case $1 in