由买买提看人间百态

topics

全部话题 - 话题: cond
1 2 3 4 5 6 7 8 下页 末页 (共8页)
w*******y
发帖数: 60932
1
Discount Mags
In case you missed these on the banner attachment
Men's Health Magazine:
http://www.discountmags.com/product/5765/men-s-health
$7.49 per year with code SDMAGS up to 3 years
Conde Nast Traveler:
http://www.discountmags.com/product/4498/conde-nast-traveler
$4.99 per year with code SDMAGSup to 3 years
Weight Watchers:
http://www.discountmags.com/product/5431/weight-watchers
$3.99 per year with code SDMAGSup to 4 years
w*y
发帖数: 77
2
来自主题: Living版 - 求教:Cond 是否需要做inspection
相中了一个cond,在一楼,有两年的warranty. 卖方提供的白蚁报告,我是否还需要做
home inspection? 谢谢!
M*********s
发帖数: 1086
3
来自主题: Statistics版 - 求助: STATA CODE 转 SAS CODE
谁能帮我把STATA CODE 翻译成SAS 的? 多谢!
gen byte dadrsn_cheat = dad_fs26_2_a1;
gen byte dadrsn_cheatonlyr = cond(dadrsn_cheat==1 & dad_fs26_2_a2==1,1, cond
(dadrsn_cheat ==.,.,0));
gen byte momrsn_cheatr = momrsn_cheatonlyr + momrsn_cheatboth;
gen momrsn_dadfaultany = cond(momrsn_dadfaultcnt==. | momrsn_dadfaultcnt==0,
momrsn_dadfaultcnt,1);
m_respond15 = cond(mom_sex==.,0,1);
mrsn_dadfaultcntNT = cond(mom_respond15==0,., cond(momrsn_dadfaultcnt==.,0,
momrsn_dadfaultcnt));
gen byte dadrsn_dadfaultonly... 阅读全帖
t**r
发帖数: 3428
4
You have two threads one printing even numbers in order and other odd
numbers. Design an algorithm so that it prints numbers in natural order
#include
#include
pthread_mutex_t mlock=PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond=PTHREAD_COND_INITIALIZER;
int flag=0;
void *EVEN(void *param);
void *ODD(void *param);
int main()
{
pthread_t etid,otid;
pthread_create(&etid,NULL,EVEN,NULL);
pthread_create(&otid,NULL,ODD,NULL);
pthread_exit(NULL);
}
void *EVEN(void *param)
{
int x=0... 阅读全帖
c*********r
发帖数: 1312
5
来自主题: Biology版 - 寄生虫与哮喘、过敏以及健康
上次在某个帖子里提到一个观点:
“还是听那个PI说,有人把免疫系统分为两大分支,一支负责监视寄生虫病原体什么的
,另一支和过敏啥的相关;这两分支相互平衡。最近有报道有人在过敏还是哮喘患者体
内注射寄生虫(其中包括他/她自己,这让我想起了Marshall和Morris),来加强前一
个分支抑制后一个分支,结果治好了过敏还是哮喘。。。下一步他/她要做大规模的试
验。。。这个只是听说而已,等他回来了,还需要查证查证。”
那个PI回来了,问他要消息来源,他说只是听到新闻,不知道是不是正式的文章发表。
于是自己查了一查,他说的那个目前还没找到,但找到几个有意思的报道。
先贴个这个:What Do Worms Have to Do With Asthma?
http://news.sciencemag.org/sciencenow/2011/02/what-do-worms-hav
WASHINGTON, D.C.—Parasites get a bad rap for a good reason. They cause a
litany of diseases with a terrifying... 阅读全帖
a******6
发帖数: 78
6
来自主题: Statistics版 - sas sql proc问题请教
*********************************************
proc sql;
create table ratio_anl as
select a.day, a.gel, a.cond as cond1, b.cond as cond2,
a.cond || ':' || b.cond as comp,
case b.cond when 'A' then 0.25
when 'B' then 0.5
when 'C' then 1
when 'D' then 1.5
when 'E' then 2
end as pr_ratio,
a.sas_avg as sas_avg1, a.sas_sd as sas_sd1,
b.sas_avg as sas_avg2, b.sas_sd as sas_sd2,
a.ratio, ( a.sas_sd**2 + (a.ratio*b.
b**a
发帖数: 51
7
家庭作业,要求用CDR 和 CAR 递归求一个非空数组的Median,巨多限制,具体如下,
请大牛帮忙,多谢。
Write a function median in Scheme that takes a nonempty list L of positive
integers (zero is not considered a positive integer) and other auxiliary
parameters of your choice. The list L is flat (i.e., it does not contain
sublists) and it is sorted in ascending order. If the length of list L is
odd, the function median returns the median element in the list, i. e. , the
middle number that divides the list into two halves of equal length so t... 阅读全帖
w*******y
发帖数: 60932
8
Not sure if this price will stick at $40 but it's lower than everywhere else
that's selling this game for $60 on google products:
http://www.google.com/products/catalog?q=Majin And The Forsaken Kingdom&hl=en&cid=17298666414908779901&ei=XKTZTO_wE4P4MaOE8egF&sa=button&ved=0CAkQgggwADgA#cond=1
#cond=1" rel="nofollow" target="_blank" onclick="_gaq.push(['_trackEvent', '
thread', 'click', '2361889 - price-drop-majin-and-the-forsaken-kingdom-
preorder-ps3-40-fs']);">google products [google products:
h... 阅读全帖
w*******y
发帖数: 60932
9
Great price...next cheapest price on google products:
http://www.google.com/products/catalog?q=Olympus Stylus 9000&hl=en&prmd=ivs&resnum=1&um=1&ie=UTF-8&cid=3912488604220734939&sa=X&ei=tLTRTMzBCcKclgeS2NWADQ&ved=0CFgQgggwAA#cond=1|scoring=r
#cond=1%7Cscoring=r" target="_blank">google products [google products:
http://www.google.com/products/catalog?q=Olympus Stylus 9000&hl=en&prmd=ivs&resnum=1&um=1&ie=UTF-8&cid=3912488604220734939&sa=X&ei=tLTRTMzBCcKclgeS2NWADQ&ved=0CFgQgggwAA#cond=1|scoring=r
#... 阅读全帖
m*******5
发帖数: 40
10
来自主题: Military版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
m*******5
发帖数: 40
11
来自主题: Family版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
m*******5
发帖数: 40
12
来自主题: Returnee版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
m*******5
发帖数: 40
13
来自主题: UnitedKingdom版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
m*******5
发帖数: 40
14
来自主题: Minnesota版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
t********e
发帖数: 64
15
来自主题: Cycling版 - 请帮忙看一下哪个自行车好些
新手打算开始骑车,主要是到trial骑,身高178。在当地的craigslist上找了些车,请
帮忙看一下哪个车比较靠谱,谢谢。
(1) 2005 Cannondale Chase - $450
Chase 2 dirt jump bike. Excellant condition, Disc brakes, single speed,
American made. New disc brakes freshly rebuildt manitou from shock. You will
also be getting 2 sets of tires, 2 seat posts, and 2 seats so you can set
it up for off road or park riding.
(2) 2007 Kona Front suspension mt. bike with DISCS!! -$400
all Shimano gearing and rapid fire shifters, front and back disc brakes,
front and ba... 阅读全帖
m*******5
发帖数: 40
16
来自主题: WaterWorld版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我现在其实也收到了UMN的Applied econ的offer,两个都是我喜
欢的研究方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像
world bank那样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
p******s
发帖数: 938
17
【 以下文字转载自 Programming 讨论区 】
【 原文由 phageous 所发表 】
要在UNIX下写一user level的thread library,得能实现monitor的功能,
比如mutex_lock(mutex_t *mutex), cond_signal(cond_t *cond)等,
现在有如下问题:
因为需要建立一批queue,如ready queue, cond queue, lock queue等。
请问怎样保存访问这些queue的指针?因为如cond_signal之类的函数是void的,
而且只有cond_t *cond这一个参数。ready queue该如何创建?
在monitor里的函数怎么访问这些queue?
r****y
发帖数: 1437
18
来自主题: Computation版 - a puzzle about truncated SVD
For a real matrix A, its condition number is cond(A) = x, suppose
x is a very large number.
Do SVD, let A = U*S*V'. If A is (m, n) matrix, U is (m, m) unitary
matrix, V is (n, n) unitary matrix, and S(m, n) diagonal matrix and
s11 >= s22 >= s33 ...
Truncated SVD means now let A1 = U(m, k) * S(k, k) * V(n, k)', where
k But does it always true that cond(A') <= cond(A)?
Thanks in advance.
m*******5
发帖数: 40
19
来自主题: Economics版 - 犹豫:US v.s UK
最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
t*******i
发帖数: 255
20
来自主题: Economics版 - 犹豫:US v.s UK
Cam的Land Economy不是搞纯经济学的,邓亚萍就是那里拿到学位的
他们的研究方向类似于商学院/管理学院

最近才收到Cambridge University的cond offer,是land economy的phd,比较犹豫要
不要去。一是因为是cond offer里面语言要求太高,我两年前的成绩达不到要求,不过
不知道在美国读了两年硕士后是不是能waive掉这个cond;另一方面,我听很多人说cam
的land economy不好,我也收到了UMN的Applied econ的offer,两个都是我喜欢的研究
方向。所以想请教一下这两方面该怎么作选择,如果我以后是想去一些像world bank那
样的international NGO而不是学校的话。
另外,cam land economy的phd有没有奖学金的啊?
谢谢!
a****r
发帖数: 71
21
请教一个《Carpenter's Complete Guide to the SAS Macro》上SAS macro的例子。
Chapter 6, Page 111 有一个根据data A1 里两个变量 station 和 depth 生成 一系
列ACSII文件的macro的例子;
**********************;
***6.2.1d
***%DOIT
**********************;
* 1993 Water quality data.
*************************************************;
data a1
(keep=datetime station depth temp ph do cond salinity);
input datetime datetime13. @15 station $3.
depth temp ph do cond salinity;
label datetime = 'date and time of sample collection'
st... 阅读全帖
s********1
发帖数: 54
22
______________________________________________
I got the following error message:
______________________________________________
ERROR: Insufficient authorization to access C:\Program Files\SASHome\
SASFoundation\9.3\TS30.dat
______________________________________________
My code is as follows:
______________________________________________
**********************;
***6.2.1d
***%DOIT
**********************;
* 1993 Water quality data.
*************************************************;
data a1
... 阅读全帖
s********0
发帖数: 71
23
来自主题: Military版 - 模重复平方算法
在RSA算法里头经常要用到“求x的n次方模m”这样的过程,通常使用O(log(n))的模重
复平方算法来实现,提高效率。
其实这是大二学的《信息安全数学基础》里面的内容,那时为了考试需要(手算+写出
很罗嗦的过程),还专门写了代码放在Blog空间里考试的时候用—……
同样O(log(n))的递归算法其实很容易理解:
/* C */
int fast_mod(int x, int n, int m)
{
if (n == 0)
return 1;
else if (n % 2 == 0)
return square(fast_mod(x, n / 2, m)) % m;
else
return x * fast_mod(x, n - 1, m) % m;
}
#Python
fast_mod = lambda x, n, m: 1 if n == 0 else fast_mod(x, n / 2, m) ** 2 % m
if n % 2 == 0 else x * fast_mod(x, n - 1, m) % m... 阅读全帖
r*****g
发帖数: 434
24
来自主题: Military版 - 模重复平方算法
这么学术的东东放错地方了吧

在RSA算法里头经常要用到“求x的n次方模m”这样的过程,通常使用O(log(n))的模重
复平方算法来实现,提高效率。
其实这是大二学的《信息安全数学基础》里面的内容,那时为了考试需要(手算+写出
很罗嗦的过程),还专门写了代码放在Blog空间里考试的时候用—……
同样O(log(n))的递归算法其实很容易理解:
/* C */
int fast_mod(int x, int n, int m)
{
if (n == 0)
return 1;
else if (n % 2 == 0)
return square(fast_mod(x, n / 2, m)) % m;
else
return x * fast_mod(x, n - 1, m) % m;
}
#Python
fast_mod = lambda x, n, m: 1 if n == 0 else fast_mod(x, n / 2, m) ** 2 % m
if n % 2 == 0 else x * fast_mod(x... 阅读全帖
w*******e
发帖数: 15912
25
https://www.zhihu.com/question/20822815
"我有什么资格说话呢?如果你要了解我的本事,真的很简单:我最精要的代码都放在
GitHub 上了。但是除非接受过专门的训练,你绝对不会理解它们的价值。你会很难想
象,这样一片普通人看起来像是玩具的 40 行 cps.ss 代码,融入了我一个星期的日日
夜夜的心血,数以几十计的推翻重写。这段代码,曾经耗费了一些顶尖专家十多年的研
究。一个教授告诉我,光是想看懂他们的论文就需要不止一个月。而它却被我在一个星
期之内闷头写出来了。我是在说大话吗?代码就摆在那里,自己去看看不就知道了。当
我死后,如果有人想要知道什么是我上半生最重要的“杰作”,也就是这 40 行代码了
。它蕴含的美,超越我给任何公司写的成千上万行的代码。"
有没有人来说说这个东西,我想知道他有没有说大话。
附代码:
;; A simple CPS transformer which does proper tail-call and does not
;; duplicate contexts for if-expressions.
;; auth... 阅读全帖
w*******e
发帖数: 15912
26
据说99%的码工见了王垠的40行code之后五花大绑自惭形秽:
王垠40行代码解析
http://wineway.pw/project1/2017/04/24/1/
;; A simple CPS transformer which does proper tail-call and does not
;; duplicate contexts for if-expressions.
;; author: Yin Wang ([email protected]/* */)
(load "pmatch.scm")
(define cps
(lambda (exp)
(letrec
([trivial? (lambda (x) (memq x '(zero? add1 sub1)))]
[id (lambda (v) v)]
[ctx0 (lambda (v) `(k ,v))] ; tail context
[fv (let ([n -1])
(lambd... 阅读全帖

发帖数: 1
27
来自主题: Military版 - 数据说话:长江水深
Naval History and Heritage Command
Naval History and Heritage Command
Open for Print Social Media
Search
Home
Research
Our Collections
Visit Our Museums
Browse by Topic
News & Events
Get Involved
About Us
DANFS » S » South Dakota I (Armored Cruiser No. 9)
Tags
Related Content
Topic
Document Type
Ship History
Wars & Conflicts
nhhc-wars-conflicts:world-war-i
Navy Communities
File Formats
Image (gif, jpg, tiff)
Location of Archival Materials
South Dakota I (Armored Cruiser No. 9)
1902... 阅读全帖
f*******e
发帖数: 3433
28
关于pre-existing cond, 我倒同意gopcare, 就是cover pre-existing cond, 但是要求
保险不能中途断,不能有病才买保险,没病就不买。

够。
g*******y
发帖数: 1930
29
来自主题: JobHunting版 - 一道题
http://graphics.stanford.edu/~seander/bithacks.html
Here you can study some bit manipulation tricks to circumvent branching.
Since some one mentioned the short circuit feature of "||" operator. I'm wondering if there's still some branching code generated by the compiler?
Even if no branching is allowed at all, I think it shouldn't matter:
branching is simply:
next PC = (cond)? PC1:PC2;
which could be re-written as:
nextPC = -cond & (PC1^PC2)^PC1;

think
t****a
发帖数: 1212
30
来自主题: JobHunting版 - Wildcard Matching题求助
这题怎么用greedy来做呢?DP的话是n*m计算量
memoize dp的解
(defn is-match [str1 str2]
(let [str1a (str str1 \a)
str2a (str str2 \a)
n1 (count str1a)
n2 (count str2a)
seq2 (apply concat (repeat n1 (range n2 -1 -1)))
seq1 (mapcat #(repeat n2 %) (range n1 -1 -1))
]
(do
(def is-match-rec
(memoize
(fn [i1 i2]
(let [l1 (- n1 i1)
l2 (- n2 i2)]
(cond (and (== 0 l1) (== 0 l2)) true
(or (=... 阅读全帖
s*****r
发帖数: 43070
31
【 以下文字转载自 Military 讨论区 】
发信人: wsnonline (卫所南次郎-哥们儿要火啦!), 信区: Military
标 题: 王垠的[40 行代码]: 普通琐男码工们都跪安吧!
发信站: BBS 未名空间站 (Thu May 19 01:59:08 2016, 美东)
https://www.zhihu.com/question/20822815
"我有什么资格说话呢?如果你要了解我的本事,真的很简单:我最精要的代码都放在
GitHub 上了。但是除非接受过专门的训练,你绝对不会理解它们的价值。你会很难想
象,这样一片普通人看起来像是玩具的 40 行 cps.ss 代码,融入了我一个星期的日日
夜夜的心血,数以几十计的推翻重写。这段代码,曾经耗费了一些顶尖专家十多年的研
究。一个教授告诉我,光是想看懂他们的论文就需要不止一个月。而它却被我在一个星
期之内闷头写出来了。我是在说大话吗?代码就摆在那里,自己去看看不就知道了。当
我死后,如果有人想要知道什么是我上半生最重要的“杰作”,也就是这 40 行代码了
。它蕴含的美,超越我给任何公司写的成千上万行的代码。"
... 阅读全帖
g*****u
发帖数: 14294
32
来自主题: Stock版 - 俺的NVDA put开始活了。
Given NVDA is falling at least 1% on a day, the conditional mean and sigma
turn out to be:
cond. mean = -2.4%
cond. sigma= 3.3%
87% chance the daily return will be in interval (-6%, 0.1%).
For day trade, taking profit at EMA50 just now seems a plausible approach, because at only one out of five odds one would do any better than that.
r*******u
发帖数: 8732
33
来自主题: HongKong版 - 最佳旅遊城市 港排第9
【綜合報道】在旅遊領域享負盛名的英國旅遊雜誌Conde Nast Traveller,日前公布讀
者心目中的最佳旅遊目的地。香港在多個項目的評分中皆有上榜,其中在最佳旅遊城市
排名中更打入十大,排行第9,比去年躍升11位,是自2001年以來最高的。
躍升11位 8年來最高
Conde Nast Traveller每年都會舉行綜合旅遊選舉,今年已經是第12屆。選舉分為最佳
旅遊國家、城市、最佳酒店、航空公司等多個項目。香港在多個分項中皆榜上有名,其
中於最佳旅遊城市排行第9、最佳機場排第5、在全球最佳旅遊島嶼中排第15。而在全球
最佳商務酒店中,香港的文華東方酒店更加奪下亞軍、半島酒店亦排第17。
該網站在介紹香港的頁面中指出,香港為西方進入中國及遠東之門,除了有英國的殖民
歷史外,亦有豐富的中國文化及傳統。作為全球其中一個最繁忙的商業中心,香港是個
理想的目的地,可享受購物樂趣及刺激的夜生活。
西西里島獲選最佳勝地
本年度的最佳旅遊勝地為意大利的西西里島,它力壓馬爾代夫、紐約等地取得第一名。
雜誌方面指,西西里島氣候宜人,食物一流之餘人們還非常熱情。
至於最受歡迎旅遊國家方面則為意大利
a*******k
发帖数: 25
34
2005 TOYOTA CAMRY XLE, in GREAT condition
Black color
Milege: 55,000, mostly on highway
Power seats
Leather seats
Power sunroof
Asked price: $13,800
If interested, please call 765-404-2836.
Other Standard Equipment Details
Engine Specifications
Type: Gas I4
Size: 2.4L/146
Horsepower: 160 @ 5700 RPM
Torque: 163 @ 4000 RPM
Drive Train
Drive Train: Front Wheel Drive
Transmission: 5 speed Automatic w/OD
Safety
Air Bag-Driver-Front
Air Bag-Passenger-Front
Air Bag-Side-Body-Front
Air Bag-Side-Head-Fro... 阅读全帖
a*****s
发帖数: 5562
35
【 以下文字转载自 Military 讨论区 】
发信人: wsnonline (卫所南次郎-哥们儿要火啦!), 信区: Military
标 题: 王垠的[40 行代码]: 普通琐男码工们都跪安吧!
发信站: BBS 未名空间站 (Thu May 19 01:59:08 2016, 美东)
https://www.zhihu.com/question/20822815
"我有什么资格说话呢?如果你要了解我的本事,真的很简单:我最精要的代码都放在
GitHub 上了。但是除非接受过专门的训练,你绝对不会理解它们的价值。你会很难想
象,这样一片普通人看起来像是玩具的 40 行 cps.ss 代码,融入了我一个星期的日日
夜夜的心血,数以几十计的推翻重写。这段代码,曾经耗费了一些顶尖专家十多年的研
究。一个教授告诉我,光是想看懂他们的论文就需要不止一个月。而它却被我在一个星
期之内闷头写出来了。我是在说大话吗?代码就摆在那里,自己去看看不就知道了。当
我死后,如果有人想要知道什么是我上半生最重要的“杰作”,也就是这 40 行代码了
。它蕴含的美,超越我给任何公司写的成千上万行的代码。"
... 阅读全帖
a*******k
发帖数: 25
36
来自主题: Wisconsin版 - FOR SALE: 2005 TOYOTA CAMRY XLE
2005 TOYOTA CAMRY XLE, in EXCELLENT condition
Black color
Milege: 54,500, mostly on highway
Power seats
Leather seats
Power sunroof
Asked price: $13,800
If interested, please email m****[email protected] and leave your contact
information. I will call you back.
Thank you.
Other Standard Equipment Details
Engine Specifications
Type: Gas I4
Size: 2.4L/146
Horsepower: 160 @ 5700 RPM
Torque: 163 @ 4000 RPM
Drive Train
Drive Train: Front Wheel Drive
Transmission: 5 speed Automatic w/OD
Safety
Air Bag-Driv... 阅读全帖
h*******e
发帖数: 8370
l******d
发帖数: 168
38
【 以下文字转载自 Indiana 讨论区 】
发信人: antiquark (cozysunshine), 信区: Indiana
标 题: 2005 TOYOTA CAMRY XLE, in GREAT condition
发信站: BBS 未名空间站 (Thu Oct 28 12:10:21 2010, 美东)
2005 TOYOTA CAMRY XLE, in GREAT condition
Black color
Milege: 55,000, mostly on highway
Power seats
Leather seats
Power sunroof
Asked price: $13,800
If interested, please call 765-404-2836.
Other Standard Equipment Details
Engine Specifications
Type: Gas I4
Size: 2.4L/146
Horsepower: 160 @ 5700 RPM
Torque: 163 @ 4000 RPM
Drive Train
Driv... 阅读全帖
H********g
发帖数: 43926
39
【 以下文字转载自 Military 讨论区 】
发信人: wsnonline (卫所南次郎-哥们儿要火啦!), 信区: Military
标 题: 王垠的[40 行代码]: 普通琐男码工们都跪安吧!
发信站: BBS 未名空间站 (Thu May 19 01:59:08 2016, 美东)
https://www.zhihu.com/question/20822815
"我有什么资格说话呢?如果你要了解我的本事,真的很简单:我最精要的代码都放在
GitHub 上了。但是除非接受过专门的训练,你绝对不会理解它们的价值。你会很难想
象,这样一片普通人看起来像是玩具的 40 行 cps.ss 代码,融入了我一个星期的日日
夜夜的心血,数以几十计的推翻重写。这段代码,曾经耗费了一些顶尖专家十多年的研
究。一个教授告诉我,光是想看懂他们的论文就需要不止一个月。而它却被我在一个星
期之内闷头写出来了。我是在说大话吗?代码就摆在那里,自己去看看不就知道了。当
我死后,如果有人想要知道什么是我上半生最重要的“杰作”,也就是这 40 行代码了
。它蕴含的美,超越我给任何公司写的成千上万行的代码。"
... 阅读全帖
H********g
发帖数: 43926
40
【 以下文字转载自 Military 讨论区 】
发信人: wsnonline (卫所南次郎-哥们儿要火啦!), 信区: Military
标 题: Re: 连王垠都被P了,老中码农这行真是没得混 (转载)
发信站: BBS 未名空间站 (Thu May 11 00:34:42 2017, 美东)
据说99%的码工见了王垠的40行code之后五花大绑自惭形秽:
王垠40行代码解析
http://wineway.pw/project1/2017/04/24/1/
;; A simple CPS transformer which does proper tail-call and does not
;; duplicate contexts for if-expressions.
;; author: Yin Wang ([email protected]/* */)
(load "pmatch.scm")
(define cps
(lambda (exp)
(letrec
([trivial? (lambda (x) (memq x '(zer... 阅读全帖
s*********b
发帖数: 815
41
来自主题: CS版 - 问个common lisp的问题
给的题目描述不足啊。比如说(a ! ! c)怎么算呢?如果只是满足给出的两个例子,就
是普通的递归阿。对CL不熟,就用Scheme了:
(define match
(lambda (pattern source)
(cond
((null? pattern) '())
((null? source) '())
((eq? (car pattern) '?) (car source))
((and (eq? (car pattern) '!)
(cond
((null? (cdr source)) source)
((or (null? (cdr pattern)) (eq? (cadr pattern) (cadr source)))
(list (car source)))
(else (cons (car source) (match pattern (cdr source)))))))
j***o
发帖数: 2842
42
来自主题: Linux版 - 在windows系统上安装emacs24
我用linux的主要原因是要用latex写文章和slides,emacs具有很多很多软件不具备的
优势,主要是lisp语言的支持,能做很多的智能选择,定义快捷键等,这里就不多说了
linux的主要问题是驱动和一些乱七八糟的问题,还有不能用office系列。如果能安装
emacs在windows上,可以说是一个完美的解决计划。
用下面的方法来安装,就能实现,不建议任何从源码编译的安装方法,太麻烦了。
第一步,安装miktex系统,这个就是latex所需要的所有软件包,很简单,只要等就可
以了,不过,建议你安装完整版本。
第二步,下载emacs系统的binary for windows,地址是
http://ftp.gnu.org/gnu/emacs/windows/
最好安装最新版本:emacs-24.3-bin-i386.zip 是最新版本。解压到c:\program files
\下面,创建一个文件夹emacs-24.3
然后到产生的bin文件夹下运行addpm.exe会在启动文件夹下面安装icon等
第三步,安装gsview和ghostscript,到相应的网站下载安装即可,默认安... 阅读全帖
j***o
发帖数: 2842
43
【 以下文字转载自 Linux 讨论区 】
发信人: jigao (左季高), 信区: Linux
标 题: 在windows系统上安装emacs24
发信站: BBS 未名空间站 (Sun Apr 21 13:20:33 2013, 美东)
我用linux的主要原因是要用latex写文章和slides,emacs具有很多很多软件不具备的
优势,主要是lisp语言的支持,能做很多的智能选择,定义快捷键等,这里就不多说了
linux的主要问题是驱动和一些乱七八糟的问题,还有不能用office系列。如果能安装
emacs在windows上,可以说是一个完美的解决计划。
用下面的方法来安装,就能实现,不建议任何从源码编译的安装方法,太麻烦了。
第一步,安装miktex系统,这个就是latex所需要的所有软件包,很简单,只要等就可
以了,不过,建议你安装完整版本。
第二步,下载emacs系统的binary for windows,地址是
http://ftp.gnu.org/gnu/emacs/windows/
最好安装最新版本:emacs-24.3-bin-i386.zip 是最新版本。解... 阅读全帖
e********y
发帖数: 935
44
来自主题: Physics版 - 2010 Nobel physics
Bernevig and Zhang
http://arxiv.org/abs/cond-mat/0504147
这就是我说的比Kane和Mele晚五个月的那篇,实验上没能验证
你说的Bernevig Hughes and Zhang是发在Science上的,
这篇http://arxiv.org/abs/cond-mat/0611399

a
b***a
发帖数: 377
45
是这个研究范围的: cond-mat.mtrl-sci section of arXiv。 有哪位能帮我通过一下
这个 endorsement ,方便的话能给我个邮箱吗?我把那个 endorsement request 发给
您。。。
想要在上面发文章,收到arXiv的这封邮件:
*** should forward this e-mail to someone who's registered as an
endorser for the cond-mat.mtrl-sci (Materials Science) subject class of
arXiv.)
C*****n
发帖数: 1872
46
来自主题: Statistics版 - R中garchFit函数问题请教
如果我用:
m1=garchFit(~arma(1,0)+garch(1,1),data=logr,cond.dist="std")
没有问题
但是改成
i=1
m1=garchFit(~arma(i,0)+garch(1,1),data=logr,cond.dist="std")
会报错
我google了一下,有人问同样的问题,但是没搜到解答
呵呵,不好意思,麻烦了
w*******y
发帖数: 60932
47
Buy.com
Samsung BD-C7500 Blu-ray Disc Player
$145.99 (see price at final checkout)
Free shipping (must select budget shipping)
Internet TV, which delivers the best of the web, straight to your HDTV, w/
downloadable widgets & apps ..Blockbuster, Facebook, YouTube
Next best price on Google Products:
http://www.google.com/products/catalog?q=Samsung BD-C7500&hl=en&cid=4395114740169238679&ei=vN5fTPWJJ4yENqbdhMQK&sa=button&ved=0CA4QgggwATgA#cond=1
#cond=1" target="_blank">Google Products [Google Prod
w*******y
发帖数: 60932
48
i found this in all-freemagazine s.com
"Allure, W, Lucky, Self, Teen Vogue One Year Free Magazine Subscription from
Conde Nast
10/05/2010
This is a great offer we found on the net. We are not 100% sure it will work
, but enter a random 6 letter code tht you make up and you may have success.
Good luck.
Allure, W, Lucky, Self, Teen Vogue One Year Free Magazine Subscription from
Conde Nast:
http://www.condenastdirect.com/PGPromotion/index.cfm
worked for me for a random 6 letter word.hope it works ... 阅读全帖
w*******y
发帖数: 60932
49
Lowest price I have seen for these headphones
Electronics Expo
Sennheiser RS160 Wireless Headphones
$200 - $105 with code HB
- $15 rebate:
http://images10.newegg.com/uploadfilesfornewegg/rebate/SH/Sennheiser26-106-299Nov01Nov3010lt12.pdf
= $80
Note: the rebate is not linked on the EE website, but Electronics Expo is an
Authorized Dealer:
http://www.sennheiserusa.com/serviceandsupport_authorized-dealers_online-dealers_list
of Sennheiser products which is what is required for the rebate
ship... 阅读全帖
1 2 3 4 5 6 7 8 下页 末页 (共8页)