Skip to content

Instantly share code, notes, and snippets.

View matteoredaelli's full-sized avatar

Matteo Redaelli matteoredaelli

View GitHub Profile
@matteoredaelli
matteoredaelli / fen.pl
Created May 4, 2024 19:38
Prolog parser for Chess FEN notification
black_piece('k', king).
black_piece('q', queen).
black_piece('r', rook).
black_piece('b', bishop).
black_piece('n', knight).
black_piece('p', pawn).
white_piece('K', king).
white_piece('Q', queen).
white_piece('R', rook).
@matteoredaelli
matteoredaelli / pipeline
Last active February 16, 2018 10:01
Jenkins pipeline for OBIEE deployments
pipeline {
agent any
stages {
stage('Export repository from Dev') {
steps {
node('ambra.redaelli.org') {
sh '/bin/hostname'
sh './export_repository.sh'
}
<html>
<head>
<style type="text/css">
.knitr.inline {
background-color: #f7f7f7;
border:solid 1px #B0B0B0;
}
.error {
font-weight: bold;
color: #FF0000;
library(shiny)
# Define server logic for random distribution application
shinyServer(function(input, output) {
# Reactive function to generate the requested distribution. This is
# called whenever the inputs change. The output functions defined
# below then all use the value computed from this function
data <- reactive(function() {
dist <- switch(input$dist,