Skip to content
#

code

Here are 2,696 public repositories matching this topic...

black
phpinsights
olivernybroe
olivernybroe commented Mar 5, 2020
Q A
Bug report? no
Feature request? yes

Right now we can create custom configuration based on presets, however I think it would be worth allowing custom presets also.
This would mean opening up the Preset interface so for example a framework could maintain their own Preset file and users can then use the preset, just by pointing

Luni-4
Luni-4 commented Apr 10, 2020

Tokei counts blank lines inside comment blocks as blank lines. Wouldn't they be considered as comment lines?

For example:

/* Copyright (C) 2007-2008 Foo
   Copyright (C) 2008      Foo

   File: test.c
  
*/

Tokei output:

-------------------------------------------------------------------------------
 Language            Files        Lines         Code     Comment
vladak
vladak commented May 5, 2019

When working on a fix for #2755 I noticed that Git tag parsing is sub-optimal performance wise - to determine changeset/date for each tag a new command is spawned via Executor in buildTagEntry(). For repositories with large set of tags (e.g. Linux kernel) this could be taxing.

Either convert this to parallel execution (thread pool) or find a way how to get all the data in single command.

ccforward
ccforward commented Apr 3, 2017

[半夜改bug] mongoose 的 createConnection 和 connect

代码出 bug 大半夜的被 mongoose 的连接函数搞惨

因为代码里 mongo 数据库的连接方式的代码被改成了 const db = mongoose.createConnection(mongo.url(), mongoOptions),所以在调用数据插入函数时 Promise 的 resolve 和 reject 都没有返回,也没有打印任何异常信息。

查了业务逻辑、本地 mongo 的读写都没问题,最后发现是 mongo 的连接文件 connect.js 被修改了。

因为用了 mongoose.createConnection 所以此时的 model 应该是 db.mongoose.model('Product')

而之前的是用默认的

🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)

  • Updated Jun 7, 2020
  • Java
code-notes
kodaman2
kodaman2 commented Oct 5, 2019

Describe the bug
Repetitive loading have you waiting on gists loading.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Gists, see the loading circle
  2. Click on local
  3. Go back to gists, and a new loading circle appears

Expected behavior
I think the loaded gists should remain loaded even when going to local, and maybe have a refresh button if you want to pull new gi

Improve this page

Add a description, image, and links to the code topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the code topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.