Kairyou's Blog

专注于前端开发, 追求更好的用户体验, 更好的开发体验 [长沙前端QQ群:234746733]
  • 计算PHP脚本运行时间

    / 分类: 开发 / No Comments

    <?php   
    function getmicrotime(){
        list($usec, $sec) = explode(" ",microtime());
        return ((float)$usec + (float)$sec);
    }
    
    //开始   
    $time_start = getmicrotime();
     
    //这里放你的代码
    
    //结束
    $time_end = getmicrotime(); 
    $time = $time_end - $time_start;
    
    echo "$time seconds"; //输出运行时间
    ?>  
    
  • 主流web2.0网站的配色参考方案

    / 分类: 开发,工具 / No Comments

     

    Shiny silver [#EEEEEE]

     

    Reddit white [#FFFFFF]

     

    Magnolia Mag.nolia [#F9F7ED]

     

    Interactive action yellow [#FFFF88]

     

    Qoop Mint [#CDEB8B]

     

    Gmail blue [#C3D9FF]

     

    Shadows Grey [#36393D]

    Bold

     

    Mozilla Red [#FF1A00]

     

    Rollyo Red [#CC0000]

     

    RSS orange [#FF7400]

     

    Techcrunch green [#008C00]

     

    Newsvine Green [#006E2E]

     

    Flock Blue [#4096EE]

     

    Flickr Pink [#FF0084]

    Muted

     

    Ruby on Rails Red [#B02B2C]

     

    Etsy Vermillion [#D15600]

     

    43 Things Gold [#C79810]

     

    Writely Olive [#73880A]

     

    Basecamp Green [#6BBA70]

     

    Mozilla Blue [#3F4C6B]

     

    Digg Blue [#356AA0]

     

    Last.fm Crimson [#D01F3C]