Skip to content

Instantly share code, notes, and snippets.

View kino3's full-sized avatar

Shuji Kinoshita kino3

View GitHub Profile
@bvis
bvis / Jenkinsfile
Last active March 31, 2025 22:37
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@TakashiHarada
TakashiHarada / AgdaBasics.agda
Last active August 29, 2015 14:22
Code of Dependently typed programming in Agda
module AgdaBasics where
data Bool : Set where
true : Bool
false : Bool
not : Bool → Bool
not true = false
not false = true
@myuon
myuon / Set-2.agda
Last active September 17, 2015 02:43
infix 4 _∈_ _∉_
data _∈_ {f} {A : Set f} (x : A) (B : Set f) : Set (suc f) where
in-eq : A ≡ B → x ∈ B
_∉_ : {B : Set} → B → Set → Set₁
X ∉ A = (X ∈ A) → ⊥
module elem-lemmas where
elem-∈ : {A B : Set} → ∀{x : B} → x ∈ A → A
elem-∈ {x = x} (in-eq ≡-refl) = x