Skip to content

Instantly share code, notes, and snippets.

View ReactGirl's full-sized avatar
:octocat:
Reacting

ReactGirl

:octocat:
Reacting
View GitHub Profile
@ReactGirl
ReactGirl / App.js
Created December 13, 2018 22:40 — forked from koistya/App.js
How to add `onscroll` event in ReactJS component
import React from 'react';
let lastScrollY = 0;
let ticking = false;
class App extends React.Component {
componentDidMount() {
window.addEventListener('scroll', this.handleScroll);
}
@ReactGirl
ReactGirl / installing_postgresql.md
Created September 2, 2018 19:49 — forked from 15Dkatz/installing_postgresql.md
PostgreSQL installation tutorial

Let's install PostgreSQL onto your operating system.

As an open source object-relational database management system, PostgreSQL available for MacOS, Linux, and Windows.

Goal for each Operating System

The goal will be to run the following command successfully from the command line (regardless of the OS):

psql -U postgres

This should open the psql interactive shell and print a prompt that looks like:

@ReactGirl
ReactGirl / responsive-semantic-ui.css
Created August 8, 2018 21:22 — forked from bl4ck5un/responsive-semantic-ui.css
Responsive helpers (mobile-only etc.) for semantic-ui
/* Semantic UI has these classes, however they're only applicable to*/
/* grids, containers, rows and columns.*/
/* plus, there isn't any `mobile hidden`, `X hidden` class.*/
/* this snippet is using the same class names and same approach*/
/* plus a bit more but to all elements.*/
/* see https://github.com/Semantic-Org/Semantic-UI/issues/1114*/
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],