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
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 https://git.hubteam.com/
// @version 0.1
// @description Helps reviewing PR's
// @author Doug Bacelar
// @match https://git.hubteam.com/*
// ==/UserScript==
'use es6';
View errmojis.md

Errmojis

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
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)
*****************************************************************/
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.cmd == "any command") {
sendResponse({ result: "any response from background" });
} else {
sendResponse({ result: "error", message: `Invalid 'cmd'` });
}
@the-glima
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() {
period1=${1:-1}
period2=${2:-day}
if [ -z "$1" ]; then
echo "You can also specify the period, like: gcommit 1 week, or 2 day..."
fi
git log --oneline --after={$period1.$period2.ago} --no-merges --author="Gabriel"
@the-bass
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 https://github.com/turbolinks/turbolinks/issues/73.
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 %>
<%# ... %>
<head>
<%# ... %>
<% if Rails.env.production? %>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@the-glima
the-glima / gabriel-mateus-resume.md
Last active Apr 17, 2019
Gabriel Lima - Resume
View gabriel-mateus-resume.md

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.

SKILLS AND COMPETENCIES

  • Ability to multi-task, react quickly to shifting priorities and meet deadlines.
  • Proactivity and confidence to take tasks responsibilities.
@parmentf
parmentf / GitCommitEmoji.md
Last active Sep 20, 2019
Git Commit message Emoji
View GitCommitEmoji.md
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active Sep 16, 2019
Multiple MySQL Versions with Homebrew
View multiple_mysql_versions_for_development.md

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
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@developit
developit / README.md
Last active Jun 18, 2019
Webpack Starter Template
View README.md

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:

package.json
webpack.config.js
src/
You can’t perform that action at this time.