Padé Approximation and its Applications Amsterdam 1980 - M. G. de Bruin, H. van Rossum (1981) ([1], [2], [3], [4], [5], [6],
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
import Numeric | |
main = putStrLn $ showHex (fastpow c d n) "" | |
c = 0x599f55a1b0520a19233c169b8c339f10695f9e61c92bd8fd3c17c8bba0d5677e | |
d = 0x431d844bdcd801460488c4d17487d9a5ccc95698301d6ab2e218e4b575d52ea3 | |
n = 0x64ac4671cb4401e906cd273a2ecbc679f55b879f0ecb25eefcb377ac724ee3b1 | |
fastpow :: Integer -> Integer -> Integer -> Integer | |
fastpow base exp modulo = fastpow' (base `mod` modulo) exp modulo 1 |
- Plain Strings (207):
foo
- Anchors (208):
k$
- Ranges (202):
^[a-f]*$
- Backrefs (201):
(...).*\1
- Abba (169):
^(.(?!(ll|ss|mm|rr|tt|ff|cc|bb)))*$|^n|ef
- A man, a plan (177):
^(.)[^p].*\1$
- Prime (286):
^(?!(..+)\1+$)
- Four (199):
(.)(.\1){3}
- Order (198):
^[^o].....?$
- Triples (507):
(^39|^44)|(^([0369]|([147][0369]*[258])|(([258]|[147][0369]*[147])([0369]*|[258][0369]*[147])([147]|[258][0369]*[258])))*$)
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
<17:10:44>-eccstartup:~/.stack$ stack upgrade | |
Fetched package index. | |
Populated index cache. | |
stack-0.1.3.1: download | |
GHC version mismatched, found 7.10.2 (x86_64), but expected version 7.8.4 (x86_64) (based on resolver setting in /var/folders/tb/wpytxqpx111fsxk0tg1zsmgm0000gn/T/stack-upgrade30719/stack-0.1.3.1/stack.yaml). Try running stack setup | |
<17:11:28>-eccstartup:~/.stack$ stack --install-ghc upgrade | |
Fetched package index. | |
Populated index cache. | |
Already downloaded. | |
Installed GHC. |
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
import Data.List | |
mylines = ["ABEHKNQaqz+/","ACFILORclsx","ADGJMPZVih","BCD","EFG","HIJ","KLM","NOP","HLP","K1O","M2O","OQ","OWXYZ","QRSTUV","abcdefgh","aijklmnop","qrstuv","zyx","+-*","PWRbjq","PXSckry-/","PYTdmtx","ZUehuw","Vfov","igp"] | |
mypoints = "abcdefghijk" | |
connected a b = belong [a,b] mylines | |
onaline a b c = belong [a,b,c] mylines | |
belong x xs = any (\y -> sub x y) xs | |
sub x y = all (\z -> elem z y) x | |
triangle [a, b, c] = connected a b && connected a c && connected b c && not (onaline a b c) | |
triplepoints = nub [sort [a,b,c] | a <- mypoints, b <- mypoints, b /= a, c <- mypoints, c /= a, c /= b] | |
main = putStrLn $ show $ length $ filter triangle triplepoints |
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
$ cat hackage-mirror.sh | |
``` | |
#!/bin/bash | |
cd /home/eccstartup/mirror/hackage | |
#echo "Cleaning up..." | |
# rm 00-index.tar.gz | |
mkdir -p package | |
echo "Downloading index..." | |
rm index.tar.gz | |
axel http://hdiff.luite.com/packages/archive/index.tar.gz -o index.tar.gz || curl http://hackage.haskell.org/packages/index.tar.gz -o index.tar.gz |
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
发信人: SBH (木偶TEDDY), 信区: XJTUnews | |
标 题: 某些交大同学的神经时刻是紧绷的 | |
发信站: 兵马俑BBS (Wed Jun 24 09:45:44 2015), 本站(bbs.xjtu.edu.cn) | |
只要说一句交大不是 | |
立马就有一大群神经紧绷的人跳起来骂骂骂骂 | |
立马把清华北大剑桥等名校搬出来骂骂骂骂 |