Skip to content

Instantly share code, notes, and snippets.

View nihitjain11's full-sized avatar
:octocat:

Nihit Jain nihitjain11

:octocat:
View GitHub Profile
@nihitjain11
nihitjain11 / Jenkinsfile.groovy
Created June 30, 2021 11:14 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@nihitjain11
nihitjain11 / Crash Course v0.5.ipynb.json
Created March 8, 2018 14:16 — forked from rpmuller/Crash Course v0.5.ipynb.json
Crash Course in Python for Scientists
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "",
"signature": "sha256:a04c38d9604adb7eb9ca89860dfa1ef72db66037cc2c07c391ef8e67a31f9254"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [