文号
821062
阅读
8416
回复
11
收藏
7
代码现在很高亮
2016/06/07
IP:广东
function sha256HMAC(password,salt){
  const crypto = require('crypto')
  var hmac = crypto.createHmac('sha256',salt)
  hmac.update(password)
  return hmac.digest('hex')
}

以上是新科创论坛对用户密码应用的散列函数。

[ 修改于10年6个月前 - 2016/06/07 07:58:11 ]
nkc作者
10年6个月前修改于 10年6个月前IP:广东
821065
1楼

目前的代码高亮设置已经针对bbcode渲染器的输出调整,使得pwbb和markdown下的语法高亮外观基本一致。 推荐大家用markdown语法包含代码(方便显式指定语言)。

uchar i2cpush(uchar addr){
  //push 8bits and see if anyone acked.
  uchar ackstatus=0;
  uchar i;
  for(i=0;i<8;i++){ 1 pinlow(scl); if(addr&0x80) if msb is { pinhigh(sda); } else pinlow(sda); risedelay(); pinhigh(scl); addr<<="1;" release sda line risedelay7(); sample ack bit here if(pinread(sda)="=0)" ackstatus="1;" risedelay3(); return ackstatus; < code></8;i++){>
引用
评论
nkc作者
10年6个月前IP:广东
821379
10楼

现在代码字体的fallback顺序是consolas->monospace,字号12px,行距1.4,MBP上测试okay。

引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的