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 / gist:1d55431ec0f7168c0dd3d3004b4a124e
Created November 4, 2018 01:48 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@Gdaimon
Gdaimon / LICENCE SUBLIME TEXT
Created September 19, 2018 00:45
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@Gdaimon
Gdaimon / config.fish
Created September 2, 2018 18:16 — forked from jackgris/config.fish
Example of config for fish shell
## Lenguaje Go
set --export GOROOT /usr/local/go
set -gx PATH /usr/local/go/bin $PATH
#set -gx PATH GOROOT/bin $PATH
set --export GOPATH $HOME/GoProjects
set -gx PATH $GOPATH/bin $PATH
## AppEngine para GO
set -gx PATH $HOME/programs/go_appengine $PATH

Array<T>

Legend:

  • 鉁忥笍 method changes this.
  • 馃敀 method does not change this.

Array<T>.prototype.*:

  • concat(...items: Array): T[] 馃敀 ES3
@Gdaimon
Gdaimon / Bootcamp Huge
Created January 15, 2018 02:35
Soluci贸n Ejercicios
package co.com.gdaimon;
public class principal {
/**
* Metodo que retorna una fraze danzante "hola mundo" => "Hola Mundo"
*
* @param frase
* @return
*/
@Gdaimon
Gdaimon / firesheetz.ts
Created December 12, 2017 20:07 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
// Copyright 2017 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@Gdaimon
Gdaimon / starUML.md
Created October 21, 2017 04:52 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
@Gdaimon
Gdaimon / Colaborar Proyecto GitHub.markdown
Created July 27, 2017 13:07 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

C贸mo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@Gdaimon
Gdaimon / 0_reuse_code.js
Created January 9, 2017 13:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Gdaimon
Gdaimon / Regex
Last active January 6, 2017 02:05
Utils Regex
//Matching a Username
Pattern: /^[a-z0-9_-]{3,16}$/
Pattern: /^[a-z\d_]{4,15}$/i
//Matching a Password
Pattern: /^[a-z0-9_-]{6,18}$/
Pattern: (?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$
//Matching a Hex Value