profile
viewpoint

ahuigo/a 12

Ahuigo's blog

ahuigo/des 11

des source code for js,perl.

ahuigo/ahui-aiohttp-server 2

Aiohttp server for static files and python file(php-like server)

ahuigo/ahuigo.github.io 1

AHUIGO'S BLOG

ahuigo/aiohttp 0

Async http client/server framework (asyncio)

ahuigo/air 0

☁️ Live reload for Go apps

ahuigo/ama 0

Ask me anything!

ahuigo/API_Docs 0

火币 API文档

ahuigo/avlmini 0

AVL implementation which is as fast/compact as linux's rbtree

ahuigo/b 0

AHUIGO'S BLOG

startedBetaSu/just-react

started time in 2 days

push eventahuigo/b

ahuigo

commit sha abc652c8ac619c42cc8041b823da1ea37294ab03

msg:ria

view details

push time in 2 days

push eventahuigo/a

ahuigo

commit sha c09fb6b70ef5c1ed7e9a4b22ead4530b8959749e

ria

view details

push time in 2 days

push eventahuigo/repo

ahuigo

commit sha 47b44a07928b7ca4f00133996a6a8e96be960101

up

view details

push time in 5 days

push eventahuigo/b

ahuigo

commit sha be4bd0e76da72b558771eda27f687a186a2f0032

msg:go

view details

push time in 5 days

push eventahuigo/a

ahuigo

commit sha 64f53fc5261b2e51326a9bf248fc95e2142ca84f

go

view details

push time in 5 days

push eventahuigo/go-lib

ahuigo

commit sha b59e3af638019ed631e19f3078d916a9afeff32d

hmac

view details

push time in 5 days

push eventahuigo/b

ahuigo

commit sha e0153655664bdb9e002aa2248b94d010701a11ff

msg:vim

view details

push time in 6 days

push eventahuigo/a

ahuigo

commit sha 1705551664a82883aea20bba92c454588d10902c

vim

view details

push time in 6 days

push eventahuigo/b

ahuigo

commit sha 6eda4322a332425391024a01a26543a24e4aa8f6

msg:go

view details

push time in 6 days

push eventahuigo/a

ahuigo

commit sha 4e134d79a48915359e6a6a9150cafe38de79d386

go

view details

push time in 6 days

push eventahuigo/go-lib

ahuigo

commit sha f892c6d3d12e33956d7da2d7af15610b74b830ee

shell

view details

push time in 6 days

push eventahuigo/b

ahuigo

commit sha 099db29db3bd37444772494d7a17f3ff133791e5

msg:go

view details

push time in 6 days

push eventahuigo/a

ahuigo

commit sha bb66253b957c9dffcb16d78ad9e3ad7fe5d367b6

go

view details

push time in 6 days

push eventahuigo/go-cli-demo

ahuigo

commit sha 8c2750d908c25ca438eae2b1c8cb8aac5f575de3

makefile

view details

push time in 7 days

push eventahuigo/go-lib

ahuigo

commit sha 3043ccce6e492a505f592f1bf30685f09f248307

ldap_test

view details

push time in 12 days

fork ahuigo/ldap

Basic LDAP v3 functionality for the GO programming language.

fork in 12 days

issue commentdenoland/deno

Deno bundling v3

Nice list. Considering CSS imports are fairly common (e.g. https://webpack.js.org/loaders/style-loader/), and Webpack, Rollup, and Parcel (and maybe others) support them, does Deno have any plans to do so? I realize Deno's a JS runtime, but that would probably get a lot of people to consider leaving Webpack behind, myself included. Regardless, very much looking forward to v1.0 in May! (fingers crossed)

https://github.com/pikapkg/snowpack is more modernize than webpack and rollup

kitsonk

comment created time in 12 days

issue commentasos-craigmorten/deno-react-base-server

Is there any good way to import css/less/sass module?

Maybe, deno should consider use Snowpack, it is without bundling and very different from Webpack and Rollup.

ahuigo

comment created time in 12 days

push eventahuigo/a

ahuigo

commit sha b030d8ad253eb5c16b63f885d2c92f6ac230021c

color

view details

push time in 12 days

push eventahuigo/b

ahuigo

commit sha 93f2dc954c527ccaaba503f87bcfd4c0f157514b

msg:color

view details

push time in 12 days

push eventahuigo/b

ahuigo

commit sha c8d69fc13b9597d553d1ef4faaef308de5b4c8c7

msg:py

view details

push time in 13 days

push eventahuigo/a

ahuigo

commit sha 12a2d65e731e69ec050723db75aba5ca7ae9e5ea

py

view details

push time in 13 days

push eventahuigo/b

ahuigo

commit sha 0f555a909309a9bc29982632c0c446eafcea1042

msg:py

view details

push time in 13 days

push eventahuigo/a

ahuigo

commit sha 1b94d8f13c14e3bd463616e3719d7b67c7c472ff

py

view details

push time in 13 days

push eventahuigo/stock

ahuigo

commit sha 08371148cf345941d25e13cbf8083483b44a4c8c

getGood

view details

push time in 13 days

push eventahuigo/py-lib

ahuigo

commit sha bb463e85d1a3685fe6b6a49474b4b47ec15612fa

ldap

view details

push time in 16 days

push eventahuigo/b

ahuigo

commit sha 2724da5bd7c5e8b79d6025d29eeca72b375892aa

msg:umi

view details

push time in 16 days

push eventahuigo/a

ahuigo

commit sha d2164d80e9aa4bb579ceb91b22d1f5cb0b561240

umi

view details

push time in 16 days

startedasos-craigmorten/deno-react-base-server

started time in 16 days

push eventahuigo/chrome-stackoverflow

ahuigo

commit sha e1340d6bdc513e442c74cf7e7409c01320541d2d

disable all keybinding

view details

push time in 17 days

push eventahuigo/a

ahuigo

commit sha cc7ceda302165f3ce40c20542562955312098284

sec

view details

push time in 17 days

push eventahuigo/b

ahuigo

commit sha 5062070806f3ab95c57930f54bc624f823613d5e

msg:arch

view details

push time in 18 days

push eventahuigo/a

ahuigo

commit sha d6684a736270d0ae60897efd59b6d742404ce10a

arch

view details

push time in 18 days

push eventahuigo/b

ahuigo

commit sha 2f253db79803917922336967164dbc82dec189ad

msg:ts

view details

push time in 20 days

push eventahuigo/a

ahuigo

commit sha 4c1e052fdc217c243b2e01099f872de480f7aee4

ts

view details

push time in 20 days

issue closedgin-gonic/gin

[Bug] BindQuery will trim substring after character semicolon`;`

  • With issues:
    • Use the search tool before opening a new issue.
    • Please provide source code and commit sha if you found a bug.
    • Review existing issues and provide feedback or react to them.

Description

<!-- Description of a problem --> [Bug] BindQuery will trim the substring after character semicolon;

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1;word2"}

How to reproduce

<!-- The smallest possible code example to show the problem that can be compiled, like -->

package main
import (
    "github.com/gin-gonic/gin"
    "net/http"
    _"fmt"
)
type Params struct {
    Text     string `form:"text" binding:"required"`
}

func main() {
    router := gin.Default()

    router.GET("/get", func(c *gin.Context) {
        var params Params
        if err := c.ShouldBind(&params); err == nil {
            c.JSON(http.StatusOK, gin.H{"text": params.Text})
        }
    })

    router.Run(":8088")
}

Expectations

<!-- Your expectation result of 'curl' command, like -->

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1"}

Actual result

<!-- Actual result showing the problem -->

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1"}

Environment

  • go version: 1.12.17
  • gin version (or commit ref): v1.4.0
  • operating system: Mac OSX 10.15.2

closed time in 24 days

ahuigo

issue commentgin-gonic/gin

[Bug] BindQuery will trim substring after character semicolon`;`

This bug related to : https://github.com/golang/go/issues/22641

ahuigo

comment created time in 24 days

push eventahuigo/go-lib

ahuigo

commit sha 98088203dbf155287503956f9bafaac88e7eede5

bingGet

view details

push time in 24 days

issue openedgin-gonic/gin

[Bug] BindQuery will trim substring after character semicolon`;`

  • With issues:
    • Use the search tool before opening a new issue.
    • Please provide source code and commit sha if you found a bug.
    • Review existing issues and provide feedback or react to them.

Description

<!-- Description of a problem --> [Bug] BindQuery will trim the substring after character semicolon;

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1;word2"}

How to reproduce

<!-- The smallest possible code example to show the problem that can be compiled, like -->

package main
import (
    "github.com/gin-gonic/gin"
    "net/http"
    _"fmt"
)
type Params struct {
    Text     string `form:"text" binding:"required"`
}

func main() {
    router := gin.Default()

    router.GET("/get", func(c *gin.Context) {
        var params Params
        if err := c.ShouldBind(&params); err == nil {
            c.JSON(http.StatusOK, gin.H{"text": params.Text})
        }
    })

    router.Run(":8088")
}

Expectations

<!-- Your expectation result of 'curl' command, like -->

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1"}

Actual result

<!-- Actual result showing the problem -->

$ curl 'localhost:8088/get?seq="1;2;3"&text=word1;word2'
{"text":"word1"}

Environment

  • go version: 1.12.17
  • gin version (or commit ref): v1.4.0
  • operating system: Mac OSX 10.15.2

created time in 24 days

push eventahuigo/chrome-stackoverflow

ahuigo

commit sha c4d2ff90f158ce5e2c579bbcd4be35d0b4aeb219

feat: disable stackoverflow default keybings

view details

push time in 25 days

create barnchahuigo/chrome-stackoverflow

branch : master

created branch time in 25 days

created repositoryahuigo/chrome-stackoverflow

Disable stackoverflow's default keybinding.

created time in 25 days

push eventahuigo/go-lib

ahuigo

commit sha e65bb32e0633f1ac7be29341937dabee2f2e1183

router

view details

push time in 25 days

push eventahuigo/a

ahuigo

commit sha 9781ef20964223ba55c45322bf938c567fa37a2e

vsc

view details

push time in a month

push eventahuigo/b

ahuigo

commit sha afebc444d14e367a9eca015bf3992856d23d9c70

msg:ria

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 8961a62771c34cdf667b176411ff9025904eca7e

ria

view details

push time in a month

issue commentant-design/pro-blocks

Warning: Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?

image https://codesandbox.io/s/antd-reproduction-template-ibu5c?file=/index.js:621-632

Not work for me. I'm using antd 4.1.2

xieww

comment created time in a month

push eventahuigo/a

ahuigo

commit sha 124b371500c8fd49c347ebc3ba64fd718d635fbb

nginx

view details

push time in a month

push eventahuigo/b

ahuigo

commit sha 90e6981ab9dc23ac9d7f2be0c68fb24b563ca87b

msg:nginx

view details

push time in a month

push eventahuigo/js-lib

ahuigo

commit sha 94c41df98109f4067ec74db23c5a6170283885bb

js-worker

view details

push time in a month

startedolivewind/blog

started time in a month

push eventahuigo/b

ahuigo

commit sha 2687cb01d7482e6f975a082f58e1bfe08277d4f8

msg:rb

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 3564a67e3e37bf319399307576c10d6d69c3b5f6

rb

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha ef54cbb7f52485a677d972a3136f8eebbd2d7a16

rb

view details

push time in a month

push eventahuigo/b

ahuigo

commit sha 092d5b83ec14f23e385226c55a609e5f8f86682b

msg:rb

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 9e26616806f8606a0f28f90095a99978492fc7f4

lua

view details

ahuigo

commit sha 509551d7931f62011affc77bbc61f4eff73ae1cc

nginx

view details

ahuigo

commit sha 7cb855ec8d00a01d3fd4c26ff13f17f0ce68b059

rb

view details

push time in a month

push eventahuigo/go-lib

ahuigo

commit sha 96152c4ebc368ac4dbd3ab7faa62396e45a4ef22

go-debug

view details

push time in a month

push eventahuigo/java-lib

ahuigo

commit sha 59cf0bc85adbfa28188d194ec399be59bd4bd3d7

class

view details

push time in a month

push eventahuigo/xcut

ahuigo

commit sha 5ea92d18a9bbb0196f7c2b0db849640d34a341af

xcut

view details

push time in a month

push eventahuigo/go-lib

ahuigo

commit sha 23032f281b94b2b67857220c86dc1ebd8dda5fe2

debug-go

view details

push time in a month

push eventahuigo/b

ahuigo

commit sha d936cfc50c64dfa2e38957da995fe2145ded0a93

msg:go

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 6e23db750a5064c3bee6c80563ea759616d613b8

go

view details

push time in a month

push eventahuigo/go-lib

ahuigo

commit sha d20e5b051f6d95790bc41c98b44a504f42a2dc11

go-struct

view details

push time in a month

fork ahuigo/flowy

The minimal javascript library to create flowcharts ✨

fork in a month

startedalyssaxuu/flowy

started time in a month

push eventahuigo/go-lib

ahuigo

commit sha f39cdedc8de24b141bbfa5038478c3e76aa2c0a8

dns

view details

push time in a month

push eventahuigo/stock

ahuigo

commit sha 72b11bb54f89009f88fed7bb45bcac2e50d0cd7e

st

view details

push time in a month

issue commentantvis/G2

g2 4.0移除Global后,没有setTheme(theme) 了

@hustcc 我觉得global theme还是需要的。我现在的业务就需要一个global setTheme. 否则一个个修改chart 加theme 是很麻烦的事。

不是刷新所有的char instance, 而是这样一个全局默认配置方法:

const defaultOpition = {
     theme:"dark",
}
function newChart(option:Opition = {}){
     return new Chart({...default, ...option});
}
ahuigo

comment created time in a month

push eventahuigo/b

ahuigo

commit sha 5f6f26ee2de0330fa464c57249b360030a5bdd5f

msg:umi

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 6cd2f5c8b3fd80b0c291ba8800557dd576ac9c93

umi

view details

push time in a month

fork ahuigo/avlmini

AVL implementation which is as fast/compact as linux's rbtree

fork in a month

startedskywind3000/avlmini

started time in a month

push eventahuigo/b

ahuigo

commit sha f4da7f8472c57b17242058549cc2de682b0c8089

msg:css

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha 4a7ef3d8753069f86d94ceac369baf0fe1ae8fbe

css

view details

push time in a month

push eventahuigo/go-lib

ahuigo

commit sha 0d988f8ea31ba5d245015b13101b3afee802bd7d

file

view details

push time in a month

push eventahuigo/b

ahuigo

commit sha 5d7c0230c2e94efc3d1dd1f455477aa2a3c27b02

msg:go-http

view details

push time in a month

push eventahuigo/a

ahuigo

commit sha a417696ad5550a21815bb668b6746b4bc3da112b

go-http

view details

push time in a month

fork ahuigo/deno-postgres

PostgreSQL driver for Deno

fork in 2 months

startedbuildondata/deno-postgres

started time in 2 months

push eventahuigo/b

ahuigo

commit sha 73949de0cf82b6fa46f4a200b01c02534b97b1a9

msg:sec

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha 9bf92932deda39cc39d6f2622e166108b16ef5a6

sec

view details

push time in 2 months

push eventahuigo/stock

ahuigo

commit sha bc7617ebb36a9ba2f6fc8d709e15c407e02fc327

conn

view details

push time in 2 months

push eventahuigo/stock

ahuigo

commit sha 3d668ef1408b73fcbbf17c978e3558f3961fc819

new-conn.y

view details

push time in 2 months

issue commentrubyjs/therubyracer

/usr/local/opt/v8@3.15/include/v8.h:98:1: error: unknown type name 'namespace'

Related issue: https://github.com/rubyjs/therubyracer/issues/455 This error relates with command :

"xcrun clang -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/backward -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0 -I. -I/usr/local/opt/v8@3.15/include -I/usr/local/opt/v8@3.15/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -g -rdynamic  -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS  -arch x86_64  -c conftest.c"
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
In file included from conftest.c:3:
/usr/local/opt/v8@3.15/include/v8.h:98:1: error: unknown type name 'namespace'
ahuigo

comment created time in 2 months

issue openedrubyjs/therubyracer

/usr/local/opt/v8@3.15/include/v8.h:98:1: error: unknown type name 'namespace'

I failed to install therubyracer. My env is:

Mac osx: Catalina 10.15.2
Ruby:  ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

Here is my output:

$ sudo gem install therubyracer -v '0.12.3' -- --with-v8-dir=/usr/local/opt/v8@3.15 
....
	ERROR: Failed to build gem native extension.
......
To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/therubyracer-0.12.3/mkmf.log

extconf failed, exit code 1
....

$ cat /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/therubyracer-0.12.3/mkmf.log
--------------------
find_header: checking for v8.h... -------------------- no

"xcrun clang -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/backward -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0 -I. -I/usr/local/opt/v8@3.15/include -I/usr/local/opt/v8@3.15/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -g -rdynamic  -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS  -arch x86_64  -c conftest.c"
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
In file included from conftest.c:3:
/usr/local/opt/v8@3.15/include/v8.h:98:1: error: unknown type name 'namespace'
namespace v8 {
^
/usr/local/opt/v8@3.15/include/v8.h:98:13: error: expected ';' after top level declarator
namespace v8 {
            ^
            ;
2 errors generated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <v8.h>
/* end */

--------------------
$ gsed -n '95,100p' /usr/local/opt/v8@3.15/include/v8.h
/**
 * The v8 JavaScript engine.
 */
namespace v8 {

class Context;

created time in 2 months

push eventahuigo/a

ahuigo

commit sha 5ab2025a1af7359b98034e299dc7e6d1b6b7ca3a

ruby

view details

push time in 2 months

push eventahuigo/b

ahuigo

commit sha bb8e0708607c25c2c7566d37831967f5a907509f

msg:py-argv

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha 94f020365b811f558dad072bf6db8f0940e83c24

py-argv

view details

push time in 2 months

push eventahuigo/xcut

ahuigo

commit sha 22cdeaeefd04755be0de04eb0e40c90a26fa70f2

feat: support json line parse.

view details

push time in 2 months

push eventahuigo/b

ahuigo

commit sha 3d3ed0e638c67b7f5901fcae68d941d595234ced

msg:js

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha faf8afdd74c2c69494208a484c1b508f994bf90d

js

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha 019e0fa3a92b7881b54ef24c05a677e599531aa2

keyboard

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha 0aef3445ba2cb3b54600aabc92b28febe58f4008

keyboard

view details

push time in 2 months

push eventahuigo/b

ahuigo

commit sha fd4e7bb7242822d0a832e3ebcab69d3aa165bd78

msg:keyboard

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha b6f7079b1f60dbb0b052e731c93aa7058c76c5c9

keyboard

view details

push time in 2 months

push eventahuigo/stock

ahuigo

commit sha 1de4cb491e462a66bf8085efa64c3014324bf8c2

code

view details

push time in 2 months

push eventahuigo/b

ahuigo

commit sha 02a9bc0d0d7cc33b1d8d80626386a20f7da763ae

msg:lua

view details

push time in 2 months

push eventahuigo/a

ahuigo

commit sha 10c9080ccb867164588c38ff3d47501b28615971

lua

view details

push time in 2 months

more