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
dougbacelar / github-pr-untested-files.js
Last active Jun 20, 2019
Tampermonkey script to flag untested files on PR's
View github-pr-untested-files.js
// ==UserScript==
// @name Github PR Untested Files
// @namespace
// @version 0.1
// @description Helps reviewing PR's
// @author Doug Bacelar
// @match*
// ==/UserScript==
'use es6';


Users have a hard time dealing with errors.

To solve that, put these emojis prominently in your error messages. Then when the user says:

I dont know what happened but I saw a christmas tree and then everything stopped working

You'll know it was an internal error!

akirattii / background.js
Created Dec 2, 2016
Message passing of Chrome Extension example
View background.js
* onMessage from the extension or tab (a content script)
function(request, sender, sendResponse) {
if (request.cmd == "any command") {
sendResponse({ result: "any response from background" });
} else {
sendResponse({ result: "error", message: `Invalid 'cmd'` });
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-bass / application.html.erb
Last active Apr 21, 2019
Using Google Analytics with Rails 5 and Turbolinks 5. This code is taken from the conversation between @preetpalS and @packagethief on
View application.html.erb
<%# Put this code snippet between the <head></head>-tags in your application layout and %>
<%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %>
<%# ... %>
<%# ... %>
<% if Rails.env.production? %>
<script type="text/javascript">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
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.
parmentf /
Last active Sep 20, 2019
Git Commit message Emoji
benlinton /
Last active Sep 16, 2019
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

View sass-7-1-pattern.scss
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
developit /
Last active Jun 18, 2019
Webpack Starter Template

Webpack Starter Template

This is a basic Webpack project template for a web app written in ES6 & LESS.

This assumes you have a directory structure as follows:

You can’t perform that action at this time.