`
yang_kunlun
  • 浏览: 77206 次
  • 性别: Icon_minigender_1
  • 来自: 地球
最近访客 更多访客>>
社区版块
存档分类
最新评论

Complement for Code Style

阅读更多
1. Use underline to Separate different part of Variable and method's name.

project_item
@product_name

def find_people
end

2.We should have a space after comma, no space before comma and no space in method parentheses.

attr_reader :product, :quantity
find_product(name, id, time)

3.Javascript

win = new Ext.Window({
  applyTo: 'hello-win',
  layout: 'fit',
  width: 500,
  height: 300,
  closeAction: 'hide',
  plain: true,
  items: new Ext.TabPanel({
    applyTo: 'hello-tabs',
    autoTabs: true,
    activeTab: 0,
    deferredRender: false,
    border: false
  }),
  buttons: [{
    text: 'Submit',
    disabled: true
  },{
    text: 'Close',
    handler: function(){
      win.hide();
    }
  }]
});

Contain code like follow:

    [{
   ... 
    },{
   ... 
    }],

    ({
   ... 
    },{
    ... 
    })

4.SQL

SELECT  CONCAT(parent.name,' , ',p.name)     AS Project,
        t.name                               AS Task,
        wi.wComment                          AS Description,
        sec_to_time(wi.wBegin)               AS 'Start Time',
        sec_to_time(wi.wEnd)                 AS 'End_time',
        sec_to_time(wi.wEnd-wi.wBegin)       AS Time
FROM       T4U_WORKITEMS wi
INNER JOIN T4U_DAYINFOS di                   ON ( wi.dayinfo_id = di.id )
INNER JOIN T4U_TASKS t                       ON ( wi.task_id = t.id )
INNER JOIN T4U_PROJECTS p                    ON ( wi.project_id = p.id )
INNER JOIN T4U_PERSONS per                   ON ( di.person_id = per.id )
INNER JOIN T4U_PROJECTS parent               ON ( IFNULL(p.parent_id,p.id) = parent.id )
WHERE  di.daydate = '2009-03-10'
  AND  per.surName LIKE "eric%"
分享到:
评论

相关推荐

    The Schur Complement and its applications

    **舒尔补**(Schur complement)是线性代数中的一个重要概念,尤其是在矩阵论、数值分析以及控制理论等领域有着广泛的应用。给定一个分块矩阵 \[ M = \begin{pmatrix} A & B \\ C & D \end{pmatrix}, \] 其中 \(A\) ...

    matlab开发-ComplementCoding

    `Complement_Code.m`是补码编码的核心算法实现,可能包含了将原始数据转换为补码表示的MATLAB函数。这个文件是理解整个补码编码过程的关键。 最后,`Microcircuit_Complement_Coding.pdf`很可能是一篇学术论文或...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    In some cases there might be good arguments for changing certain style rules, but we nonetheless keep things as they are in order to preserve consistency. Another issue this guide addresses is that...

    Sensing and Control for Autonomous Vehicles: Applications to Land, Water and Air

    Unmanned vehicles with high levels of autonomy may be used for safe and efficient collection of environmental data, for assimilation of climate and environmental models and to complement global ...

    The Schur Complement and Symmetric Positive Semidefinite....pdf

    《Schur补与对称半正定(及正定)矩阵》 Schur补是线性代数中的一个重要概念,特别是在解决线性系统和研究矩阵性质时起到关键作用。这篇笔记详细介绍了Schur补以及其在对称半正定(正定)矩阵中的应用。...

    java-leetcode题解之Number Complement.java

    java java_leetcode题解之Number Complement.java

    Perl.for.Oracle.DBAs

    Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Perl for Oracle DBAs are thread-...

    A Twofold Siamese Network for Real-Time Object Tracking

    similarity matching task complement each other, we build a twofold Siamese network, named SA-Siam, for real-time object tracking. SA-Siam is composed of a semantic branch and an appearance branch. ...

    Dundas.Chart.for.Winform.Enterprise.v7.1.0.1812.for.VS2008

    Flash Rendering (ASP.NET Enterprise Edition only) - Looking for Flash Charts to complement your current or new web projects? Version 4.0 now fully supports Flash, opening up a whole new dimension to ...

    java-leetcode题解之Complement of Base 10 Integer.java

    java java_leetcode题解之Complement of Base 10 Integer.java

    array-complement:返回唯一值的数组,该值是所提供数组的对称差

    npm install array-complement bower install array-complement 用法 const arrayComplement = require ( 'array-complement' ) ; console . log ( arrayComplement ( [ 'foo' , 'bar' ] , [ 'bar' ] ) ) ; // ['foo...

    html5_css3.pdf

    ■■ Use test-driven development techniques for writing JavaScript code. ■■ Create Cascading Style Sheets (CSS) that visually format your HTML document. ■■ Create HTML tables. ■■ Create ...

    Practical C++ Programming C++编程实践

    Style Comments C++ Code Naming Style Coding Religion Indentation and Code Format Clarity Simplicity Consistency and Organization Further Reading Summary 4. Basic Declarations and Expressions Basic ...

    Complement Image (Negative Image)_image_engineering_

    在图像处理领域,"Complement Image (Negative Image)"是一个重要的概念,它涉及到图像工程的基础知识。这个主题主要关注如何将图像的颜色反转,从而得到与原图颜色相反的图像,也就是通常所说的负片效果。这种技术...

    开源协议压力测试工具 Seagull 源码

    Primarily aimed at IMS (3GPP, TISPAN, CableLabs) protocols (and thus being the perfect complement to SIPp for IMS testing), Seagull is a powerful traffic generator for functional, load, endurance, ...

    Unity代码混淆加密插件 Obfuscator v2.0.3

    This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of ...

    Unity代码混淆加密插件 Obfuscator v2.0.2

    This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of ...

    Unity代码混淆加密插件 Obfuscator v2.0.4 最新版

    This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of ...

    ???_201520774_2's complement_veriloghdl_

    本项目聚焦于2的补码(2's complement)表示法在Verilog中的实现,这对于理解和设计计算机系统、处理器以及数字逻辑电路至关重要。 2的补码是一种在计算机科学中表示负数的方法,它在现代计算机硬件中广泛应用。它...

Global site tag (gtag.js) - Google Analytics