Skip to content

Instantly share code, notes, and snippets.


Nicolas Gallagher necolas

View GitHub Profile
necolas / App.js
Last active Jul 10, 2019 — forked from trueadm/flare-ideas.jsx
React event responders
View App.js
// We can listen for events (e.g., 'press. or 'focuswithin') that are fired from responders,
// if they are allowed to bubble.
// context.dispatchEvent(eventObject, listener, eventPriority, bubbles)
// This allows us to prevent certain events from bubbling up the tree, e.g., 'focus', 'scroll'.
import React, {useRef, useState} from 'react';
import {Pressable, Text, View} from 'react-ui';
import {PressListener} from 'react-events/press';
View flight-groups.js
var TweetBox = defineComponent(function() {
charLimit: 140
withGeoControl: false;
if (withGeoControl === true) {
// attach to a sub node
View inline-block-example.html
<div class="ibw">
<div class="ib">inline block</div>
<div class="ib">inline block</div>
<div class="ib">inline block</div>
necolas / style.css
Created Apr 27, 2011 — forked from shichuan/style.css
css descriptions
View style.css
* HTML5Boilerplate
* style.css contains a reset, font normalization and some base styles.
* Credit is left where credit is due.
* Much inspiration was taken from these projects:
* -
* -
* -