via: Computer-Science-Glossary
| 英文 | 译法 1 | 译法 2 | 译法 3 |
|---|---|---|---|
| a block of pointers | 一块指针 | 一组指针 | |
| abbreviation | 缩略语 |
| """A basic database set-up for Travis CI. | |
| The set-up uses the 'TRAVIS' (== True) environment variable on Travis | |
| to detect the session, and changes the default database accordingly. | |
| Be mindful of where you place this code, as you may accidentally | |
| assign the default database to another configuration later in your code. | |
| """ | |
| import os |
| # To run this file you will need to open Powershell as administrator and first run: | |
| # Set-ExecutionPolicy Unrestricted | |
| # Then source this script by running: | |
| # . .\install_python.ps1 | |
| $save_dir=Resolve-Path ~/Downloads | |
| $project_dir = "C:\Projects" | |
| $virtualenv_dir = $project_dir + "\virtualenvs" | |
| $client = New-Object System.Net.WebClient |
via: Computer-Science-Glossary
| 英文 | 译法 1 | 译法 2 | 译法 3 |
|---|---|---|---|
| a block of pointers | 一块指针 | 一组指针 | |
| abbreviation | 缩略语 |
| # create folders if does not exist | |
| mkdir -p ~/.fonts | |
| mkdir -p ~/.config/fontconfig/ | |
| # download noto color emoji font from https://www.google.com/get/noto/#emoji-zsye-color | |
| # extract NotoColorEmoji.ttf file into ~/.fonts/ | |
| # create font config file | |
| cat << 'EOF' > ~/.config/fontconfig/fonts.conf | |
| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
| [void][Windows.Networking.Connectivity.NetworkInformation, Windows, ContentType = WindowsRuntime] | |
| $cost = [Windows.Networking.Connectivity.NetworkInformation]::GetInternetConnectionProfile().GetConnectionCost() | |
| $cost.ApproachingDataLimit -or $cost.OverDataLimit -or $cost.Roaming -or $cost.BackgroundDataUsageRestricted -or ($cost.NetworkCostType -ne "Unrestricted") |
| $GuardianName = 'UntrustedGuardian' | |
| $CertificatePassword = Read-Host -Prompt 'Please enter a password to secure the certificate files' -AsSecureString | |
| $guardian = Get-HgsGuardian -Name $GuardianName | |
| if (-not $guardian) | |
| { | |
| throw "Guardian '$GuardianName' could not be found on the local system." | |
| } |
| function Write-Log($msg) { Write-Host $msg -ForegroundColor Yellow } | |
| Write-Log "Checking for metered network connections..." | |
| [int]$MeteredAdapterCount = 0 | |
| $UserCostEnum = @{ | |
| 0 = "Metering Disabled" | |
| 2 = "Metering Enabled" | |
| } | |
| #region Data Usage Service |