Skip to content

Instantly share code, notes, and snippets.

@JingleChannel
JingleChannel / osx-setup.md
Created September 5, 2017 08:22 — forked from zenorocha/.hyper.js
Setup macOS Sierra (10.12)

Setup macOS

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an AirPort Time Capsule that backs up everything using Time Machine, but I don't want all the crap I had in the old one. So let's get our hands dirty!

1. Update OS to latest version

@JingleChannel
JingleChannel / Pointable.jsx
Created February 28, 2017 08:43 — forked from MilllerTime/Pointable.jsx (MOVED TO REPO)
A React component supporting dynamic pointer events. See comments for usage examples. Compatible with the official pointer events polyfill (https://github.com/jquery/PEP)
// Allows listening for pointer events using PEP for browsers that don't support them.
// This component also adds support for dynamic event addition/removal that React does well,
// even though React doesn't support any pointer events yet.
import React from 'react';
// A mapping of pointer event props to event names.
const pointerEventMap = {
onPointerMove: 'pointermove',
@JingleChannel
JingleChannel / Popper.jsx
Last active February 9, 2017 18:38 — forked from FezVrasta/Popper.jsx
React Component for Popper.js v1 that takes the reference as its first child and the popper as its second child (a la react-tether)
import React, { Component, PropTypes } from 'react';
import PopperJS from 'popper.js';
export default class Popper extends Component {
state = {}
update = () => {
if (this.popperInstance) {
this.popperInstance.scheduleUpdate();
}
@JingleChannel
JingleChannel / dev.css
Created March 23, 2016 10:56
DevTools Hide Shortcut (H)
// DevTools Hide Shortcut (H)
.__web-inspector-hide-shortcut__,
.__fx-devtools-hide-shortcut__ {
display: none !important;
}