V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiaobetty
V2EX  ›  推广

晒出你最蠢的一段代码,送 Cherry 鼠标垫

  •  
  •   xiaobetty · 2015-08-04 15:47:00 +08:00 · 27492 次点击
    这是一个创建于 3397 天前的主题,其中的信息可能已经有所发展或是发生改变。

    可能是 上周五的活动不够有趣,还有约300份鼠标垫没有送出去。。。
    办公室的cherry
    现在,只要你是北京的程序员,
    在评论处写下你最蠢的一段代码
    戳这里填写收件信息
    就可以领取100offer定制Cherry鼠标垫一枚!
    送完即止


    Cherry鼠标垫是100offer用户最爱的办公品之一,这次我们也漂洋过海与德国的Cherry官方达成合作,赠与大家。

    优秀的程序员是企业争抢的对象,很多用户通过100offer来「挑」工作:
    http://100offer.com/about

    2015年,100offer会努力给信任我们的广大程序员们提供更多的福利与更好更优质的职业机会,离你们的需求更近一步。

    第 1 条附言  ·  2015-08-10 17:59:30 +08:00
    感谢大家对100offer的支持!

    所有的确认邮件都已发出,第二批鼠标垫也在今天发出~

    北京的朋友如果到周三还没收到联系我(微信服务号:im100offer)

    外地的朋友估计周四、周五收到吧^^

    ***

    现在加入邀请计划,

    http://100offer.com/invite

    把100offer介绍给有跳槽需求的小伙伴,

    还有千元亚马逊卡哦~
    426 条回复    2015-08-14 16:46:08 +08:00
    1  2  3  4  5  
    jackielin
        1
    jackielin  
       2015-08-04 15:52:41 +08:00
    javascript:

    if(!(variables === true)) {
    // balabalabala.....
    }
    southwolf
        2
    southwolf  
       2015-08-04 15:53:24 +08:00
    ·rm -rf /· 这种算么
    liujiantao
        3
    liujiantao  
       2015-08-04 15:55:38 +08:00 via Android
    <?php
    echo 'Hello World!';
    ?>
    wangfeng3769
        4
    wangfeng3769  
       2015-08-04 15:55:58 +08:00
    chmod * -R
    ooh
        5
    ooh  
       2015-08-04 15:56:10 +08:00
    呵呵
    wangfeng3769
        6
    wangfeng3769  
       2015-08-04 15:56:43 +08:00
    chmod 777 * -R
    xcnick
        7
    xcnick  
       2015-08-04 15:57:12 +08:00
    找出数组中的最大值:

    for(value: valueArray) {
    if(value > maxValue) {
    value = maxValue;
    }
    }
    wj5868386
        8
    wj5868386  
       2015-08-04 15:57:15 +08:00
    Hello world
    waynehuge
        9
    waynehuge  
       2015-08-04 15:58:01 +08:00
    c

    foo(void)
    {
    unsigned char i;
    for(i=0; i<300; i++)
    {
    //do something
    }
    }
    ipeony
        10
    ipeony  
       2015-08-04 16:00:24 +08:00
    if((str!=null)?true:false){
    //do something...
    }
    fashioncj
        11
    fashioncj  
       2015-08-04 16:00:50 +08:00
    if(flag=true){
    //do something
    }
    else{
    //do something
    }
    sonaive
        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的生命周期折磨的。
    Hashell
        13
    Hashell  
       2015-08-04 16:02:05 +08:00
    sudo kill -INT 1
    xiaolang
        14
    xiaolang  
       2015-08-04 16:02:49 +08:00
    ”Hello word“注意是”word“ - -!
    hengz
        15
    hengz  
       2015-08-04 16:02:54 +08:00
    用System.out.print打异常。。。
    zcljy
        16
    zcljy  
       2015-08-04 16:03:13 +08:00
    if(i==0){
    }else if.....
    cnhongwei
        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代码的冗长有了深深的恶意。
    laoona
        18
    laoona  
       2015-08-04 16:05:57 +08:00
    requirejs

    require(["jqurey"], function($) {
    console.log($);
    });
    hakulamatata
        19
    hakulamatata  
       2015-08-04 16:07:24 +08:00
    rm -rf *

    这段无敌,我不在北京可以领个玩玩么?
    subpo
        20
    subpo  
       2015-08-04 16:08:04 +08:00
    javascript

    if ( a == nuII ){ //要仔细看...
    xxx
    }
    yaxin
        21
    yaxin  
       2015-08-04 16:08:10 +08:00   ❤️ 1
    @southwolf 你这还不算蠢,这个才叫蠢,rm -rf / usr/local/nginx/conf/nginx.conf
    AciVang
        22
    AciVang  
       2015-08-04 16:08:12 +08:00
    delete from table
    灾难从此开始.....
    chrisstyle
        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);

    以上是项目真实代码。。
    mthli
        24
    mthli  
       2015-08-04 16:09:10 +08:00 via Android
    ++i++i+i++
    tntasdf
        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);

    ```
    hitmanx
        26
    hitmanx  
       2015-08-04 16:10:16 +08:00
    @yaxin 哈哈,我也想写这个哏来着。。
    mthli
        27
    mthli  
       2015-08-04 16:10:24 +08:00 via Android
    @mthli
    写错了...
    ++i+++i+i++
    randyzhao
        28
    randyzhao  
       2015-08-04 16:11:19 +08:00
    蠢出新天地.


    $query = "select * from table where name <> "" and hits > 20";


    填完收件信息才发现只限北京, 哭哭
    kkhaike
        29
    kkhaike  
       2015-08-04 16:15:17 +08:00
    要北京才行啊!
    clippit
        30
    clippit  
       2015-08-04 16:15:23 +08:00
    if ($foo = true) {
    //...
    } else {
    //...
    }
    其实就是个低级错误……
    lepig
        31
    lepig  
       2015-08-04 16:15:41 +08:00
    ```php
    if ($val = true) {
    //dosomething
    } else {
    //dosomething
    }

    ```
    frye
        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;
    }
    abscon
        33
    abscon  
       2015-08-04 16:17:25 +08:00
    @jackielin
    @fashioncj

    列出来的是错的平方,因为 ==true 根本就不应该出现在if语句中
    aec4d
        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)))
    大概是这样子的
    orvice
        35
    orvice  
       2015-08-04 16:21:23 +08:00
    if(a=b)
    SCaffrey
        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
    fullpowers
        37
    fullpowers  
       2015-08-04 16:22:06 +08:00 via Android
    if age>18
    print('i have a girlfriend.')
    ddugujiujian
        38
    ddugujiujian  
       2015-08-04 16:22:18 +08:00
    为了看妹子,特意穿越了5条大街,在门口徘徊了15分钟才见到哦。不虚此行,不要被LZ头像迷惑哦。哈哈,
    delavior
        39
    delavior  
       2015-08-04 16:23:32 +08:00
    拿while当if用
    while(flag) {
    //do something(一条语句)
    }
    hanwujibaby
        40
    hanwujibaby  
       2015-08-04 16:24:38 +08:00
    rm -rf /
    其实本来想要清掉的是rm -rf /tmp
    breakeryang
        41
    breakeryang  
       2015-08-04 16:25:09 +08:00
    sudo rm *
    rayzworld
        42
    rayzworld  
       2015-08-04 16:26:14 +08:00
    魔法数字 if (indexPath.section == 0)
    qyz0123321
        43
    qyz0123321  
       2015-08-04 16:29:42 +08:00
    if(iHasSend = 1) {
    sendPakcet()
    }else{
    sendAnotherPacket()
    }

    这个问题找了两天找到,简直丑陋
    freelee
        44
    freelee  
       2015-08-04 16:30:22 +08:00
    本来只想写删除target目录的,结果手残。。
    rm -rf * target/*
    huayaoyue6
        45
    huayaoyue6  
       2015-08-04 16:32:28 +08:00
    rm -rf /
    coolicer
        46
    coolicer  
       2015-08-04 16:37:27 +08:00
    尼玛,突然想不到了,有了...
    try(

    )catch{

    }
    qinxg
        47
    qinxg  
       2015-08-04 16:37:59 +08:00
    update action set name='2'
    --where id=1
    coolicer
        48
    coolicer  
       2015-08-04 16:38:16 +08:00
    - - 北京程序员,呵呵。
    RaymondYip
        49
    RaymondYip  
       2015-08-04 16:38:53 +08:00
    setTimeout('String', 750);
    leavic
        50
    leavic  
       2015-08-04 16:41:17 +08:00
    if(is_master=True)
    {
    ...........
    }
    DendimoN
        51
    DendimoN  
       2015-08-04 16:43:07 +08:00
    最蠢么。。int i; i=0.5;
    mikej
        52
    mikej  
       2015-08-04 16:43:13 +08:00
    // 活动结束之后记得删掉下面的代码
    finab
        53
    finab  
       2015-08-04 16:44:41 +08:00
    送不出去嘛??上次的我参加了也没送呀。。。😢
    fengyqf
        54
    fengyqf  
       2015-08-04 16:45:00 +08:00
    楼主壕!支持!
    只是这头像,看着略不舒服。。。
    endoffight
        55
    endoffight  
       2015-08-04 16:45:54 +08:00 via Android
    update和delete没有where

    if a=b

    for 循环条件永远达不到
    youfu
        56
    youfu  
       2015-08-04 16:46:39 +08:00
    觉得自己写的代码都很腻害!并没有最蠢一说啊!!!!——by 一个毕业后几年都没写过代码的人
    yoggsaron
        57
    yoggsaron  
       2015-08-04 16:47:45 +08:00
    - (void)initArray {
    priceDataInfo1 = [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:@"示例"];
    }
    为一个表格的网格复制,每一个数组代表一行的数据,由于使用的第三方库,它就是这么设定的。。。而我从服务器拿到的数据是每一列的数据,而且每一行每一列数据都不一样,请告诉我怎么办~
    Jabin
        58
    Jabin  
       2015-08-04 16:48:32 +08:00
    #define p print

    p("Hello World")
    arslion
        59
    arslion  
       2015-08-04 16:50:06 +08:00
    %{isFirst = !isFirst && false}%

    ◡ ヽ(`Д´)ノ ┻━┻
    我写了个什么玩意
    Andrewliu
        60
    Andrewliu  
       2015-08-04 16:50:38 +08:00
    int i = 0;
    for(i = 0; i < length; i++);
    handle(i);

    刚学编程的时候, 多写了一个分号, 当时的编译器查不出来错误, 自己肉眼Debug一天,

    从那以后, 我告诉自己如果再写C++不加大括号我就是傻×
    scorpius
        61
    scorpius  
       2015-08-04 16:50:58 +08:00
    if a==something
    return true
    else
    return false
    chengzhoukun
        62
    chengzhoukun  
       2015-08-04 16:55:26 +08:00
    受C影响写Python就写出了这样的代码:
    counts[s[i] - 'a']++
    counts[t[i] - 'a']--
    wolfan
        63
    wolfan  
       2015-08-04 16:55:50 +08:00
    ls
    binyuJ
        64
    binyuJ  
       2015-08-04 16:57:12 +08:00
    当年第一次学习c语言的时候,按照书上的例子写(抄)代码,就是把书上的代码写一遍再编译运行看看,我连注释都原样抄上去了。
    xiaobetty
        65
    xiaobetty  
    OP
       2015-08-04 16:58:06 +08:00
    @finab 周日给你发邮件了呀,鼠标垫也寄出了哦~
    vagasnail
        66
    vagasnail  
       2015-08-04 16:59:20 +08:00
    rm -rf /
    nellace
        67
    nellace  
       2015-08-04 17:00:06 +08:00
    #define TRUE FALSE后面基本就是各种思路转不过来了。。。。。
    holmesabc
        68
    holmesabc  
       2015-08-04 17:04:45 +08:00
    不是北京的...
    imlonghao
        69
    imlonghao  
       2015-08-04 17:07:48 +08:00
    @mthli 你是谭浩强的吧.........
    Livid
        70
    Livid  
    MOD
       2015-08-04 17:08:54 +08:00   ❤️ 4
    V2EX 应该尽快支持回复里的 Markdown 了。
    wfxiong1990
        71
    wfxiong1990  
       2015-08-04 17:09:09 +08:00
    if(date + 3 == markettradedate) 。。。 这里的date和tradedate都是int值保存的,如果date是7月31号并且是交易日的话,if 条件就进不去,嗯,每个月末并且是周五的情况下爆发一次
    Sarielwind
        72
    Sarielwind  
       2015-08-04 17:09:54 +08:00
    纯参与
    刚干abap兼hrdb时候 脑子一热图省事写了这么一句东西

    delete from dbname where xxx=xxx or xxx=xxx

    于是整个厂几千人的kq信息全当了
    花了半天做恢复....
    hhh
        73
    hhh  
       2015-08-04 17:14:36 +08:00
    for(i=0;i<length;i++); {
    //不小心敲了个;碰巧这里没有用到i,编译器没报错
    }

    坐标不在北京,鼠标垫就算了。
    braineo
        74
    braineo  
       2015-08-04 17:19:45 +08:00
    hell wold...
    Nicksxs
        75
    Nicksxs  
       2015-08-04 17:20:19 +08:00
    if( ){
    //balabala..
    }else(true){
    // do something
    }

    坐标不在北京~~~还是想要鼠标垫
    caserest
        76
    caserest  
       2015-08-04 17:23:35 +08:00
    if的时候总是把==写成=
    anyexxx
        77
    anyexxx  
       2015-08-04 17:26:33 +08:00
    判断漏加!符号
    for()
    {
    struct *pInfo = Get();
    if(pInfo)continue;
    //pInfo处理
    }
    woshixiaomao
        78
    woshixiaomao  
       2015-08-04 17:26:56 +08:00
    for (int i =0; i<100; i++);
    {
    count << i <<endl;
    }
    MarioLuisGarcia
        79
    MarioLuisGarcia  
       2015-08-04 17:28:47 +08:00
    print "I win a cherry mouse pad"
    huson
        80
    huson  
       2015-08-04 17:33:07 +08:00
    i = 1
    while i:
    xxxxxxxxxxx
    fritx
        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
    luzjoy
        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);

    找错找了很久,
    riverphoenix
        83
    riverphoenix  
       2015-08-04 17:37:02 +08:00
    rm -rf /
    BraveRBT
        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)
    Felldeadbird
        85
    Felldeadbird  
       2015-08-04 17:39:24 +08:00
    $a = 0;
    ...大概很多行后

    $result = $a/$b;
    if($result > 0){

    }else{
    //为什么总是跑到else? 明明不应该。为什么$a是0的? 找了好久,原来上面不知道谁定义了 0....
    }
    loolac
        86
    loolac  
       2015-08-04 17:40:02 +08:00
    if True:
    ... ...
    ... ...
    else:
    ... ...
    ... ...
    megabits
        87
    megabits  
       2015-08-04 17:40:47 +08:00
    楼上都不用跟我比了http://yunpan.cn/cdjTQaVyLZh8k (提取码:136d) 各种case外加VB写的和存360云盘,谁能比这段更蠢
    FXY
        88
    FXY  
       2015-08-04 17:41:00 +08:00 via Android
    End
    ccbikai
        89
    ccbikai  
       2015-08-04 17:41:49 +08:00
    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]);
    ccccccc
        90
    ccccccc  
       2015-08-04 17:42:09 +08:00
    alias cd=rm -rf
    megabits
        91
    megabits  
       2015-08-04 17:42:34 +08:00
    @megabits 这是我小学时候写的哈
    jedyu
        92
    jedyu  
       2015-08-04 17:42:55 +08:00
    for (i = 0; i < n; i++);
    {
    //balabala
    }
    johnhsm2333
        93
    johnhsm2333  
       2015-08-04 17:44:27 +08:00
    var a = $('.xxx').parent().parent().parent().parent().parent().parent().parent().parent().parent();
    slayerdoomsday
        94
    slayerdoomsday  
       2015-08-04 17:45:07 +08:00
    if($flag == true) return false;
    helloworld1949
        95
    helloworld1949  
       2015-08-04 17:48:05 +08:00
    if(){
    }
    if(){
    }
    if(){
    }
    if(){
    }
    if(){
    }
    ... ...
    if(){
    }
    if(){
    }
    codeyung
        96
    codeyung  
       2015-08-04 17:48:41 +08:00
    for( i = 0 ; i > 100 ; i++ ){
    int count = 0 ;
    //do something
    count++;
    }

    初学变成时候犯的sb = =已发
    yjgoo
        97
    yjgoo  
       2015-08-04 17:48:44 +08:00
    function(){
    succ(function(){
    succ(function(){
    ....function(){
    dosmthing();
    }
    })
    })
    }
    owlsec
        98
    owlsec  
       2015-08-04 17:48:49 +08:00
    printf("helloworld");<----中文的分号!!!!!
    wbsdty331
        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
    当时写一个比较大小的东西,执行起来怎么也不对劲,后来一看才是....
    kemikemian
        100
    kemikemian  
       2015-08-04 17:49:36 +08:00
    if($a == null){
    //balabala
    }
    1  2  3  4  5  
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1537 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 87ms · UTC 17:03 · PVG 01:03 · LAX 09:03 · JFK 12:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.