Skip to content

Instantly share code, notes, and snippets.

🐙
Growing a beard

Gonçalo Morais gnclmorais

🐙
Growing a beard
Block or report user

Report or block gnclmorais

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
@fasiha
fasiha / no-hackerrank.md
Last active Jul 27, 2019
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.
View no-hackerrank.md

Well, that was unexpected. In the following, I’m trying to follow Jon Evans’ advice from “The Terrible Technical Interview”.


To: recruitment@EmployerABC.com
From: Ahmed Fasih
Subject: Re: Programming Test Invitation

Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.

@odlp
odlp / shared_example.rb
Last active Jun 12, 2018
Enforce a duck-typing interface with shared examples
View shared_example.rb
require "rspec/autorun"
## A puddle of ducks
class AuthenticDuck
def squeeze
"quack"
end
end
@ilfroloff
ilfroloff / ClassA.js
Last active Feb 1, 2019
JavaScript Singleton using class
View ClassA.js
'use strict';
import Singleton from 'Singleton';
class ClassA extends Singleton {
constructor() {
super();
}
singletonMethod1() {
// ...
@paulirish
paulirish / what-forces-layout.md
Last active Oct 20, 2019
What forces layout/reflow. The comprehensive list.
View what-forces-layout.md

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.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
View richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@alicebartlett
alicebartlett / Hiring-links.md
Last active Nov 26, 2018
A while ago I asked twitter for resources on hiring, here are some links:
View Hiring-links.md
@IainIsCreative
IainIsCreative / _baseline.scss
Created Nov 26, 2014
A very simple Baseline SCSS mixin for providing a visual baseline in your project, in CSS.
View _baseline.scss
// Set up line-height and colour defaults for this mixin.
$line-height: 20px!default;
$line-color: #94d4ff!default;
/**
*
* Baseline Mixin
* Handy dandy mixin to provide a baseline for your typography.
*
* The mixin carries two arguments — the $baseline, which should match your line-height, and $baseline-color, the colour you want the lines to be.
@magalhini
magalhini / development.md
Last active Aug 29, 2015
Web Development: Articles & Resources
View development.md
View ui-styleguides-generators.md
You can’t perform that action at this time.