Skip to content

Instantly share code, notes, and snippets.

View Gdaimon's full-sized avatar
🏠
Working from home

Carlos Andrés Charris S Gdaimon

🏠
Working from home
View GitHub Profile
@Gdaimon
Gdaimon / Gulpfile.js
Created October 15, 2022 18:53
Archivo configuracion de Gulp
// npm i autoprefixer cssnano gulp gulp-avif gulp-cache [email protected] gulp-plumber gulp-postcss gulp-sass gulp-sourcemaps gulp-terser-js gulp-webp postcss sass
const { src, dest, watch, parallel } = require('gulp');
// css
const sass = require('gulp-sass')(require('sass'));
const plumber = require('gulp-plumber');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const postcss = require('gulp-postcss');
@Gdaimon
Gdaimon / movies.json
Created October 5, 2021 03:49
List of movies from themoviedb, Path https://image.tmdb.org/t/p/w300
[
{
"adult": false,
"backdrop_path": "/hJuDvwzS0SPlsE6MNFOpznQltDZ.jpg",
"genre_ids": [16, 12, 14, 10751, 28],
"id": 527774,
"original_language": "en",
"original_title": "Raya and the Last Dragon",
"overview": "Long ago, in the fantasy world of Kumandra, humans and dragons lived together in harmony. But when an evil force threatened the land, the dragons sacrificed themselves to save humanity. Now, 500 years later, that same evil has returned and it’s up to a lone warrior, Raya, to track down the legendary last dragon to restore the fractured land and its divided people.",
"popularity": 3686.429,
@Gdaimon
Gdaimon / index.html
Created September 22, 2021 02:22
Configuración Firebase y Login
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Login Firebase</title>
@Gdaimon
Gdaimon / acentos-oracle.sql
Last active March 4, 2021 21:03
Eliminar acentos Oracle
select
translate(
'Andrés',
'ÁÀÄÂĀÅǍĄĂÃĈĆÇČĐĎÊËÉÈĚĒĖĘĞĢĜĤÌĮĪÏÎÍĴĶĻĹĽÑŃŇŅÒÖÓØŐÕÔŔŘŠŚŜŞȘŤŢȚÜÙÚÛŪŨŲŮŰŴÝŸŶŹŽŻäàāăąǎåáâãćçčĉđďèéêëěęėēĝğģĥìīįíîïıĵķĺłļľñńņňőøöòóôõřŕșšşśŝťțţūůųũüùúûűŵŷýÿžżź',
'AAAAAAAAAACCCCDDEEEEEEEEGGGHIIIIIIJKLLLNNNNOOOOOOORRSSSSSTTTUUUUUUUUUWYYYZZZaaaaaaaaaaccccddeeeeeeeeggghiiiiiiijkllllnnnnooooooorrssssstttuuuuuuuuuwyyyzzz'
) texto
from dual;
@Gdaimon
Gdaimon / split_part-oracle.sql
Last active March 4, 2021 21:04
Función SPLIT_PART para Oracle
WITH
FUNCTION split_part(palabra VARCHAR2,
delimitador VARCHAR2,
numero_parte NUMBER) RETURN VARCHAR2 IS
pos_inicio NUMBER;
pos_final NUMBER;
BEGIN
IF numero_parte <> 0 AND delimitador IS NOT NULL THEN
@Gdaimon
Gdaimon / pregunta_88.java
Last active February 3, 2021 06:33
Solución pregunta 88 - Prueba evalart
import java.util.*;
import java.util.stream.Collectors;
public class Varios {
static int[] myArray = { 1, 2, 9, 2, 5, 3, 5, 1, 5 };
static int n = 3;
private static int[][] fillMatriz ( int tamanoMatriz ) {
int[][] matriz = new int[ tamanoMatriz ][ tamanoMatriz ];
@Gdaimon
Gdaimon / .gitignore Java
Created August 16, 2019 03:58 — forked from dedunumax/.gitignore Java
A complete .gitignore file for Java
##########################
## Java
##########################
*.class
.mtj.tmp/
*.jar
*.war
*.ear
hs_err_pid*
@Gdaimon
Gdaimon / post-WSL.md Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.

@Gdaimon
Gdaimon / NPM INIT DEFAULTS.md
Created November 25, 2018 13:55 — forked from jamestalmage/NPM INIT DEFAULTS.md
Set up npm.init defaults

copied from iamsim

$ npm config set init.author.name "James Talmage"
$ npm config set init.author.email [email protected]
$ npm config set init.author.url http://iamsim.me/
$ npm config set init.license MIT
@Gdaimon
Gdaimon / postgres-brew.md
Created November 18, 2018 12:11 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update