For generic skin emulator with default apis (without google apis):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-29;default;x86"
# Install virtualbox | |
cd /etc/yum.repos.d/ | |
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo | |
sudo yum update | |
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
sudo yum -y install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms | |
sudo yum -y install VirtualBox-4.2 |
#!/usr/bin/env bash | |
set -e | |
CONTEXT="$1" | |
if [[ -z ${CONTEXT} ]]; then | |
echo "Usage: $0 KUBE-CONTEXT" | |
exit 1 | |
fi |
<?php | |
/** | |
* Attributes shortcode callback. | |
*/ | |
function so_39394127_attributes_shortcode( $atts ) { | |
global $product; | |
if( ! is_object( $product ) || ! $product->has_attributes() ){ |
<?php | |
class My_Custom_My_Account_Endpoint { | |
/** | |
* Custom endpoint name. | |
* | |
* @var string | |
*/ | |
public static $endpoint = 'my-custom-endpoint'; |
Run
$ docker-compose up
#!/bin/bash | |
# This script requires jq, a command line to to parse and format JSon. | |
# https://stedolan.github.io/jq/ | |
function padBase64 { | |
STR=$1 | |
MOD=$((${#STR}%4)) | |
if [ $MOD -eq 1 ]; then | |
STR="${STR}=" |
var R = require("ramda"); | |
var memoizeUntil = function (fn, expiry) { | |
var cache = {}; | |
var onExpiry = []; | |
var onCache = []; | |
var onCachedResult = []; | |
var memoized = function () { |