Skip to content

Instantly share code, notes, and snippets.

View vsmida's full-sized avatar

Vladimir Smida vsmida

View GitHub Profile
@vsmida
vsmida / Memory.java
Created September 21, 2018 21:25 — forked from CodingFabian/Memory.java
Compressed Oops Example
public class Memory {
// Dummy Entity representing usual data objects
private static class Entity {
public String name;
public String detail;
public Double amount;
public Integer age;
}
@vsmida
vsmida / osx_install.sh
Created February 1, 2018 23:31 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@vsmida
vsmida / gradle.properties
Created April 13, 2016 15:27
Speedup gradle build
; in global gradle file
; /home/<username>/.gradle/gradle.properties (Linux)
; /Users/<username>/.gradle/gradle.properties (Mac)
; C:\Users\<username>\.gradle\gradle.properties (Windows)
; org.gradle.daemon=true
; in project folder
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
new Dataset(List(
Array("my", "dog", "has", "flea", "problems", "help", "please"),
Array("maybe", "not", "take", "him", "to", "dog", "park", "stupid"),
Array("my", "dalmation", "is", "so", "cute", "I", "love", "him"),
Array("stop", "posting", "stupid", "worthless", "garbage"),
Array("mr", "licks", "ate", "my", "steak", "how", "to", "stop", "him"),
Array("quit", "buying", "worthless", "dog", "food", "stupid")
), List(0, 1, 0, 1, 0, 1))
@vsmida
vsmida / .gitconfig
Created October 9, 2015 11:16 — forked from orj/.gitconfig
Using p4merge as Git mergetool on Mac OS X.
[merge]
keepBackup = false
tool = custom
[mergetool "custom"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$PWD/$BASE" "$PWD/$REMOTE" "$PWD/$LOCAL" "$PWD/$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false