Skip to content

Instantly share code, notes, and snippets.

View arcanisgk's full-sized avatar
🏦
looking for a job

Walter Nuñez arcanisgk

🏦
looking for a job
  • Icaros Net S.A
  • Panamá
View GitHub Profile
@arcanisgk
arcanisgk / array.php
Created December 14, 2022 21:27
result of json
<?php
$array = [
'card_list' => [
0 => [
'name' => 'Effect Veiler',
'details' => ['some text', 'some text'],
'set' => [
'ETCO-EN100' => [
'release' => '2020-01-19',
@arcanisgk
arcanisgk / new method
Created December 2, 2022 21:29
new method
new method
<?php
class DataBaseManager
{
public function GetData($query, $user, $pass)
{
try {
$db_result = [];
$conn = new PDO("mysql:host=localhost;dbname=test", $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@arcanisgk
arcanisgk / project.txt
Last active September 24, 2022 02:47
What to know and do, before and during the development of a php framework?
Hello friends; if you got here you already know a little about what this is about, I am trying to create a roadmap to develop my own framework with your ideas and opinions, since I believe that there is no absolute truth.
Objective: create a framework from scratch; with a graphical environment for its setup/configuration; with CMS capabilities to establish the different areas of development: Maintenance, Processes, Reports.
What I want to avoid: dependencies on external libraries.
What I need from you: your opinions, to know what you consider to be good and bad in the other frameworks, what things would change, but first I need to know in what order it should be developed.
What to know and do, before and during the development of a php framework (The Roadmap)?
```C#
namespace CreateImageClass
{
public sealed class ImageControlOnFly
{
public Main MainForm;
public Bitmap Bmp = new Bitmap(1, 1);
@arcanisgk
arcanisgk / apache-php
Created April 3, 2022 20:18
Learning to setup multiple apache-php project with mysql and phpmyadmin implemente nginx proxy reverse for multiple local domain.
FROM php:7.4-apache
# RUN docker-php-ext-install opcache && docker-php-ext-enable opcache
RUN a2enmod rewrite
RUN apt-get update && apt-get upgrade -y
# install dependencies
RUN apt-get install -y --no-install-recommends \
build-essential \
@arcanisgk
arcanisgk / Professions.txt
Created December 29, 2021 15:10
Characters Professions
Characters
Explorer
Warrior
Barbarian
Fury
Mercenary
gentleman
Templar
Killer
@arcanisgk
arcanisgk / Template dashboard.php
Created December 28, 2021 20:58
Template dashboard
{% extends 'base.html.twig' %}
{% block title %}Sistema de Gestion de Socorristas{% endblock %}
{% block body %}
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet"/>
<link href="/assets/css/styles.css" rel="stylesheet"/>
<script>
var body = document.body;
body.classList.add("sb-nav-fixed");
@arcanisgk
arcanisgk / AccountActivationController.php
Created December 22, 2021 23:38
activation of user account
<?php
namespace App\Controller;
use App\Entity\User;
use App\Form\AccountActivationType;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@arcanisgk
arcanisgk / php.ini
Created December 14, 2021 22:23
config php para desarrollo
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: