Skip to content

Instantly share code, notes, and snippets.

View thafnhlong's full-sized avatar

Nguyen Thanh Long thafnhlong

  • HCMUS
  • HCMC
View GitHub Profile
@thafnhlong
thafnhlong / pre-commit
Created November 28, 2025 03:13
SPOTLESS HOOK for gradle
#!/bin/sh
##### SPOTLESS HOOK START #####
SPOTLESS_EXECUTOR=./gradlew
if ! $SPOTLESS_EXECUTOR spotlessCheck ; then
echo 1>&2 "spotless found problems, running spotlessApply; commit the result and re-push"
$SPOTLESS_EXECUTOR spotlessApply
exit 1
fi
##### SPOTLESS HOOK END #####
@thafnhlong
thafnhlong / source.ipynb
Created December 3, 2021 03:17
Share secret data - Shamir - Thien & Lin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.