last update: Dec 4, 2020
- macOS >= 10.14 (Mojave); tested with 10.15 (Catalina)
- homebrew properly installed
import React, { Component, } from 'react'; | |
import { View, Text, TouchableOpacity, FlatList, ListItem, Image, TextInput, Dimensions, | |
Animated, StyleSheet, SectionList, PanResponder, PixelRatio, ScrollView } from 'react-native'; | |
import sectionListGetItemLayout from 'react-native-section-list-get-item-layout' | |
var { height, width } = Dimensions.get('window') | |
/* this component is re-used between displaying the friends/groups and being able to pick them in metoo posts, so there are a few different if statements that |
last update: Dec 4, 2020
#!/bin/sh | |
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
# delete all evicted pods from all namespaces | |
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff state from all namespaces | |
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
import React from 'react'; | |
import { View, StyleSheet, ActivityIndicator } from 'react-native'; | |
import { FlatList } from '../searchBarAnimation'; | |
import { List, ListItem } from 'react-native-elements'; | |
export default class Tab extends React.PureComponent { | |
constructor(props) { | |
super(props); | |
this.state = { |
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout master
Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master
import com.facebook.react.ReactApplication ; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.TurboReactPackage; | |
import com.facebook.react.bridge.NativeModule; | |
import com.facebook.react.module.model.ReactModuleInfo; | |
import com.facebook.react.module.model.ReactModuleInfoProvider; | |
import com.facebook.react.shell.MainReactPackage; | |