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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define ATOI_ARGV(a) (((a) < argc) ? atoi(argv[(a)]) : (0)) | |
| #define MIN(a,b) ((a) < (b) ? (a) : (b)) | |
| #define MAX(a,b) ((a) > (b) ? (a) : (b)) | |
| #define USAGE "Usage: \"fizzbuzz a [b=0]\", where a and b are integers defining range.\n" | |
| int main(int argc, char** argv) { | |
| for( |
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 ubuntu:bionic | |
| RUN apt-get update && apt-get install -y dpdk; | |
| ENTRYPOINT ["bash"] |
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): |
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
| 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
| 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
| # comment | |
| QUOTES="asd" | |
| INNER_QUOTES="{"asd": 123}" | |
| WHITESPACE= ws | |
| WHITESPACE_QUOTES= " ws " | |
| PLAIN=qwe | |
| EMPTY= | |
| # empty lines |
OlderNewer