This file contains 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
.box { | |
width: 300px; | |
height: 250px; | |
background-color: cornflowerblue; | |
transition: 0.5s background-color; | |
background-size: cover; | |
background-position: center; | |
background-blend-mode: luminosity; |
This file contains 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
.box { | |
width: 300px; | |
height: 250px; | |
color: deeppink; | |
border: 2px solid; | |
text-shadow: 0.1em 0.2em yellow; | |
filter: drop-shadow(0.05em 0.05em 0.1em gray); | |
/*box-shadow: 0.05em 0.05em 0.1em gray;*/ | |
} |
This file contains 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
body { | |
margin: 0; | |
} | |
svg { | |
height: 100px; | |
width: 100px; | |
background-color: yellowgreen; | |
border-radius: 50%; | |
transform: rotateZ(-90deg); |
This file contains 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
body { | |
margin: 0; | |
} | |
.pie { | |
background-color: yellowgreen; | |
height: 100px; | |
width: 100px; | |
border-radius: 50%; |
This file contains 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
nav > a { | |
position: relative; | |
display: inline-block; | |
padding: .3em 1em 0; | |
cursor: pointer; | |
} | |
nav > a + a { | |
margin-left: -10px; | |
} |
This file contains 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
.box { | |
height: 300px; | |
width: 300px; | |
background: #eee; | |
background-size: 30px 30px; | |
/* 最后的0 0可以省略不写 */ | |
background-position: 0 0, -15px 15px, 15px 15px, 0 0; | |
/* 利用background-position给三角形增加偏移,拼接成两个正方形 */ |
This file contains 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
cloaking_rules = 'cloaking-rules.txt' | |
listen_addresses = ['0.0.0.0:53'] | |
max_clients = 250 | |
ipv4_servers = true | |
ipv6_servers = false | |
timeout = 5000 | |
keepalive = 30 | |
cert_refresh_delay = 240 | |
ignore_system_dns = true | |
cache = true |
This file contains 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
const fs = require('fs'); | |
/** | |
* @param {string}line | |
* @return {[string, string] | null} | |
*/ | |
function matchHost(line) { | |
const segments = line.split(' ').filter((seg) => !!seg); | |
if(segments.length !== 2) { | |
return null; |
This file contains 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
quicksort :: (Ord a) => [a] -> [a] | |
quicksort [] = [] | |
quicksort (x:xs) = | |
let smallerSorted = quicksort (filter (<=x) xs) | |
biggerSorted = quicksort (filter (>x) xs) | |
in smallerSorted ++ [x] ++ biggerSorted |
This file contains 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
Import-Module -Name Terminal-Icons | |
Import-Module -Name z | |
# Set-Alias z Search-NavigationHistory | |
Import-Module posh-git | |
oh-my-posh init pwsh -c "C:\Users\username\AppData\Local\Programs\oh-my-posh\themes\star.omp.json" | Invoke-Expression | |