Full reference here: https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
Full reference here: https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
#!/bin/bash | |
set -ex | |
ROCKSDB_VERSION="5.18.4" | |
ZSTD_VERSION="1.1.3" | |
yum update -y && yum install epel-release -y | |
yum install -y \ | |
wget \ |
#!/bin/bash | |
set -e | |
VERSION="1.17" | |
[ -z "$GOROOT" ] && GOROOT="$HOME/.go" | |
[ -z "$GOPATH" ] && GOPATH="$HOME/go" | |
OS="$(uname -s)" | |
ARCH="$(uname -m)" |
# -*- coding:utf-8 -*- | |
import datetime | |
d1 = datetime.datetime(2018, 3, 21) | |
d2 = datetime.datetime(2018, 5, 20) | |
d3 = datetime.datetime(2018, 6, 11) | |
dd1 = (d2-d1).days | |
dd2 = (d3-d2).days | |
# 3月是4户交钱 | |
price1_per_day = 400.0/dd1/4 |
using UnityEngine; | |
using UnityEngine.Networking; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System; | |
document.addEventListener('WeixinJSBridgeReady', function(){ | |
//如果执行到这块的代码,就说明是在微信内部浏览器内打开的. | |
alert('当前页面在微信内嵌浏览器中打开!'); | |
}); |
# -*- coding:utf-8 -*- | |
import datetime | |
import re | |
class EndType: | |
INNER = 1 | |
OUTER = 2 | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
<bean id="ldapAuthenticationHandler" | |
class="org.jasig.cas.authentication.LdapAuthenticationHandler" | |
p:principalIdAttribute="sAMAccountName" | |
c:authenticator-ref="authenticator"> | |
<property name="principalAttributeMap"> | |
<map> | |
<!-- | |
| This map provides a simple attribute resolution mechanism. | |
| Keys are LDAP attribute names, values are CAS attribute names. | |
| Use this facility instead of a PrincipalResolver if LDAP is |
<bean id="ldapAuthenticationHandler" | |
class="org.jasig.cas.authentication.LdapAuthenticationHandler" | |
p:principalIdAttribute="uid" | |
c:authenticator-ref="authenticator"> | |
<property name="principalAttributeMap"> | |
<map> | |
<!-- | |
| This map provides a simple attribute resolution mechanism. | |
| Keys are LDAP attribute names, values are CAS attribute names. | |
| Use this facility instead of a PrincipalResolver if LDAP is |