Hypercube
Hypercube
当用鼠标上下拖动把魔方翻到“背面”时,左右的拖动就反了,感觉很不自然。我见到过在任何角度都能自然地拖动的设计,在我的理解中这应该需要用四元数来表示视角并计算拖动(然而我并不懂这之后的数学了……
I have read the code but cannot figure out why `:set -interactive-print=f` doesn't work. Could anyone please give me a pointer? It works in GHCi: ``` *Main Paths_global_project> :m +Prelude...
I think rank 2 polymorphism is a must-have for `callCC`, or this code will not compile: ```haskell f :: Int -> String f x = (`runCont` id) $ callCC $...
将 token 换成 libsodium 生成的签名(含消息明文)的十六进制表示。好处: - 避免和难用且危险的 openssl 打交道 - 不用搞无意义的 cert,只需要一对公私钥 - 不用手工拆解 id 和签名 - token 验证逻辑在其他语言中更易于实现,避免出错 - 避免选手因为 base64 字符问题被坑 - token 是确定性的,一个人只对应一个 token
I wish to be able to copy-paste an entire module's code, only stripping the `module...where` part at the beginning, and run it in one cell. This can greatly help debugging,...
# Steps to reproduce Cell 1: ```haskell :extension TemplateHaskell QuasiQuotes import PyF ``` Cell 2: ```haskell [fmt|a|] [fmt|b|] ``` Cell 3: ```haskell [fmt|a|] [fmt| b |] ``` Cell 4: ```haskell...
Is it possible to support interrupting? I wish an async exception could be sent to the running thread when I click "interrupt the kernel".
I wonder is there any specific reason all those `ihaskell-*` packages are not submitted to Stackage? In my workflow, I build and install a version of IHaskell locally, and also...
If I use `ihaskell install --stack` to install kernel, should it uses stack's `ghc-pkg` instead of tries to find in `$PATH`?
```haskell a = do let b = do -- cursor should go here -- not here ``` In the example, `let` can be changed to `where`, `do` can be changed...