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
version: '3' | |
services: | |
web: | |
build: | |
context: . | |
dockerfile: ./nginx/Dockerfile | |
ports: | |
- "9090:80" | |
networks: | |
- networkname |
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
<?php | |
use Migrations\AbstractMigration; | |
class AddOperatorRoleSeedToRoles extends AbstractMigration | |
{ | |
/** | |
* Change Method. | |
* | |
* More information on this method is available here: | |
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method |
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
//Code for Arduino by Sugad Anandrao Mankar & Jurs | |
//Just Connect Tx pin to Arduino Rx 0 pin and run below code | |
// Demo program for Arduino MEGA2560 board and sensor with serial output | |
char sbuffer[30], ch; | |
unsigned char pos; | |
unsigned char read1, read2, read3; | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(11, 12); // RX, TX |
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 <math.h> | |
#include <avr/wdt.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_GrayOLED.h> | |
#include <Adafruit_SPITFT.h> | |
#include <Adafruit_SPITFT_Macros.h> | |
#include <gfxfont.h> | |
//#if 1 |
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
//Code for Arduino by Sugad Anandrao Mankar & Jurs | |
//Just Connect Tx pin to Arduino Rx 0 pin and run below code | |
// Demo program for Arduino MEGA2560 board and sensor with serial output | |
char sbuffer[30], ch; | |
unsigned char pos; | |
unsigned char read1, read2, read3; | |
void setup(){ | |
Serial.begin(115200); |
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 <Adafruit_GFX.h> | |
#include <Adafruit_GrayOLED.h> | |
#include <Adafruit_SPITFT.h> | |
#include <Adafruit_SPITFT_Macros.h> | |
#include <gfxfont.h> | |
//#if 1 | |
#include <Adafruit_GFX.h> | |
#include <MCUFRIEND_kbv.h> |
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
$products = [ | |
["code" => 'btk', "name" => 'Butik'], | |
["code" => 'umt', "name" => 'Urmot'], | |
["code" => 'klo', "name" => 'Kalbo'], | |
]; | |
$codes = ["umt","btk"]; | |
$filtered = array_filter($products, function($p) use($codes) { | |
return in_array($p["code"], $codes); | |
}); |
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
console.log("Matrix and Dictionary"); | |
function Find(dictionary_yords, matrix_yords) { | |
if (matrix_yords.length < 6) | |
{ | |
let result = []; | |
let matrix_vertical = []; | |
for(let i = 0; i < matrix_string_array.length; i++) | |
{ | |
let newString = ''; |