Skip to content

Instantly share code, notes, and snippets.

View thewasta's full-sized avatar
🎯
Focusing

Schenier Lopez thewasta

🎯
Focusing
View GitHub Profile
@thewasta
thewasta / add_intellij_launcer
Created March 17, 2024 13:18 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
<?php
namespace App\Console;
class CommandHexagonal extends ParentHexagonalCommand
{
public function handle(): void
{
$this->parseSignatures();
$this->makeApplication();
@thewasta
thewasta / Simple Fuction For PregMatch
Created December 12, 2018 17:38
This Preg_Match is for use number,lowercase,capital letters,graphic accent and add the min and max character. Also you can add global, multi line, insensitive. You have to write a associative array for example: ['NUMBERS'=>'0-9','SIZECHARS'=>'6,12'] output:'/[0-9]{6,8}+$/'.
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 12/12/18
* Time: 18:30
*
*/
function pregMatch(array $diccionario,$variable){
if (empty($diccionario['SPACE'])){
@thewasta
thewasta / Function Select From DB
Last active December 10, 2018 00:27
Select from DB with a condicional WHERE
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 06/12/18
* Time: 0:53
*
*/
function select($tabla,$datos=null, $item=null){
@thewasta
thewasta / Function Insert
Created December 5, 2018 21:50
Simple function to insert DB
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 05/12/18
* Time: 21:32
*
*/
//insertSQL('users',['user_name'=>$_POST['user']]);