Instructions for restoring data using Longhorn backup and restore features.
- Scale Down the PostgreSQL StatefulSet:
| import React, { Component } from 'react' | |
| import { RootNavigator } from './navigators' | |
| import { GoogleAnalyticsTracker } from './utils/analytics' | |
| import { GA_TRACKING_ID } from './constants' | |
| class App extends Component { | |
| // gets the current screen from navigation state | |
| getCurrentRouteName = (navigationState) => { | |
| if (!navigationState) { | |
| return null |
| import {call, put, take, fork} from 'redux-saga/effects' | |
| import {END} from 'redux-saga' | |
| import CategoryActions, {CategoryTypes} from '../Redux/CategoryRedux' | |
| // attempts to fetch category | |
| export function* fetchCategoryServer (api) { | |
| let action = yield take(CategoryTypes.CATEGORY_SERVER) | |
| // check when it stopped | |
| while (action !== END) { | |
| yield fork(fetchCategoryAPI, api) |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| // Implementation in ES6 | |
| function pagination(c, m) { | |
| var current = c, | |
| last = m, | |
| delta = 2, | |
| left = current - delta, | |
| right = current + delta + 1, | |
| range = [], | |
| rangeWithDots = [], | |
| l; |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| var my_element = document.getElementById('my-element'); | |
| //-- Returns true/false | |
| my_element.isVisible(my_element); |
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |