Skip to content

Instantly share code, notes, and snippets.

View yulioaj290's full-sized avatar

Yulio Aleman Jimenez yulioaj290

View GitHub Profile
@yulioaj290
yulioaj290 / useEffectDebug.js
Created November 18, 2022 17:45
useEffectDebug is a custom hook for React that work silimar as useEffect. This hook give information about what dependency changes on each execution, and the old and new values for each changed dependency.
import React, { useEffect } from 'react'
import { isEqual } from 'lodash'
const usePrevious = (value, defaultValue) => {
const ref = React.useRef()
React.useEffect(() => {
ref.current = value
})
return ref.current || defaultValue
}
@yulioaj290
yulioaj290 / [...app_path].js
Created July 24, 2022 18:10
Link previews in React.js for Social Networks using Next.js
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import Head from 'next/head'
import axios from 'axios'
export default function AppPath({ appPath, title, keywords, description }) {
const [originUrl, setOriginUrl] = useState('')
const router = useRouter()
useEffect(() => {
@yulioaj290
yulioaj290 / resume.json
Last active June 3, 2021 20:52
Yulio Aleman Jimenez's Full Resume
{
"basics": {
"name": "Yulio Aleman Jimenez",
"label": "Software Engineer / Web & Mobile Developer at cuban.engineer",
"picture": "https://media-exp1.licdn.com/dms/image/C4E03AQEAdyRF5uWQ7g/profile-displayphoto-shrink_400_400/0/1540596166237?e=1614816000&v=beta&t=pWXfg3CtNfwaFqGxasjGR8CA0vSAAXN-eh2UH8eGWJM",
"phone": "(+53) 5 450 9765",
"website": "https://www.linkedin.com/in/yulioaj290",
"summary": "Software engineer with a Bachelor’s Degree in Computer Sciences with extensive experience in software development using different technologies, good practices, and modern tools. Highly motivated professional with proven knowledge in web and mobile development. Advocated contributor of open-source projects. Passionate about learning new technologies, and the pixel-perfect front-end development that pays attention to user experience. Contributor of a large list of projects with impact on social life, open-source community, teamwork, and business growth.",
@yulioaj290
yulioaj290 / Popover.js
Created April 16, 2020 01:10 — forked from rjerue/Popover.js
React Native Web Popovers
// web
import P, { ArrowContainer } from 'react-tiny-popover'
import React from 'react'
export default ({
visible = false,
position,
onClose,
children,
content = null,
@yulioaj290
yulioaj290 / README.md
Last active August 28, 2019 19:05
Script Bash for downloading entire websites and compress it in a 7z file.

Website Downloader

Script Bash for downloading entire websites and compress it in a 7z file.

You must pass 1 required argument: url of the website to download.

This script is capable to download all web pages related to the website you want. It respects all external resources neccesary to properly view the website offline in a browser. It also respects the parent directory you specify in the url.

@yulioaj290
yulioaj290 / Bootstrap_offline_docs.md
Last active March 24, 2019 19:18
Read Bootstrap Docs offline with Jekyll server and Compile Bootstrap Docs for static reading from a local server with Apache2 or Xampp

Read Bootstrap Docs offline with Jekyll server

Requirements

Project Bootstrap use many tools (tools) such as SASS, Jekyll, NPM, Bundler, etc.

  1. Install Git
$ sudo apt-get install git
@yulioaj290
yulioaj290 / NPM_UPLOADER.sh
Last active September 28, 2019 18:52
This script split a file into chunks, create a NPM package with each one, and finally upload each package to https://npmjs.com
#!/bin/bash
#
# Copyright 2019 Yulio Aleman Jimenez (@yulioaj290)
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in

YouTube video downloader

Script Node.JS for downloading videos from YouTube. You can use some options to choose the features of the video, like format, size, etc. This script only produce a file video.sh_, with all commands to download a video from YouTube.

Requirements

  • NodeJS 8.4.0 or higher.

Laracasts.com video downloader

This script only produce a file video.sh_, with all commands to download all videos of a serie.

Requirements

  • NodeJS 8.4.0 or higher.
  • NPM 5.3.0 or higher.
  • Bzip2 1.0.6 or higher.
@yulioaj290
yulioaj290 / README.md
Last active November 6, 2018 20:17
Basic configuration to deploy a Web App using Apache2 and Self-Signed SSL on Ubuntu 16.04

Basic configuration to deploy a Web App using Apache2 and Self-Signed SSL on Ubuntu 16.04

Pre-requisites

Install Open SSL:

~$ sudo apt-get install openssl