Skip to content

Instantly share code, notes, and snippets.

View Nancy-Chauhan's full-sized avatar
☀️
learning

Nancy Chauhan Nancy-Chauhan

☀️
learning
View GitHub Profile
@Nancy-Chauhan
Nancy-Chauhan / CracklePop.py
Created June 15, 2021 12:20 — forked from Priya997/CracklePop.py
Write a program that prints out the numbers 1 to 100 (inclusive). If the number is divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop. You can use any language.
for i in range(1,101):
if i%3==0 and i%5==0:
print("CracklePop")
elif i%3==0:
print("Crackle")
elif i%5==0:
print("Pop")
else:
print(i)
@Nancy-Chauhan
Nancy-Chauhan / Jenkinsfile
Created October 22, 2019 10:27 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine