View CCP2-DVOP3-p2c-stage
stage('Deploy using push2cloud') {
when { branch 'p2c' }
steps {
echo "Deploying ${env.GIT_BRANCH} branch (${env.GIT_COMMIT}) ..."
echo 'Prepare push2cloud'
sh '''
cd ${WORKSPACE}/p2c
npm install
'''
View ackermann.js
//Usage:
//node ackermann.js {n} {m}
//E.g.:
//node ackermann.js 2 1
//5
var arg1 = process.argv[2];
var arg2 = process.argv[3]
console.log(ackermann(arg1, arg2));
View ccp2-runt-lab-setup.sh
#!/bin/bash
sudo rm -f /var/lib/dpkg/lock
export LC_ALL="C"
echo
echo "Installing CF CLI..."
echo
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
View generate-docker-engine-tls.sh
#!/bin/bash
export HOST=mastermind.local
export EXTERNAL_IP=160.85.37.88
echo
echo "*** Creating CA Key - please you will neeed to enter PASSWORD ***"
echo
openssl genrsa -aes256 -out ca-key.pem 4096
View gist:adb4c51930ea2fba9a9bb47d1d81d39b
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.3.RELEASE</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion>
<groupId>commons-logging</groupId>
View abgabe.md

Damit die Abgabe der git-Repos für mich einfacher ist, habe ich ein kleines Werkzeug geschrieben. Darum bitte ich Sie, mir zur Abgabe jeweils die Repos in folgender Form (die Form heisst YAML) zu mailen: (Beispiel, sie können 1 oder mehrere Repos abgeben):

   - name: gr14
     repos: 
       - https://github.engineering.zhaw.ch/hamzavig/02_Praktikum-1_Buch.git
       - https://github.engineering.zhaw.ch/hamzavig/02_Praktikum-2_Konto.git
View .bashrc
# LATEX environment
export PATH="${PATH}:/usr/local/texlive/2016/bin/x86_64-linux"
View eval.clj
(ns DiceRoll.eval)
(defn series [& rolls]
(apply str (interpose " // " (apply concat rolls))))
(defn roll [& dice-info]
"dice-info is a sequence of functions. We can't accept values here,
because we might have to repeat the roll. So we need the functions
in order to generate another randomized result. The number of repeats
desired comes in form of :repeat keywords added to dice-info."