Skip to content

Instantly share code, notes, and snippets.

View matisiekpl's full-sized avatar

Mateusz Woźniak matisiekpl

  • Akademia Górniczo-Hutnicza w Krakowie
  • Rzeszów, Poland
  • 03:39 (UTC +01:00)
View GitHub Profile
nothing
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
#include <Stepper.h> //dodajemy do szkicu bibliotekę obsługującą silniki krokowe
#
@matisiekpl
matisiekpl / Dockerfile
Last active June 10, 2023 06:28
Zoom bot docker container. Simple tool for automatic provisioning of Zoom participants (redirecting .mp4 to /dev/video0 comming soon!)
FROM consol/ubuntu-xfce-vnc
USER root
RUN apt-get update
RUN apt-get install -qy curl iceweasel sudo desktop-file-utils lib32z1 \
libx11-6 libegl1-mesa libxcb-shm0 \
libglib2.0-0 libgl1-mesa-glx libxrender1 libxcomposite1 libxslt1.1 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 libxi6 libsm6 \
libfontconfig1 libpulse0 libsqlite3-0 \
libxcb-shape0 libxcb-xfixes0 libxcb-randr0 libxcb-image0 \
libxcb-keysyms1 libxcb-xtest0 ibus ibus-gtk \
@matisiekpl
matisiekpl / main.cpp
Created April 16, 2020 07:44
C++ Algorithm Implementation Review - developed by Przemek Sosna
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
@matisiekpl
matisiekpl / main.cpp
Created March 23, 2020 13:48
IT school assignment for idiots
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <limits>
using namespace std;
int octal_to_decimal(int octal) {
int decimal_number = 0, i = 0, rem;
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-1
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-0
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 10Gi
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "SentimentDemo",
"description": "Uses the Cognitive Services Text Analytics Sentiment API to determine whether text is positive or negative"
},
"host": "westus.api.cognitive.microsoft.com",
"basePath": "/",
"schemes": [
{
"functions": [
{
"key": "math.add",
"name": "add",
"code": "out = a + b",
"dependencies": {
"@types/node": "^12.0.10"
},
"arguments": [