Skip to content

Instantly share code, notes, and snippets.

View Aabill's full-sized avatar
🎶
Taking notes

Aaron Bill B. Domingo Aabill

🎶
Taking notes
View GitHub Profile
@Aabill
Aabill / docker-compose-laravelapp-local.yml
Last active February 13, 2024 14:45
Laravel App Docker Compose Sample Dev Environment
version: '3'
services:
web:
build:
context: .
dockerfile: ./nginx/Dockerfile
ports:
- "9090:80"
networks:
- networkname
@Aabill
Aabill / cakephp-seedmigrate.php
Last active March 11, 2022 17:34
Cakephp SEED MIGRATE Sample
<?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
//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
#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
//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);
@Aabill
Aabill / iSign.ino
Last active November 25, 2021 10:47
Arduino TFT LCD, BP, SPO2, HC-RS04, HX711
#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>
@Aabill
Aabill / array_filter.php
Last active January 16, 2024 17:57
Filtering Array with in_array() function.
$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);
});
@Aabill
Aabill / dictionary_and_matrix.js
Created November 26, 2020 14:11
Dictionary and Matrix JS
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 = '';