Skip to content

Instantly share code, notes, and snippets.

@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
anonymous
anonymous / Sign-in,-then-Tabs:-1.0.0-beta.12.markdown
Created October 28, 2014 05:53
A Pen by Captain Anonymous.
{"contents":{"editor":{"formatOnSave":true}},"overrides":[],"keys":["editor.formatOnSave"]}
@treyhuffine
treyhuffine / withStorage.js
Last active March 4, 2024 21:01
A higher-order component to access localStorage
import React from 'react';
const withStorage = (WrappedComponent) => {
class HOC extends React.Component {
state = {
localStorageAvailable: false,
};
componentDidMount() {
this.checkLocalStorageExists();
@bradtraversy
bradtraversy / docker-help.md
Last active November 3, 2025 16:21
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@diegorodriguesvieira
diegorodriguesvieira / flatlist-hooks-pagination.js
Last active May 17, 2023 18:23
React Native Flatlist hooks pagination example
import ActivityIndicator from '@components/ActivityIndicator';
import Box from '@components/Box';
import { useNavigation } from '@react-navigation/native';
import React, { useEffect, useState } from 'react';
import { FlatList, RefreshControl } from 'react-native';
import { useDispatch, useSelector } from 'react-redux';
import * as Ducks from '../../ducks';
import Item from '../components/Item';
const VIEWABILITY_CONFIG = {
image: ravipoonia/fastlane-android:1.1
pipelines:
pull-requests:
develop:
- step:
name: "Build on docker and push to firebase using fastlane -DEV"
size: 2x
deployment: staging
caches: