$ ps -ef | rg swift
501 9986 1 0 4Sep20 ?? 0:00.00 (repl_swift)
501 10019 1 0 4Sep20 ?? 0:00.00 (repl_swift)
501 12537 1 0 4Sep20 ?? 0:00.00 (repl_swift)
501 12420 1 0 4Sep20 ttys003 0:00.00 (repl_swift)
501 13317 1 0 4Sep20 ttys006 0:00.00 (repl_swift)
501 13466 1 0 4Sep20 ttys006 0:00.00 (repl_swift)
501 13481 1 0 4Sep20 ttys006 0:00.00 (repl_swift)
...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:remove-surrounding-whitespace? true | |
:remove-trailing-whitespace? true | |
:remove-consecutive-blank-lines? false | |
:insert-missing-whitespace? false | |
:align-associative? false | |
:indents {#"^:?(require|import)$" [[:block 0] [:inner 0]] | |
#"^\>def" [[:inner 0]] ; guardrails | |
#"^execute" [[:inner 0]] ; db | |
}} |
mkdir
->$null = mkdir -Force
cp
->cp -Force
tail -n $n -f $file
->Get-Content -Tail $n -Wait $file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Better to use test.check | |
(defn random-name | |
[] | |
(let [char-ranges [[\A \Z] | |
[\a \z] | |
[\0 \9]] | |
chars (->> char-ranges | |
(mapcat (fn [[from-char to-char]] | |
(map char (range (int from-char) (inc (int to-char)))))) | |
(concat [\_ \space \-]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$magickExe = 'C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\magick.exe' | |
$inPath = 'C:\Users\Joe\Downloads\svg-icons\' | |
$outPath = 'C:\Users\Joe\Downloads\svg-icons\output\' | |
foreach ($file in Get-ChildItem -File $inPath) | |
{ | |
Write-Host "Processing ", $file | |
$outName = [io.path]::ChangeExtension($file.Name, "ico") | |
& $magickExe -density 256 -background transparent $file -define icon:auto-resize='64,32,16' -colors 8 (Join-Path $outPath $outName) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Improvements over NWG's built-in implementation: | |
// | |
// - High quality interpolation mode | |
// - Crop non-square images | |
fn load_and_resize_image(decoder: &nwg::ImageDecoder, data: &[u8]) -> Result<Bitmap> { | |
use winapi::shared::windef::{HBITMAP, HDC}; | |
use winapi::um::wincodec::{ | |
IWICBitmapScaler, IWICBitmapSource, WICBitmapInterpolationModeHighQualityCubic, | |
}; | |
use winapi::um::wingdi::{ |
(从 https://en.wikipedia.org/wiki/Green_tea#Health_effects 自动翻译)
普通绿茶含有 99.9% 的水,每 100 毫升提供 1 大卡热量,缺乏显著的营养成分(表),并含有植物化学物质,如多酚和咖啡因。
许多人声称绿茶对健康有益,但人体临床研究并未发现有益的证据。[2][7][12] 2011 年,一个科学家小组应欧盟委员会的要求发表了一份关于健康影响声明的报告:总的来说,他们发现对绿茶的声明没有足够的科学证据支持。 [7]尽管绿茶因其咖啡因含量可能会增强精神警觉性,但只有微弱的、不确定的证据表明经常饮用绿茶会影响患癌症或心血管疾病的风险,并且没有证据表明它有益于减肥。 [2]
Cochrane Collaboration 2020 年的一项综述列出了一些潜在的不良反应,包括胃肠道疾病、肝酶水平升高,以及更罕见的失眠、血压升高和皮肤反应。 [13]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$reg = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | |
Set-ItemProperty -Path $reg -Name ProxyServer -Value "127.0.0.1:2082" | |
Set-ItemProperty -Path $reg -Name ProxyEnable -Value 1 |
Attempted to install the Win7 target (rust-lang/rust#118150) but failed:
> rustup target add x86_64-win7-windows-msvc
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support target 'x86_64-win7-windows-msvc'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html
This is due to currently *-win7-windows-msvc
is still Tier 3 and cannot be used in Rustup. For now, just install an old compiler: