This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| RUN pip install flask kubernetes redis | |
| # Copy files | |
| COPY watcher.py /app/watcher.py | |
| COPY web.py /app/web.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/muesli/gitomatic.git | |
| https://github.com/muesli/gitomatic.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.marcis.myapplication.feature; | |
| import android.os.Bundle; | |
| import android.support.design.widget.FloatingActionButton; | |
| import android.support.design.widget.Snackbar; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.Toolbar; | |
| import android.view.View; | |
| import android.view.Menu; | |
| import android.view.MenuItem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent { | |
| label "master" | |
| } | |
| environment { | |
| CONFIGURATION_FILENAME = "presentation.yml" | |
| PRESENTATION_NAME = "devops-for-powerpoint.pptx" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| For full reference check: http://jinja.pocoo.org/docs/2.9/api/ | |
| """ | |
| import logging | |
| import json | |
| import yaml | |
| from jinja2 import Environment, FileSystemLoader, select_autoescape | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from jira import JIRA | |
| # http://jira.readthedocs.org/en/latest/#quickstart | |
| from git import Repo | |
| # http://gitpython.readthedocs.org/en/stable/tutorial.html | |
| from settings import * # Add your own settings file! | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "twopac" : { | |
| "greatest_song" : "California Love", | |
| "greatest_album" : "Me against the world", | |
| "quotes" : [{"song" : "Hit em up", | |
| "line" : "Killing ain't fair, but somebody's got to do it."}] | |
| }, | |
| "eminem" : { | |
| "greatest_song" : "Berzerk", | |
| "greatest_album" : "Infinite", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| class MyHandler(FileSystemEventHandler): | |
| def __init__(self): | |
| self.last_line_count = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pprint import pprint | |
| import pygame | |
| class GamePiece: | |
| def __init__(self): | |
| self.checked = False |
NewerOlder