Step 0: install ffmpeg
# hh - hours, mm - minutes, ss - seconds, ff - frames| // ######################################### Загружаем нужные библиотеки ######################################## | |
| #include <IRremote.h> | |
| #include <LiquidCrystal.h> | |
| #include <Ultrasonic.h> | |
| // ######################################### Объвляем нужные объекты ############################################ | |
| IRrecv irrecv(3); | |
| decode_results results; |
| # ЛУЧШЕ ЭТО ПРОЧИТАТЬ!!! | |
| # Инструкция по использованию этой программы: | |
| # 1) Вставить в Processing | |
| # 2) Запустить | |
| # 3) Кликнуть где-угодно в открытом окне | |
| # 4) ОФИГЕТЬ (не обязательный пункт) | |
| # Массивы, которые позже станут 2D'шными, для хранения данных о каждой клетке: | |
| grid = [] # Сетка | |
| DBFs = [] # Задержка между сдвигом вниз (DBF - delay between fall) |
| unsigned int counter = 0; | |
| unsigned int maxCounter = 255; | |
| void pmw(unsigned int pin, unsigned int power) { | |
| if (counter > power) { | |
| digitalWrite(pin, HIGH); | |
| } | |
| if (counter < power) { | |
| digitalWrite(pin, LOW); | |
| } |
| # Массивы, которые позже станут 2D'шными, для хранения данных о каждой клетке: | |
| maze = [] # Лабиринт | |
| DBCs = [] | |
| s1 = 21 # Размеры сетки | |
| s2 = 20 | |
| mains_size = 15 | |
| # Все простые цвета |
| s1x = 30 | |
| s1y = 30 | |
| s2 = 20 | |
| gen = [] | |
| next_gen = [] | |
| clicks = [] | |
| def grid_filler(sx, sy, grid, item): | |
| for x in range(sx): |
| # Python 2.7 interpreter of esoteric programming language named "Brainfu**". You can reed more here: | |
| # https://en.wikipedia.org/wiki/Brainfuck | |
| # To run this interpreter, just type something like this: | |
| # | |
| # Interpreter.run('++++++++++[.-]') | |
| # | |
| # (This program will print numbers from 10 to 1) | |
| MEMORY_SIZE = 30000 | |
| SIZE_OF_CELL = 256 |
| 259740693472217241661550340212759154148804853865176965847247707039525345435112736862655567728367167447546375872230744321116383 | |
| 994738750910309656973821883044930522876385313349213530267927895670105127657827163560807305053220024323311438398651613782723812 | |
| 477745377833729991621463405005466986039086275099663936640921189012527196017210506030035058689402855810367511765825136837743868 | |
| 493641345733883436515877542537191241050033219599133006220436303521375652542182399869084855637408017925176162939175496345855861 | |
| 630076281991608110983652635299544069428420657104604490380564713634603300052085227770755444679472370903097901901486043284681985 | |
| 796101595100185060826491923458731339915013391993236310230186417253647713626647508013398243123170343145296418179005118795731676 | |
| 683497990168201184990775668645684506628739248560391404760519955006628882634587718941068037009187936500173301171002831047394745 | |
| 625609144493282137485557386408057981302826664027035429441210491999580313187680589918651342517595991152056315533770399694103551 | |
| 82752749 |
ffmpeg# hh - hours, mm - minutes, ss - seconds, ff - frames| import datetime | |
| import requests | |
| api = "http://www.modulecounts.com" | |
| def api_call(endpoint, *args, **kwargs): | |
| url = api + endpoint.format(*args, **kwargs) | |
| return requests.get(url).json() |
| # Copyright 2018 Dmytro Meleshko | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |