国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
//Attach to player object | |
using UnityEngine; | |
using UnityEngine.Networking; | |
using System.Collections; | |
public class Voice : NetworkBehaviour | |
{ | |
int lastSample; | |
AudioClip c; |
#!/bin/bash | |
# Adapted from https://stackoverflow.com/a/47436840 | |
function lib_installed() { /sbin/ldconfig -N -v $(sed 's/:/ /' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep $1; } | |
function check() { lib_installed $1 && echo "$1 is installed" || echo -e "\nERROR: $1 is NOT installed\n"; } | |
check libcuda.so | |
check libcudart | |
check libcudnn |
#!/bin/bash | |
echo "GETTING STARTED..." | |
# Go Home | |
cd ~ | |
# Create code environment | |
mkdir -p ~/Documents/code/workspace | |
mkdir -p ~/Documents/code/scripts |
/* | |
FREQ.SIMPLE | |
Calculates a simple frequency table of the values in a column | |
Inputs: | |
1. data - a single column of data | |
*/ | |
FREQ.SIMPLE = LAMBDA(data, |
/* | |
CORRELMATRIX | |
Returns a correlation matrix | |
Inputs: | |
x - an array of 2:n numeric columns of equal size for which to calculate the correlation of each pair of 2 columns | |
has_header - TRUE if the first row of x contains column headers. If omitted or FALSE, x is assumed to not include a header row | |
ranked - if TRUE, calculate the Spearman Ranked Correlation Coefficient. If FALSE or omitted, calculate the Pearson Correlation Coefficient | |
*/ |
For local development you could also use Nginx with PHP as an replacement for XAMPP.
c:\nginx
c:/nginx/config/nginx.conf
and replace the server { ... }
section with this configuration:// Copyright (c) 2015-2021, bacondither | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions | |
// are met: | |
// 1. Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer | |
// in this position and unchanged. | |
// 2. Redistributions in binary form must reproduce the above copyright |
#!/bin/bash | |
# Assigns a keyboard shortcut to the Export Unmodified Originals | |
# menu command in Photos.app on macOS. | |
# @ = Command | |
# ^ = Control | |
# ~ = Option | |
# $ = Shift | |
shortcut='@~^e' |
1 | fonts.googleapis.com | 10 | |
---|---|---|---|
2 | facebook.com | 10 | |
3 | twitter.com | 10 | |
4 | google.com | 10 | |
5 | youtube.com | 10 | |
6 | s.w.org | 10 | |
7 | instagram.com | 10 | |
8 | googletagmanager.com | 10 | |
9 | linkedin.com | 10 | |
10 | ajax.googleapis.com | 10 |