r*g 发帖数: 3159 | 1 班上有没有玩过J语言的?有什么评论?
看底下这个算24,没有其它的能写得更短了吧?
http://rosettacode.org/wiki/24_game/Solve#J
perm=: (A.&i.~ !) 4
ops=: ' ',.'+-*%' {~ >,{i.each 4 4 4
cmask=: 1 + 0j1 * i.@{:@$@[ e. ]
left=: [ #!.'('~"1 cmask
right=: [ #!.')'~"1 cmask
paren=: 2 :'[: left&m right&n'
parens=: ], 0 paren 3, 0 paren 5, 2 paren 5, [: 0 paren 7 (0 paren 3)
all=: [: parens [:,/ ops ,@,."1/ perm { [:;":each
answer=: ({.@#~ 24 = ".)@all |
|
c****e 发帖数: 1453 | 2 发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
标 题: Re: [原创] emacs和vim的区别。
发信站: BBS 未名空间站 (Mon Mar 16 14:18:17 2009)
How do you do "%" ?
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
"Go to the matching paren if on a paren; otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1))))) |
|
o****i 发帖数: 1706 | 3 It needs to parse function in Lisp format. For example...
(+ 3 4) or (* 3 4 2)
I got a something like below, but it only can parse experession like (3 + 4)
, any advice to improve this? Thanks...
mulop = do{ symbol "*"; return (SExp "*")}
<|> do{ symbol "/"; return (SExp "/")}
addop = do{ symbol "+"; return (SExp "+")}
<|> do{ symbol "-"; return (SExp "-")}
anInt = do d <- digits
ws
return $ IntExp (read d)
anSym = oneOf ['-','*','+','/',':',''','?','>','<','=']... 阅读全帖 |
|
o****i 发帖数: 1706 | 4 It need to parse function in Lisp format. For example...
(+ 3 4) or (* 3 4 2)
I got a something like below, but it only can parse experession like (3 + 4)
, any advice to improve this? Thanks...
mulop = do{ symbol "*"; return (SExp "*")}
<|> do{ symbol "/"; return (SExp "/")}
addop = do{ symbol "+"; return (SExp "+")}
<|> do{ symbol "-"; return (SExp "-")}
anInt = do d <- digits
ws
return $ IntExp (read d)
anSym = oneOf ['-','*','+','/',':',''','?','>','<','=']
... 阅读全帖 |
|
s*****g 发帖数: 5159 | 5 A more global to autosize the parentices is to do this in preambles
\newcommand{\paren}[1]{\left(#1\right)}
and in document
\paren{whatever you want to be in the parentices, can include \paren}.
insert |
|
g*****y 发帖数: 6325 | 6 我最喜欢换季了!可以买到好多便宜有好看的衣服。其实很多商家都是同样的款式稍微
改改明年又按原价卖。 我因为长
胖了,所以超喜欢boxy/oversized的衣服,可能不是很多MM的茶。见笑了。最近花了不
少银子,买了一大堆,奔的只
是些风毛菱角。 实在没有时间把所有的衣服搭配一遍。以后有时间再说。 每件衣服我
都会列出出处,有兴趣的 MM可以
看看。斑竹可以给个大包子吗? hoho.
1. 绿色上衣和裙子是Jcrew的。 毛衣是 UO的。 超爱这件上衣。柔软舒服,小松。肩
上还有很cute的扣子。买了绿色和
灰色(见图2). 螳螂裙很有质感,就是如果弯腰或者坐下就泡起来看着比较臃肿。
fisherman的 毛衣真的 是大爱!! UO 现
在$39.99卖的超快的。 我买了 黄色和卡其色。我一般穿小号。但是黄色没小号了,就
买了M号。 大大的长长的。反正
今年好这口。
毛衣: http://www.urbanoutfitters.com/urban/catalog/productdetail.jsp?
isProduct=true&color=031&navAction=jump&par... 阅读全帖 |
|
|
p****s 发帖数: 3184 | 8
(defun match-paren (arg)
"Go to the matching parenthesis if on parenthesis otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1)))))
(global-set-key "%" 'match-paren)
; however, now you have to press C-q % if you want to insert a %
; when the cursor is at a parenthesis |
|
s*******h 发帖数: 3219 | 9 【 以下文字转载自 WaterWorld 讨论区 】
发信人: paren (penren), 信区: WaterWorld
标 题: 我是电影学院毕业的,想拍部反映外F的大银幕电影
发信站: BBS 未名空间站 (Wed Aug 27 01:57:29 2014, 美东)
我是加州电影专业毕业的,毕业后拍了些小片子,我的梦想有一天能拍一部大银幕电影
,买票房的那种。我觉得外F这个题材没人拍过,像李安的背背山那样的把外F的内心纠
结挣扎展示出来。说不定能脱引而出的效果。
要是能拿奖就算是梦想实现了。 现在还在筹备素材阶段和筹款阶段,有没人愿意赞助?
拿奖感言我一定会加入你的名字的 |
|
y*******g 发帖数: 1395 | 10 sorry,被误解成装B了,那个S家是在parening版的常用说法,习惯了。。。
转发到军版来。
我一个农村娃,肯定装不了几个B的。 |
|
j******g 发帖数: 1428 | 11 【 以下文字转载自 WaterWorld 讨论区 】
发信人: paren (penren), 信区: WaterWorld
标 题: 国人形象被倒爷拉到了新low
发信站: BBS 未名空间站 (Mon Sep 22 01:07:22 2014, 美东)
今天YouTube most polular no1
http://youtu.be/Ef_BznBwktw
二手倒爷们 你们能要点脸皮吗 这种钱不赚可以吗 你看看把人家大妈搞到局子里去了
你们良心被狗吃了。你们赚的钱都是国人仅存不多的点面子换的 你不顾我们你也得顾
你的儿女对不对 你让你娃以后活的像个人行不?
我已经收集了几个典型医生护士的个人信息。如果再看到你们继续倒卖ip6 我会把你们
的信息发给苹果和移民局税务局等地方
请转二手 |
|
j******g 发帖数: 1428 | 12 【 以下文字转载自 WaterWorld 讨论区 】
发信人: paren (penren), 信区: WaterWorld
标 题: 国人形象被倒爷拉到了新low
发信站: BBS 未名空间站 (Mon Sep 22 01:07:22 2014, 美东)
今天YouTube most polular no1
http://youtu.be/Ef_BznBwktw
二手倒爷们 你们能要点脸皮吗 这种钱不赚可以吗 你看看把人家大妈搞到局子里去了
你们良心被狗吃了。你们赚的钱都是国人仅存不多的点面子换的 你不顾我们你也得顾
你的儿女对不对 你让你娃以后活的像个人行不?
我已经收集了几个典型医生护士的个人信息。如果再看到你们继续倒卖ip6 我会把你们
的信息发给苹果和移民局税务局等地方
请转二手 |
|
t*******i 发帖数: 336 | 13 说需要dependent填i539表,有几个问题不太清楚怎么填,请教一下这里的大侠。
1 Part2 Q2 Number of people included in this application
a I‘m the only applicant
b Members of my family are filing this application with me.
是不是该选a?我只有老婆一个dependent,我是不是自己应该有单独的学校填的表,不
算在这个I539申请里面?选b的话,不是变成我是老婆申请的dependent了?
2 Part3 Processing Information
Q1 I request that my current or requested status be extended until______(mm/
dd/yyyy).
这个日期填啥啊?
Q3 Is this application based on a separate petition or application to give
your spouse, child, or paren |
|
t*******i 发帖数: 4960 | 14 http://www.parashift.com/c++-faq/empty-parens-in-object-decl.ht
A big difference!
Suppose that List is the name of some class. Then function f() declares a
local List object called x:
void f()
{
List x; // Local object named x (of class List)
...
}
But function g() declares a function called x() that returns a List:
void g()
{
List x(); // Function named x (that returns a List)
...
} |
|
c**1 发帖数: 71 | 15 in leetcode, there is one question asking for longest substring with matched
parens. it is similar to this post but harder. |
|
t*o 发帖数: 2606 | 16 Update:
iwls01 MM 说 parenting 杂志上的 20% coupon可以叠加使用 (需要不同字母开头的
coupon code):
Amazon link:
http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000517101&tag=page11-20
******************************************************
发信人: iwls01 (iwls01), 信区: NextGeneration
标 题: Amazon 尿布90% off!
发信站: BBS 未名空间站 (Thu Aug 5 09:59:19 2010, 美东)
最新啊,Amazon diapers can be 90% off!
现在amazon 有30% off Subscribe & Save, 用上八月Parents 杂志上20%coupon (
starts with A), 八月Parenting 杂志上20%coupon (starts with X),and 九月
Paren |
|
w**********9 发帖数: 1058 | 17 【 以下文字转载自 Chicago 讨论区 】
发信人: windsnow2009 (风靖雪停), 信区: Chicago
标 题: 芝城西郊华人家庭联谊(Chicago Metro West Chinese Young Parents Group)
发信站: BBS 未名空间站 (Fri May 21 13:50:56 2010, 美东)
我们最近搬到芝加哥,现在住在Naperville,家里有两个孩子,一个5岁,一个1岁半
。希望能结识附近的中国家庭,一来父母们能交流育儿信息,二来孩子们也能找到玩伴。
以前在波士顿的时候加入过一个MIT学生家属组织的团体,平时大家通过Yahoo Group交
换信息,每周大家约一个时间小聚,天气好的话在室外,孩子们一起玩,家长也能交流
交流。同时也不定期的组织去博物馆,动物园的活动。在谁家里有事情的时候,在团体
里组织大家帮忙,比如生孩子的头一两周大家轮流帮忙做饭。
我们觉得挺好的,不知道这边有没有类似的组织。如果没有,我们想组织一个。如果大
家谁有兴趣,或者你身边的朋友谁有兴趣,可以和我们联系,我们可以一起来做。希望
这能成为一个长期的活动。 |
|
|
a********9 发帖数: 79 | 19 Great!
please post a link. I could not find how to join. |
|
w**********9 发帖数: 1058 | 20 谢谢大家支持,能不能讲一讲大家对这个团体有什么样的期待?我先说说自己的想法吧。
我是希望大家能通过这个平台多认识些人,一方面从中间可以找到玩得来的家庭,平时
或者周末能给孩子找个伴一起玩,另一方面,能通过大家的参与,让大家能获取些额外
的信息,包括当地组织的各种活动,让平时和周末的活动能更丰富些,再一个呢就是能
让大人也多些团体活动,不要被孩子缠得动坦不得。
Yahoo group我的想法是过一阵子就可以改成需要申请加入的。主要是想大家可以在哪
里发贴子大概介绍一下自己的住址,孩子的情况,以及希望给自己和孩子找什么样的活
动。希望大家都能参与近来,提供好的建议。
既然是要多认识人,大家都得出来动动,我打算6月中组织一次BBQ,大家都出来见见
面,如果有别的更好的活动建议也请提出来。
Yahoo group link: http://groups.yahoo.com/group/ChicagoMetroWestCYP/ |
|
|
|
a*****g 发帖数: 19398 | 23 By Stephanie Simon
Getting in can be grueling.
Students may be asked to submit a 15-page typed research paper, an original
short story, or a handwritten essay on the historical figure they would most
like to meet. There are interviews. Exams. And pages of questions for
parents to answer, including: How do you intend to help this school if we
admit your son or daughter?
These aren't college applications. They're applications for seats at charter
schools.
Charters ar... 阅读全帖 |
|
d****g 发帖数: 7460 | 24 我去查了下什么叫“心理反哺”。大家对号入座一下。。我感觉不太普遍。
My emotionally needy mother exhibited classic signs of narcissism,
1cast herself as victim in a wide range of scenarios,
2wanted to know about and if possible direct the decisions in my life (at
an age when I was more than capable of doing so),
3claimed credit for my accomplishments,
4was masterful with the Guilt Trip, and
5in general – little that I could do or say was sufficient to please her
– a problem in its own right.
The need for reassurance, affection, a... 阅读全帖 |
|
j*****e 发帖数: 182 | 25 My mom has just been denied for B2 extension.
On the rejection letter, they require you to submit in your next visa
applciation:
*your boarding pass for the returning flight
*receipt of returning flight
*rejection letter with date of notice
*a letter explaining why you overstayed, etc.
To revisit US, a person need to stay at least the same amont of time as he/
she did in the US. In your case, your parents must stay in China for at
least 8 month before considering revisting US.
Why did your paren |
|
j*****e 发帖数: 182 | 26 My mom has just been denied for B2 extension.
On the rejection letter, they require you to submit in your next visa
applciation:
*your boarding pass for the returning flight
*receipt of returning flight
*rejection letter with date of notice
*a letter explaining why you overstayed, etc.
To revisit US, a person need to stay at least the same amont of time as he/
she did in the US. In your case, your parents must stay in China for at
least 8 month before considering revisting US.
Why did your paren |
|
f******e 发帖数: 938 | 27 Dear Sir or Madam,
My name is×××, working for ××× Inc in Houston, TEXAS, as a ×××. I
got my Ph.D in ×××at the end of 2005 from ×××
I’d like to invite my parent to visit me since I haven’t seen them for a
long time. When I was student, I didn’t have enough financial ability to go
back to visit them. After graduating, I found it is even more difficult due
to the working pressure and the short vacation I have. In fact, this year I
already booked the tickets for my family to go back to see my paren |
|
|
h******c 发帖数: 1029 | 29 我以前底特律地区的一个中国人(他住加拿大),在去面试途中遭遇车祸,不幸丧生.他妻子
并没有收入,而且怀孕5个月了..
事情的具体情况如下,希望大家伸出援助之手..有钱的给捐点钱,没钱的也帮忙re一下.
十分感谢大家.
Hi, fellows,
I heard an extremely sad news about a Chinese couple living in Windsor,
Ontario, Canada a few weeks ago. Jian Liu died from a traffic accident in
London, ON, while he was driving for a job interview in Toronto area on Jan.
26th at the age of 31, leaving a 5-month pregnant wife with no income at all.
This is heart-breaking for his wife, unborn child, nearly 80 years old
paren |
|
|
|
|
m**a 发帖数: 296 | 33 致父母篇:
Mom and Dad: Thank you for everything this holiday season!爸爸妈妈:值此佳节
,感谢您们所给予的一切。
I'll be home to enjoy this Christmas with you。我将回家与你们共度佳节。
A present from me is on the way. Hope you'll like it。寄上一份礼物,希望你们
会喜欢。
Thinking of you at Christmas time。圣诞佳节,我想念你们。
Warmest thoughts and best wishes form your daughter。寄上无限的思念和最美好
的祝愿,你们的女儿。
A christmas greeting to cheer you from your daughter。愿女儿的祝福带给您欢乐。
Merry Christmas to the world's best parents!祝世界上最好的父母圣诞快乐!
Season's greetings to my dearest paren |
|
ET 发帖数: 10701 | 34 You don't think so? ! Well, I don't think what you think matters here, given
where the majority of the socitey stands.
it's not me who physcially is being object to you. are you seriously
thinking about what you said which could make any sense? or you just perfer
living in your inside world.
The majority of the society cares. Tons of parens care. Tons of fans care.
They all give the fuck : this is a big deal.
k
that
ever
m
b
he
o
wh
beyond |
|
s******c 发帖数: 2261 | 35 【 以下文字转载自 Comic 讨论区 】
发信人: searchcc (天使降临人间:)), 信区: Comic
标 题: 有人对二手wacom数位板感兴趣么?
发信站: BBS 未名空间站 (Thu Jul 26 04:01:20 2012, 美东)
俺新买了个bamboo,想出掉以前买的favo430
买了许多年了,但是很惭愧,用得不多,08年以后就几乎没用电脑作过画了……汗
板子是蓝色的,看起来9成新吧(包装盒扔掉了,但是驱动光盘什么的我留下来了,应
该还能找到)有人有兴趣的话我可以明天白天拍个实物照片
这款f430是当年的经典,具体介绍参见wacom中国官网:
http://www.wacom.com.cn/product/previous-product-info.php?paren
当年多少钱买的不记得了,反正是节衣缩食了几个月。现在想50刀出掉,有人要么?
附件是我以前用这个板板画的一些画(线稿也是用手写板画的),画得比较渣,仅供参
考,见笑。 |
|
|
|
|
l*y 发帖数: 21010 | 39 From the Vaults: An interview with Bernard Sumner and Johnny Marr
January 6, 2014 in INTERVIEWS
by MAX DAX about BERNARD SUMNER, JOHNNY MARR Tweet
Bernard-Sumner-Johnny-Marr-Electronic-Beats
When two songwriting icons collide: In the latest edition of our irregular F
rom the Vaults series, we present our editor-in-chief Max Dax’s 1996 interv
iew with Bernard Sumner and Johnny Marr. The in-depth conversation originate
s from around the period they released Raise the Pressure as Electronic and
i... 阅读全帖 |
|
d**********o 发帖数: 1321 | 40 hw4:老师附件
/**** Limited to 5 seconds total run time and 5000 lines of output <
<
/**** * ================================================ * <
| Tests for CS445 Assignment 4 | <
| Comparison with Expected Output | <
/**** * ================================================ * <
<
/export/home/nibbler/TestWorld <
find makefile ... 阅读全帖 |
|
d**********o 发帖数: 1321 | 41 hw4:老师附件
/**** Limited to 5 seconds total run time and 5000 lines of output <
<
/**** * ================================================ * <
| Tests for CS445 Assignment 4 | <
| Comparison with Expected Output | <
/**** * ================================================ * <
<
/export/home/nibbler/TestWorld <
find makefile ... 阅读全帖 |
|
I*****a 发帖数: 5425 | 42 【 以下文字转载自 WaterWorld 讨论区 】
发信人: paren (penren), 信区: WaterWorld
标 题: 国人形象被倒爷拉到了新low
发信站: BBS 未名空间站 (Mon Sep 22 01:07:22 2014, 美东)
今天YouTube most polular no1
http://youtu.be/Ef_BznBwktw
二手倒爷们 你们能要点脸皮吗 这种钱不赚可以吗 你看看把人家大妈搞到局子里去了
你们良心被狗吃了。你们赚的钱都是国人仅存不多的点面子换的 你不顾我们你也得顾
你的儿女对不对 你让你娃以后活的像个人行不?
我已经收集了几个典型医生护士的个人信息。如果再看到你们继续倒卖ip6 我会把你们
的信息发给苹果和移民局税务局等地方
请转二手 |
|
G*******s 发帖数: 4956 | 43 2. Faked Priesthood Blessings?
Subject: Any men willing to admit they faked priesthood blessings?
Date: Mar 23 13:05
Author: Deconstructor
Confession time men! Where did the words for your priesthood blessings reall
y come from? I'm specifically referring to blessings of council or when exte
nding callings.
Mormon priesthood blessings are supposed to be the words of the Lord and the
man giving the blessing is speaking for God directly to the person receivin
g the blessing.
But where did... 阅读全帖 |
|
s******c 发帖数: 2261 | 44 俺新买了个bamboo,想出掉以前买的favo430
买了许多年了,但是很惭愧,用得不多,08年以后就几乎没用电脑作过画了……汗
板子是蓝色的,看起来9成新吧(包装盒扔掉了,但是驱动光盘什么的我留下来了,应
该还能找到)有人有兴趣的话我可以明天白天拍个实物照片
这款f430是当年的经典,具体介绍参见wacom中国官网:
http://www.wacom.com.cn/product/previous-product-info.php?paren
当年多少钱买的不记得了,反正是节衣缩食了几个月。现在想50刀出掉,有人要么?
附件是我以前用这个板板画的一些画(线稿也是用手写板画的),画得比较渣,仅供参
考,见笑。 |
|
R*o 发帖数: 3781 | 45 why some ppl can happily accept the theology that their parents, grand paren
ts and ancestors are definitely going to hell?
To me, the doctrine of millennial kingdom is very important to Chinese ppl.
King Jesus will make everything right during the one-thousand year reign.
Our parents, grand parents and ancestors are not going to hell! |
|
h*o 发帖数: 1035 | 46 这个不是我们是否情感上能接收的问题,我当然也希望自己的亲人全部能得救,可是事
实上并非如此啊。
即使听到福音的,也有些人他们还是不信的。
paren
.
|
|
h******y 发帖数: 3501 | 47 6+ 3:04am ET
[在 paren (penren) 的大作中提到:]
:你不到3点订的吗? 为什么我的还是10/2号?
:【 在 howmoney (多少钱) 的大作中提到: 】
:........... |
|
t*********s 发帖数: 5 | 48
,
some
[a
-9
Don't think you can use this to filter out all email address..
check this page:
http://www.unix.org.ua/orelly/perl/cookbook/ch06_20.htm
Besides, there are many inefficient stuff in your regex pattern.
i.e. in ([a-zA-Z0-9_&+\/\\-])+ , the capturing parenthesis are
not necessary. when matching, that ([...])+ construct makes your
regex engine constantly jump into and then jump out from the
capturing parens, that takes too much unnecessary work and is
highly not recommended. [..]+ is f |
|
q**1 发帖数: 193 | 49
following
change
在client端,你大概可以用Javascript写个onfocus事件,当某id的option选中时,
对child-list id所在的element内容进行相应改动。你可以写一堆 if-else 语句
来映射paren-child关系, 用innerHTML属性改里面的内容(可能会有浏览器兼容问
题)。不知道JS的Array是不是可以当hash使,如果可以的话就更方便了,不过觉
得没有server侧做容易维护。。。 |
|
h*i 发帖数: 3446 | 50 python
good:
1. zero learning curve for "normal" programmers
2. can do everything by googling
3. package management system
bad:
1. zero learning curve -> why bother to learn if there's nothing to be
learned?
2. can do everything by googling -> no one will hire you just because you
know python
3. slow
ugly:
1. white space is significant? wtf?
2. white space is significant? have to break my lines within quotes and
parens? wtf?
3. too fucking slow |
|