Forwarded from 永久封存 | Yuuta 台 | 😷 #Pray4Wuhan (Yuuta ⠀)
https://t.iss.one/FuckU_GaoShangXuan/1079 儿子 / 生 / 性病母 / 倍感安慰
Telegram
Eric Chen's Public Channel
#今天有什么好笑的
\documentclass[11pt]{article}
\usepackage{amsmath, amssymb}
\usepackage[normalem]{ulem}
% XeTex is utf8 based
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[colorlinks]{hyperref}
% Tikz
\usepackage{tikz}
\usepackage{float}
\usepackage{caption}
\usetikzlibrary{shapes.geometric, arrows, positioning}
\tikzstyle{start} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth]
% CJK Support
\usepackage{fontspec, xunicode, xltxtra}
% CJK style
\usepackage[top = 1in, bottom = 1in, left = 1.25in, right = 1.25in]{geometry}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\renewcommand{\baselinestretch}{1.25}
\parindent 2em
% Set main font
\newfontfamily\opensans{Open Sans}
\newfontfamily\sourcehanserif{Source Han Serif CN}
\usepackage[CJK]{ucharclasses}
\setTransitionsForCJK{\sourcehanserif}{\opensans}{\opensans}
\setmainfont{Open Sans}
\title{}
\author{}
\date{}
\begin{article}
\maketitle
\end{article}
\usepackage{amsmath, amssymb}
\usepackage[normalem]{ulem}
% XeTex is utf8 based
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[colorlinks]{hyperref}
% Tikz
\usepackage{tikz}
\usepackage{float}
\usepackage{caption}
\usetikzlibrary{shapes.geometric, arrows, positioning}
\tikzstyle{start} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth]
% CJK Support
\usepackage{fontspec, xunicode, xltxtra}
% CJK style
\usepackage[top = 1in, bottom = 1in, left = 1.25in, right = 1.25in]{geometry}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\renewcommand{\baselinestretch}{1.25}
\parindent 2em
% Set main font
\newfontfamily\opensans{Open Sans}
\newfontfamily\sourcehanserif{Source Han Serif CN}
\usepackage[CJK]{ucharclasses}
\setTransitionsForCJK{\sourcehanserif}{\opensans}{\opensans}
\setmainfont{Open Sans}
\title{}
\author{}
\date{}
\begin{article}
\maketitle
\end{article}
Forwarded from dnaugsuz
我加了粘滞(stickY)的,就是
而不会尝试弄 a" ....(包括"的字符集.)... "
要不然为什么VSCode的预览是正确的结果……
Regex 真是乱,为什么
a"b"c"d" 实际上也是最小符合替换过 "b" -> ...; "d" -> ... 的意思 而不会尝试弄 a" ....(包括"的字符集.)... "
要不然为什么VSCode的预览是正确的结果……
Regex 真是乱,为什么
(*?) 就叫最小符合,我还以为是 (.*)? 的意思呢。Forwarded from dnaugsuz
> /<(.*)>/.exec("<abc><def>")
[ '<abc><def>',
'abc><def',
index: 0,
input: '<abc><def>',
groups: undefined ]
> /<(.*)>/y.exec("<abc><def>")
[ '<abc><def>',
'abc><def',
index: 0,
input: '<abc><def>',
groups: undefined ]
弄错了,应该是VSCode的默认和其他有些不一样Forwarded from NekoOverflow
let 您的群组地位升级成;(您的群组地位升级成 = () => 您的群组地位升级成())()
Forwarded from dnaugsuz
()=>f() 里面的 f 作用域解析是动态的,所以不会找不到引用
在 Kotlin 写递归函数是可以的,可是这样的变量是不可能的,比如
在 Kotlin 写递归函数是可以的,可是这样的变量是不可能的,比如
val f: () -> Unit = { f() }
就不行error: variable 'f' must be initialized
val f: () -> Unit = { f() }
^
Forwarded from dnaugsuz
typealias PredicateOn<T> = T.() -> Boolean
typealias Producer<R> = R
fun <R> retry(n: Int, terminate: PredicateOn<T> = { true }, op: Producer<R?>): R? {
for (_i in 1..n) {
val res = op() ?: return null
if (terminate(res)) return res
}
return null
} 这么写岂不是也可以……
骚操作一点(不建议)甚至可以这么写
fun <R> retry(n: Int, terminate: PredicateOn<T> = { true }, op: Producer<R?>): R? {
for (_i in 1..n) {
val res = op() ?: return null
res.takeIf(terminate)?.let { return it }
}
return null
} 写成Java一样意义不明的风格是哪般……
真鼓吹数学的人都去学抽象代数机器证明了,次一点的也搞范畴论Monad学descriptive甚至逻辑式去了,应用编程就写好看点,为什么起名字喜欢起数学糟粕形式的名字……
难道还真应验了王某人的那句话『你越是看不懂越觉得自己智商低、越觉得我牛逼』……
也可以 functional inline
加个 inline 就行,然后如果报错就继续加 crossinline……