Skip to content

Instantly share code, notes, and snippets.

One day I'll finish a personal project.

Gabriel Lima the-glima

One day I'll finish a personal project.
Block or report user

Report or block the-glima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
the-glima /
Created Jul 19, 2019 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
the-glima / string-utils.js
Created Apr 8, 2019 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
View string-utils.js
// String utils
// resources:
// -- mout,
* "Safer" String.toLowerCase()
function lowerCase(str){
return str.toLowerCase();
the-glima / pr-check.js
Last active Dec 28, 2018
Automate tasks for helping creating PRs
View pr-check.js
// ==UserScript==
// @name Github PR
// @namespace
// @version 0.1
// @description Automate tasks for helping creating PRs
// @author Gabriel Lima (inspired by Doug Bacelar)
// @match*
// ==/UserScript==
(function() {
the-glima / archive.html
Created Sep 9, 2018 — forked from tuananh/archive.html
Group posts by month in Jekyll archive page
View archive.html
layout: default
title: Archive
<div class="post">
{% for post in site.posts %}
{% unless %}
the-glima / list-categories-count.liquid
Created Sep 9, 2018 — forked from Phlow/list-categories-count.liquid
Jekyll: List all categories with according post count and show and link all post items listed in the according category
View list-categories-count.liquid
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
<li><a href="#{{ category }}">{{ category | capitalize }} ({{ site.tags[category].size }})</a></li>
{% endfor %}
{% else %}
{% for category in categories_list %}
<li><a href="#{{ category[0] | downcase }}">{{ category[0] | capitalize }} ({{ category[1].size }})</a></li>

Credit Card Regex

  • Amex Card: ^3[47][0-9]{13}$
  • BCGlobal: ^(6541|6556)[0-9]{12}$
  • Carte Blanche Card: ^389[0-9]{11}$
  • Diners Club Card: ^3(?:0[0-5]|[68][0-9])[0-9]{11}$
  • Discover Card: ^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$
  • Insta Payment Card: ^63[7-9][0-9]{13}$
  • JCB Card: ^(?:2131|1800|35\d{3})\d{11}$
  • KoreanLocalCard: ^9[0-9]{15}$
the-glima / string.customIndexOf.js
Last active Mar 26, 2018
Custom String.prototype.indexOf() without String methods
View string.customIndexOf.js
// String: Custom Index Of
String.prototype.customIndexOf = function(searchValue, fromIndex) {
var notfound = -1;
// Validating param: fromIndex
// fromIndex needs to be type number and needs to be an integer
if (typeof fromIndex !== 'number' || isNaN(fromIndex)) {
fromIndex = parseInt(fromIndex);
the-glima / gist:61dd498d548166bdbef94744fb111ea8
Created Aug 24, 2016
Alias - Show commits in a period of a time
View gist:61dd498d548166bdbef94744fb111ea8
# Show commits in a period of a time
gitCommits() {
if [ -z "$1" ]; then
echo "You can also specify the period, like: gcommit 1 week, or 2 day..."
git log --oneline --after={$period1.$period2.ago} --no-merges --author="Gabriel"
the-glima /
Last active Apr 17, 2019
Gabriel Lima - Resume


A Front-end Developer with 4 years of experience in web development focusing on performance, usability, semantic, accessibility and clear code. Solid experience developing web applications and solutions using Javascript, HTML and CSS.

Continuously learning and monitoring modern web development technologies, industry trends and standards. Excellent communication skills and able to work alongside multidisciplinary teams to define and refine new functionality. Able to play a key role throughout the software development / support life cycle of a project to ensure that quality solutions meet business objectives.


  • Ability to multi-task, react quickly to shifting priorities and meet deadlines.
  • Proactivity and confidence to take tasks responsibilities.
You can’t perform that action at this time.