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 main | |
| import ( | |
| "fmt" | |
| "os" | |
| "github.com/spf13/cobra" | |
| ) | |
| var RootCmd = &cobra.Command{ |
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
| # comment | |
| QUOTES="asd" | |
| INNER_QUOTES="{"asd": 123}" | |
| WHITESPACE= ws | |
| WHITESPACE_QUOTES= " ws " | |
| PLAIN=qwe | |
| EMPTY= | |
| # empty lines |
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
| This file is in the gist repository. |
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-alpine | |
| RUN pip install robotframework | |
| ENTRYPOINT [""] |
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
| // Example of declarative pipeline | |
| pipeline { | |
| agent any | |
| triggers { | |
| pollSCM 'H/5 * * * *' | |
| } | |
| stages { | |
| stage("Build") { | |
| steps { | |
| echo "Build" |
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-alpine | |
| RUN pip install robotframework | |
| ENTRYPOINT [""] |
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
| #!/usr/bin/env python3 | |
| from luma.led_matrix.device import max7219 | |
| from luma.core.interface.serial import spi, noop | |
| from luma.core.render import canvas | |
| from luma.core.virtual import viewport | |
| from luma.core.legacy import text, show_message | |
| from luma.core.legacy.font import proportional, CP437_FONT | |
| from datetime import datetime |
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 pigpio | |
| from math import pi, sin | |
| from time import sleep | |
| class RGBLed(object): | |
| def __init__(self, r_pin=22, g_pin=23, b_pin=24): | |
| self.__pins = (r_pin, g_pin, b_pin) | |
| self.__pi = pigpio.pi() | |
| def __call__(self, r, g, b): |
NewerOlder