# Install pipenv
pip install pipenv
# Create Venv
pipenv shell
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_image/network.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:async/async.dart'; | |
import 'package:flutter/foundation.dart'; | |
// note: you'll just need to add 'http' and 'flutter_image' packages to pubspec.yaml |
public class CustomViewPager extends ViewGroup { | |
private static final String TAG = "ViewPager"; | |
private static final boolean DEBUG = false; | |
private static final boolean USE_CACHE = false; | |
private static final int DEFAULT_OFFSCREEN_PAGES = 1; | |
private static final int MAX_SETTLE_DURATION = 600; // ms | |
static class ItemInfo { | |
Object object; |
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
This Gist give some tips in order to remove AWS Glacier Vault
with AWS CLI (ie. https://aws.amazon.com/en/cli/).
$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.text.TextUtils; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewTreeObserver; | |
import android.view.ViewTreeObserver.OnGlobalLayoutListener; | |
import android.widget.FrameLayout; | |
import android.widget.TextView; |
#!/bin/bash | |
# Install script for Latest WordPress on local dev | |
# Setup | |
# Hardcoded variables that shouldn't change much | |
# Path to MySQL | |
MYSQL='/usr/bin/mysql' |