可能是 上周五的活动不够有趣,还有约300份鼠标垫没有送出去。。。
现在,只要你是北京的程序员,
在评论处写下你最蠢的一段代码,
戳这里填写收件信息
就可以领取100offer定制Cherry鼠标垫一枚!
送完即止
Cherry鼠标垫是100offer用户最爱的办公品之一,这次我们也漂洋过海与德国的Cherry官方达成合作,赠与大家。
优秀的程序员是企业争抢的对象,很多用户通过100offer来「挑」工作:
http://100offer.com/about
2015年,100offer会努力给信任我们的广大程序员们提供更多的福利与更好更优质的职业机会,离你们的需求更近一步。
1 jackielin 2015-08-04 15:52:41 +08:00 Javascript: if(!(variables === true)) { // balabalabala..... } |
![]() | 2 southwolf 2015-08-04 15:53:24 +08:00 rm -rf / 这种算么 |
![]() | 3 liujiantao 2015-08-04 15:55:38 +08:00 via Android <?php echo 'Hello World!'; ?> |
![]() | 4 wangfeng3769 2015-08-04 15:55:58 +08:00 chmod * -R |
![]() | 5 ooh 2015-08-04 15:56:10 +08:00 呵呵 |
![]() | 6 wangfeng3769 2015-08-04 15:56:43 +08:00 chmod 777 * -R |
7 xcnick 2015-08-04 15:57:12 +08:00 找出数组中的最大值: for(value: valueArray) { if(value > maxValue) { value = maxValue; } } |
![]() | 8 wj5868386 PRO Hello world |
9 waynehuge 2015-08-04 15:58:01 +08:00 c foo(void) { unsigned char i; for(i=0; i<300; i++) { //do something } } |
![]() | 10 ipeony 2015-08-04 16:00:24 +08:00 if((str!=null)?true:false){ //do something... } |
11 fashioncj 2015-08-04 16:00:50 +08:00 if(flag=true){ //do something } else{ //do something } |
![]() | 12 sonaive 2015-08-04 16:00:51 +08:00 @Override public void onBackPressed() { Intent intent = new Intent(SearchActivity.this, PostersActivity.class); startActivity(intent); finish(); } 被Fragment的生命周期折磨的。 |
![]() | 13 Hashell 2015-08-04 16:02:05 +08:00 sudo kill -INT 1 |
![]() | 14 xiaolang 2015-08-04 16:02:49 +08:00 ”Hello word“注意是”word“ - -! |
![]() | 15 hengz 2015-08-04 16:02:54 +08:00 用System.out.print打异常。。。 |
![]() | 16 zcljy 2015-08-04 16:03:13 +08:00 if(i==0){ }else if..... |
17 cnhongwei 2015-08-04 16:04:12 +08:00 以前看到一个同事用java写的取前10条数据库记录的代码,惊为天人,伪代码如下: ... ps = conn.prepareStatement( "select * from table" ); rs = ps.executeQuery(); int count = 0; while ( rs.next() ) { count ++; } if (count > 10) then { count = 10; } ps = conn.prepareStatement( "select * from table" ); rs = ps.executeQuery(); for (int i = 0; i < count; i++) { row = rs.next(); //do something...... } ...... 从此对java代码的冗长有了深深的恶意。 |
![]() | 18 laoona 2015-08-04 16:05:57 +08:00 requirejs require(["jqurey"], function($) { console.log($); }); |
![]() | 19 hakulamatata 2015-08-04 16:07:24 +08:00 rm -rf * 这段无敌,我不在北京可以领个玩玩么? |
![]() | 20 subpo PRO Javascript if ( a == nuII ){ //要仔细看... xxx } |
![]() | 21 yaxin 2015-08-04 16:08:10 +08:00 ![]() @southwolf 你这还不算蠢,这个才叫蠢,rm -rf / usr/local/nginx/conf/nginx.conf |
![]() | 22 AciVang 2015-08-04 16:08:12 +08:00 delete from table 灾难从此开始..... |
23 chrisstyle 2015-08-04 16:08:20 +08:00 //神逻辑 服务器如果没传isApply,isApply默认为1; NSInteger isApply = [WDUtils numberFromObject:[dic objectForKey:@"isapply"]].integerValue; if (isApply == 0) { isApply = kActivityCancelApply; } activityEntity.isapply = @(isApply); 以上是项目真实代码。。 |
![]() | 24 mthli 2015-08-04 16:09:10 +08:00 via Android ++i++i+i++ |
25 tntasdf 2015-08-04 16:09:23 +08:00 ``` // js - 找出数组中的最大值 var a=[1,45,78,654,3,6,311]; var t=a[0]; if(t<a[1]) { t=a[1]; } if(t<a[2]) { t=a[2]; } if(t<a[3]) { t=a[3]; } if(t<a[4]) { t=a[4]; } if(t<a[5]) { t=a[5]; } if(t<a[6]) { t=a[6]; } // .... 不能要求更多... console.log(t); ``` |
![]() | 28 randyzhao 2015-08-04 16:11:19 +08:00 蠢出新天地. $query = "select * from table where name <> "" and hits > 20"; 填完收件信息才发现只限北京, 哭哭 |
![]() | 29 kkhaike 2015-08-04 16:15:17 +08:00 要北京才行啊! |
![]() | 30 clippit 2015-08-04 16:15:23 +08:00 if ($foo = true) { //... } else { //... } 其实就是个低级错误…… |
![]() | 31 lepig 2015-08-04 16:15:41 +08:00 ```php if ($val = true) { //dosomething } else { //dosomething } ``` |
32 frye 2015-08-04 16:17:25 +08:00 if (!preg_match('#(?:[a-zA-Z]{1,3}\s*[^\x00-\xff]{0,5})?\s*(?:\s*[((].+[))]?\s*)?\|?[a-zA-Z0-9]{3,11}$#u',$title, $foot) && $footer === false) { return $default; } |
![]() | 34 aec4d 2015-08-04 16:21:12 +08:00 def foo(number): for x in range(2, number): if not number % x: return False if number > 2: return True def bar(number): return filter(foo, range(1, number)) print(list(bar(20000))) 大概是这样子的 |
![]() | 35 orvice 2015-08-04 16:21:23 +08:00 if(a=b) |
![]() | 36 SCaffrey 2015-08-04 16:21:36 +08:00 1. alias cd='rm-rf' 玩过后忘了删= = 2. #define public private #define false true 在小伙伴的代码里加的……% 然后= = 3. for(;;)fork(); 想卡OJ来着…… 结果把学校的机器玩坏了 4. readln; 第一次参加OI的时候 这句话TMD忘了删……%%% 以后再也不敢了QAQ |
![]() | 37 fullpowers 2015-08-04 16:22:06 +08:00 via Android if age>18 print('i have a girlfriend.') |
![]() | 38 ddugujiujian 2015-08-04 16:22:18 +08:00 为了看妹子,特意穿越了5条大街,在门口徘徊了15分钟才见到哦。不虚此行,不要被LZ头像迷惑哦。哈哈, |
![]() | 39 delavior 2015-08-04 16:23:32 +08:00 拿while当if用 while(flag) { //do something(一条语句) } |
![]() | 40 hanwujibaby 2015-08-04 16:24:38 +08:00 rm -rf / 其实本来想要清掉的是rm -rf /tmp |
41 breakeryang 2015-08-04 16:25:09 +08:00 sudo rm * |
![]() | 42 rayzworld 2015-08-04 16:26:14 +08:00 魔法数字 if (indexPath.section == 0) |
![]() | 43 qyz0123321 2015-08-04 16:29:42 +08:00 if(iHasSend = 1) { sendPakcet() }else{ sendAnotherPacket() } 这个问题找了两天找到,简直丑陋 |
44 freelee 2015-08-04 16:30:22 +08:00 本来只想写删除target目录的,结果手残。。 rm -rf * target/* |
45 huayaoyue6 2015-08-04 16:32:28 +08:00 rm -rf / |
![]() | 46 coolicer 2015-08-04 16:37:27 +08:00 尼玛,突然想不到了,有了... try( )catch{ } |
![]() | 47 qinxg 2015-08-04 16:37:59 +08:00 update action set name='2' --where id=1 |
![]() | 48 coolicer 2015-08-04 16:38:16 +08:00 - - 北京程序员,呵呵。 |
49 RaymondYip 2015-08-04 16:38:53 +08:00 setTimeout('String', 750); |
![]() | 50 leavic 2015-08-04 16:41:17 +08:00 if(is_master=True) { ........... } |
![]() | 51 DendimoN 2015-08-04 16:43:07 +08:00 最蠢么。。int i; i=0.5; |
![]() | 52 mikej 2015-08-04 16:43:13 +08:00 // 活动结束之后记得删掉下面的代码 |
![]() | 53 finab 2015-08-04 16:44:41 +08:00 送不出去嘛??上次的我参加了也没送呀。。。 |
54 fengyqf 2015-08-04 16:45:00 +08:00 楼主壕!支持! 只是这头像,看着略不舒服。。。 |
![]() | 55 endoffight 2015-08-04 16:45:54 +08:00 via Android update和delete没有where if a=b for 循环条件永远达不到 |
![]() | 56 youfu 2015-08-04 16:46:39 +08:00 觉得自己写的代码都很腻害!并没有最蠢一说啊!!!!by 一个毕业后几年都没写过代码的人 |
![]() | 57 yoggsaron 2015-08-04 16:47:45 +08:00 - (void)initArray { piceDataInfo1 = [NSMutableArray array]; priceDataInfo2 = [NSMutableArray array]; priceDataInfo3 = [NSMutableArray array]; priceDataInfo4 = [NSMutableArray array]; priceDataInfo5 = [NSMutableArray array]; priceDataInfo6 = [NSMutableArray array]; priceDataInfo7 = [NSMutableArray array]; priceDataInfo8 = [NSMutableArray array]; priceDataInfo9 = [NSMutableArray array]; priceDataInfo10 = [NSMutableArray array]; priceDataInfo11 = [NSMutableArray array]; priceDataInfo12 = [NSMutableArray array]; priceDataInfo13 = [NSMutableArray array]; [priceDataInfo1 addObject:@"示例"]; [priceDataInfo2 addObject:@"示例"]; [priceDataInfo3 addObject:@"示例"]; [priceDataInfo4 addObject:@"示例"]; [priceDataInfo5 addObject:@"示例"]; [priceDataInfo6 addObject:@"示例"]; [priceDataInfo7 addObject:@"示例"]; [priceDataInfo8 addObject:@"示例"]; [priceDataInfo9 addObject:@"示例"]; [priceDataInfo10 addObject:@"示例"]; [priceDataInfo11 addObject:@"示例"]; [priceDataInfo12 addObject:@"示例"]; [priceDataInfo13 addObject:@"示例"]; } 为一个表格的网格复制,每一个数组代表一行的数据,由于使用的第三方库,它就是这么设定的。。。而我从服务器拿到的数据是每一列的数据,而且每一行每一列数据都不一样,请告诉我怎么办~ |
58 Jabin 2015-08-04 16:48:32 +08:00 #define p print p("Hello World") |
![]() | 59 arslion 2015-08-04 16:50:06 +08:00 %{isFirst = !isFirst && false}% (`Д) ┻━┻ 我写了个什么玩意 |
![]() | 60 Andrewliu 2015-08-04 16:50:38 +08:00 int i = 0; for(i = 0; i < length; i++); handle(i); 刚学编程的时候, 多写了一个分号, 当时的编译器查不出来错误, 自己肉眼Debug一天, 从那以后, 我告诉自己如果再写C++不加大括号我就是傻× |
![]() | 61 scorpius 2015-08-04 16:50:58 +08:00 if a==something return true else return false |
![]() | 62 chengzhoukun 2015-08-04 16:55:26 +08:00 受C影响写Python就写出了这样的代码: counts[s[i] - 'a']++ counts[t[i] - 'a']-- |
![]() | 63 wolfan 2015-08-04 16:55:50 +08:00 ls |
![]() | 64 binyuJ 2015-08-04 16:57:12 +08:00 当年第一次学习c语言的时候,按照书上的例子写(抄)代码,就是把书上的代码写一遍再编译运行看看,我连注释都原样抄上去了。 |
![]() | 66 vagasnail 2015-08-04 16:59:20 +08:00 rm -rf / |
![]() | 67 nellace 2015-08-04 17:00:06 +08:00 #define TRUE FALSE后面基本就是各种思路转不过来了。。。。。 |
![]() | 68 holmesabc 2015-08-04 17:04:45 +08:00 不是北京的... |
![]() | 70 Livid MOD PRO ![]() V2EX 应该尽快支持回复里的 Markdown 了。 |
71 wfxiong1990 2015-08-04 17:09:09 +08:00 if(date + 3 == markettradedate) 。。。 这里的date和tradedate都是int值保存的,如果date是7月31号并且是交日的话,if 条件就进不去,嗯,每个月末并且是周五的情况下爆发一次 |
72 Sarielwind 2015-08-04 17:09:54 +08:00 纯参与 刚干abap兼hrdb时候 脑子一热图省事写了这么一句东西 delete from dbname where xxx=xxx or xxx=xxx 于是整个厂几千人的kq信息全当了 花了半天做恢复.... |
73 hhh 2015-08-04 17:14:36 +08:00 for(i=0;i<length;i++); { //不小心敲了个;碰巧这里没有用到i,编译器没报错 } 坐标不在北京,鼠标垫就算了。 |
![]() | 74 braineo 2015-08-04 17:19:45 +08:00 hell wold... |
![]() | 75 Nicksxs 2015-08-04 17:20:19 +08:00 if( ){ //balabala.. }else(true){ // do something } 坐标不在北京~~~还是想要鼠标垫 |
76 caserest 2015-08-04 17:23:35 +08:00 if的时候总是把==写成= |
![]() | 77 anyexxx 2015-08-04 17:26:33 +08:00 判断漏加!符号 for() { struct *pInfo = Get(); if(pInfo)continue; //pInfo处理 } |
78 woshixiaomao 2015-08-04 17:26:56 +08:00 for (int i =0; i<100; i++); { count << i <<endl; } |
![]() | 79 MarioLuisGarcia 2015-08-04 17:28:47 +08:00 print "I win a cherry mouse pad" |
80 huson 2015-08-04 17:33:07 +08:00 i = 1 while i: xxxxxxxxxxx |
81 fritx 2015-08-04 17:35:08 +08:00 $login.off('submit').on('submit', function(ev) { fsmUser.setState('offline'); var $form = $(this), data = $form.getFormData(); $btn_login.xToggleLoading('登录中...'); ev.preventDefault(); client.get('/', {}, {}, function() { client.get('/createsession_a.asp', {}, {}, function() { client.get('/createsession_b.asp', {}, {}, function() { client.get('/rndnum.asp', {}, {}, function() { client.cookie['LogonNumber'] = ''; client.post('/logon.asp', data, { 'Referer': 'http://jwc.wyu.edu.cn/student/body.htm' }, function(err, res, body){ var success = /welcome/.test(body); if (success) { $btn_login.xToggleLoading('资料解析中...'); // 加载资料 var toLoad = [{ name: 'profile', url: '/f1.asp' }, { name: 'courses', url: '/f3.asp' }, { name: 'scores', url: '/f4_myscore11.asp' }], numLoaded = 0; _.each(toLoad, function(val) { client.get(val.url, {}, { 'Referer': 'http://jwc.wyu.edu.cn/student/menu.asp' }, function(err, res, body) { try { global[val.name] = parsers[val.name](body); console.log('got '+ val.name); numLoaded ++; if (numLoaded === toLoad.length) { fsmUser.setState('online'); } } catch (err) { alert('资料加载失败'); $btn_login.xToggleLoading(false); } }); }); } else { alert('登录信息错误'); $btn_login.xToggleLoading(false); } }); }); }); }); }); return false; }); 抓校园网的一段登录 Javascript回调地狱 出处:以前的项目 https://github.com/h5lium/xstu/blob/master/pages%2Flogin.html |
![]() | 82 luzjoy 2015-08-04 17:36:37 +08:00 var goodsId = $("#GoodsStart").val(); var depotId = $("DepotId").val(); Search(startPaperTime, endPaperTime, stockOtherInType, storeId, departmentId, salesmanId, goodsId, depotId); 找错找了很久, |
83 riverphoenix 2015-08-04 17:37:02 +08:00 rm -rf / |
84 BraveRBT 2015-08-04 17:38:28 +08:00 from BaseHTTPServer import * import urllib2 import random class MyHTTPHandler(BaseHTTPRequestHandler): def do_GET(self): path=self.path path=path[path.find('id=')+3:] #这段下标从第四位开始 不过有意义么? #proxy_support = urllib2.ProxyHandler({"http":"http://127.0.0.1:8087"}) 现在没有使用GAE 所以不需要 想用一下http的代理 proxy_list = ["39.178.145.101:8123","183.219.248.18:8123"] #然而他们都用不了 好像.... proxy_support = urllib2.ProxyHandler({"http":random.choice(proxy_list)}) #所以这段代码并没有什么用.... #proxy_support = urllib2.ProxyHandler() opener = urllib2.build_opener(proxy_support) urllib2.install_opener(opener) |
![]() | 85 Felldeadbird 2015-08-04 17:39:24 +08:00 $a = 0; ...大概很多行后 $result = $a/$b; if($result > 0){ }else{ //为什么总是跑到else? 明明不应该。为什么$a是0的? 找了好久,原来上面不知道谁定义了 0.... } |
86 loolac 2015-08-04 17:40:02 +08:00 if True: ... ... ... ... else: ... ... ... ... |
![]() | 87 megabits 2015-08-04 17:40:47 +08:00 楼上都不用跟我比了http://yunpan.cn/cdjTQaVyLZh8k (提取码:136d) 各种case外加VB写的和存360云盘,谁能比这段更蠢 |
88 FXY 2015-08-04 17:41:00 +08:00 via Android End |
![]() | 89 ccbikai PRO var sql = mysql.format('select count(1) as count,\'t1\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline > ?) t1 where t1.type=\'cmic01\' union select count(1) as count,\'t2\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline > ?) t1 where t1.type=\'cmic02\' union select count(1) as count,\'t3\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline > ?) t1 where t1.type=\'cmic03\' union select count(1) as count,\'t3\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline > ?) t1 where t1.type=\'cmic04\' ', [getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 43200, getTimestamp() - 86400]); sql += mysql.format(' union select count(1) as count,\'t4\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ? and lastonline > ?) t1 where t1.type=\'cmic01\' union select count(1) as count,\'t5\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ? and lastonline > ?) t1 where t1.type=\'cmic02\' union select count(1) as count,\'t6\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ? and lastonline > ?) t1 where t1.type=\'cmic03\' union select count(1) as count,\'t6\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ? and lastonline > ?) t1 where t1.type=\'cmic04\' ', [getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400, getTimestamp() - 86400 * 7]); sql += mysql.format(' union select count(1) as count,\'t7\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ?) t1 where t1.type=\'cmic01\' union select count(1) as count,\'t8\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ?) t1 where t1.type=\'cmic02\' union select count(1) as count,\'t9\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ?) t1 where t1.type=\'cmic03\' union select count(1) as count,\'t9\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and lastonline < ?) t1 where t1.type=\'cmic04\'', [getTimestamp() - 43200, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400 * 7, getTimestamp() - 43200, getTimestamp() - 86400 * 7]); sql += mysql.format(' union select count(1) as count,\'t10\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and updatedat < ?) t1 where t1.type=\'cmic01\' union select count(1) as count,\'t11\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and updatedat < ?) t1 where t1.type=\'cmic02\' union select count(1) as count,\'t12\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and updatedat < ?) t1 where t1.type=\'cmic03\' union select count(1) as count,\'t12\' from (select substr(did,1,6) as type from mysql.mm_statusccc where updatedat > ? and updatedat < ?) t1 where t1.type=\'cmic04\'', [getTimestamp() - 86400, getTimestamp() - 3600, getTimestamp() - 86400, getTimestamp() - 3600, getTimestamp() - 86400, getTimestamp() - 3600, getTimestamp() - 86400, getTimestamp() - 3600]); |
90 ccccccc 2015-08-04 17:42:09 +08:00 alias cd=rm -rf |
![]() | 92 jedyu 2015-08-04 17:42:55 +08:00 for (i = 0; i < n; i++); { //balabala } |
93 johnhsm2333 2015-08-04 17:44:27 +08:00 var a = $('.xxx').parent().parent().parent().parent().parent().parent().parent().parent().parent(); |
94 slayerdoomsday 2015-08-04 17:45:07 +08:00 if($flag == true) return false; |
![]() | 95 helloworld1949 2015-08-04 17:48:05 +08:00 if(){ } if(){ } if(){ } if(){ } if(){ } ... ... if(){ } if(){ } |
![]() | 96 codeyung 2015-08-04 17:48:41 +08:00 for( i = 0 ; i > 100 ; i++ ){ int count = 0 ; //do something count++; } 初学变成时候犯的sb = =已发 |
![]() | 97 yjgoo PRO function(){ succ(function(){ succ(function(){ ....function(){ dosmthing(); } }) }) } |
![]() | 98 owlsec 2015-08-04 17:48:49 +08:00 printf("helloworld");<----中文的分号!!!!! |
![]() | 99 wbsdty331 2015-08-04 17:49:00 +08:00 Visual Basic 6下面,比较大小 If a > b then Print "A<B" else Print "A>B" End If 当时写一个比较大小的东西,执行起来怎么也不对劲,后来一看才是.... |
![]() | 100 kemikemian 2015-08-04 17:49:36 +08:00 if($a == null){ //balabala } |