Skip to content

Instantly share code, notes, and snippets.

View rickarubio's full-sized avatar

Ricardo A. Rubio rickarubio

  • Prosper
  • San Francisco, CA
View GitHub Profile
@rickarubio
rickarubio / README.md
Created January 10, 2020 06:11 — forked from hofmannsven/README.md
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.

Source: https://apple.stackexchange.com/a/83923

@rickarubio
rickarubio / CustomComponent-test.js
Created February 27, 2018 20:49 — forked from mirague/CustomComponent-test.js
Testing React-Intl components with Enzyme's mount() and shallow() methods. This is a helper function which wraps the `intl` context around your component tests in an easy and efficient way.
import { mountWithIntl } from 'helpers/intl-enzyme-test-helper.js';
const wrapper = mountWithIntl(
<CustomComponent />
);
expect(wrapper.state('foo')).to.equal('bar'); // OK
expect(wrapper.text()).to.equal('Hello World!'); // OK
@rickarubio
rickarubio / dbc_logo.png
Last active January 1, 2016 12:19 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
dbc_logo.png