Skip to content

Instantly share code, notes, and snippets.

View MrNyG25's full-sized avatar

MrNyG25 MrNyG25

  • Colombia
View GitHub Profile
@MrNyG25
MrNyG25 / Github Webhook Tutorial.md
Created July 15, 2024 14:30 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
/**
*
* WITHOUT NESTING
*/
// An asynchronous function that performs a task on each item
/* async function performAsyncTask(item) {
// Simulating an asynchronous task with a delay
await delay(1000);
console.log(`Task completed for item: ${item}`);
@MrNyG25
MrNyG25 / .md
Created December 13, 2022 22:59 — forked from EntwistleOx/.md
QUIZ - PROFESSIONAL SCRUM MASTER CERTIFICATE

SCRUM MASTER PROFESSIONAL CERTIFICATE (SMPC®)

Simulador para examen Scrum Master

1. ¿Quién debe hacer el trabajo requerido para los elementos del Producto Backlog, para crear un Incremento potencialmente liberable?

  1. El equipo Scrum.
  2. El Scrum Master.
  3. El Equipo de Desarrollo.
  4. El Product Owner.
@MrNyG25
MrNyG25 / php5.6-pgsql.Dockerfile
Created September 19, 2022 13:01 — forked from ben-albon/php5.6-pgsql.Dockerfile
Docker PHP Image with PostgreSQL Driver
FROM php:5.6-apache
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
COPY src/ /var/www/html
@MrNyG25
MrNyG25 / AppServiceProvider.php
Created June 16, 2022 17:52 — forked from iamsajidjaved/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()

Install Angular ESLint

ng add @angular-eslint/schematics

Install Prettier and Prettier-ESLint dependencies

npm i prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier -D

ESLint configuration

Filename: .eslintrc.json

@MrNyG25
MrNyG25 / google_maps.xml
Created May 6, 2022 16:28 — forked from radum/google_maps.xml
Custom "Google Maps" source (en-EN) for Mobile Atlas Creator 1.9.16. Save as *.xml in /mapsources.
<customMapSource>
<name>Google Maps</name>
<minZoom>0</minZoom>
<maxZoom>20</maxZoom>
<tileType>PNG</tileType>
<tileUpdate>IfNoneMatch</tileUpdate>
<url>http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&amp;hl=en-EN&amp;x={$x}&amp;y={$y}&amp;z={$z}&amp;s=Galileo&amp;scale=1</url>
<serverParts>0 1 2 3</serverParts>
</customMapSource>
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@MrNyG25
MrNyG25 / validations.ts
Created April 14, 2022 23:19 — forked from Klerith/validations.ts
Validar email
export const isValidEmail = (email: string): boolean => {
const match = String(email)
.toLowerCase()
.match(
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
);
class SnakeUpperCaseTransformer():
def __init__(self, string_param):
self.string_param = string_param
def showString(self):
print(self.string_param)
def convertToUpperCase(self):
rez = []