Skip to content

Instantly share code, notes, and snippets.

@GuillaumeDua
GuillaumeDua / 13_valuable_things_I_learned_using_CMake.md
Last active May 25, 2024 11:14
13 valuable things I learned using CMake

13 valuable things I learned using CMake

Author : Dua Guillaume
Date : 04-26-2020

Requirement : A first experience with CMake

Intro

As a modern C++ specialist, my job is to focus on software development, from a performance and quality perspective.

probably the same amount of components, just simple
Also you could display the hours and minutes on 2 different displays
;; I have used long variable names to reduce confusion,
;; daylightSensorDegrees integer (0 -> 180 and back after midnight)
;; daylightSensorVisible integer ( 0 || 1)
@adrianlzt
adrianlzt / jenkins-docker-slaves.groovy
Last active June 20, 2021 16:27 — forked from stuart-warren/jenkins-docker-slaves.groovy
Automatically configure the docker cloud in Jenkins (/var/lib/jenkins/init.groovy.d/jenkins-docker-slaves.groovy).
#!groovy
/*
* Automatically configure the docker cloud in Jenkins.
* Tested with:
* - {name: 'docker-plugin' ver: '1.1.2'}
*
* Based on: https://gist.github.com/stuart-warren/e458c8439bcddb975c96b96bec3971b6
*/
import jenkins.model.*;
@oscherler
oscherler / README.md
Last active April 6, 2023 10:03
Diff JSON in Git using gron

jsondiff: diff JSON in Git using gron

gron is an incredible tool that makes JSON greppable. But it also makes it diffable, which is great if you have JSON files in Git.

To use gron to diff JSON in Git, save the json-diff script below and make it executable. Then add a difftool as shown in gitconfig, and optionally create an alias to invoke it more easily. Then try it:

git init
echo '{"foo":42,"bar":"hello"}' > foo.json
git add foo.json && git commit -m 'Initial commit.'
@stuart-warren
stuart-warren / jenkins-docker-slaves.groovy
Last active June 20, 2021 16:26
Automatically configure the docker cloud in Jenkins (/var/lib/jenkins/init.groovy.d/jenkins-docker-slaves.groovy).
#!groovy
/*
Automatically configure the docker cloud in Jenkins.
Tested with:
- {name: 'docker-plugin', ver: '0.16.0'}
*/
import jenkins.model.*;
@legege
legege / jenkins-job-dsl.groovy
Last active September 25, 2018 16:53 — forked from stuartstevenson/jenkins-job-dsl.groovy
Jenkins Job DSL with distributed job config files on GitLab. The seed.groovy file scans GitLab for all your projects for .jenkins-ci.groovy files and runs them centrally.
mavenJob("${name}") {
goals('clean install findbugs:findbugs pmd:pmd cobertura:cobertura')
logRotator {
numToKeep(5)
artifactNumToKeep(1)
}
scm {
git {