Skip to content

Instantly share code, notes, and snippets.

View ernestohegi's full-sized avatar
🐲
Logic will get you from A to B. Imagination will take you everywhere. - AE

Ernesto Hegi ernestohegi

🐲
Logic will get you from A to B. Imagination will take you everywhere. - AE
View GitHub Profile
@zoetrope69
zoetrope69 / circle-ci-release-bookmarklet.js
Last active July 30, 2020 11:09
CircleCI Release Bookmarklet
# minified
javascript:!function(){let e=0;const r={philmitchell:["blue"],grant:["blue"],ernie:["grey"],wolfgang:["green"],babyChick:["yellow"],bobRoss:["blue","white","grey","green","brown","blue"],rainbow:["red","orange","yellow","green","blue","purple","pink"],pocPrideFlag:["black","brown","red","orange","yellow","green","blue","purple","pink"],agenderFlag:["black","grey","white","green","white","grey","black"],aromanticFlag:["green","green","white","grey","black"],asexualFlag:["black","grey","white","purple"],bisexualFlag:["pink","purple","blue"],genderfluidFlag:["pink","white","purple","black","blue"],genderQueerFlag:["purple","white","green"],intersexFlag:["yellow","purple","yellow"],lesbianFlag:["red","orange","white","pink","purple"],nonBinaryFlag:["yellow","white","purple","black"],pansexualFlag:["pink","yellow","blue"],polysexualFlag:["pink","green","blue"],transFlag:["blue","pink","white","pink","blue"]},l=[...r.rainbow,...Object.keys(r)],n=l[Math.floor(Math.random()*l.length)],a={philmitchell:"phil
@paulirish
paulirish / what-forces-layout.md
Last active July 25, 2024 07:49
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@jonathantneal
jonathantneal / README.md
Last active March 19, 2024 23:31
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@Chaser324
Chaser324 / GitHub-Forking.md
Last active July 22, 2024 14:45
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j