profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/caub/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

caub/color-wheel 8

:art: Wheel color-picker made with canvas

caub/acquire 1

async require

caub/baseconv 1

:key: Convert arbitrarily big numbers between bases

caub/cms 1

seamless CMS/site builder

caub/color-tf 1

RGB, HSL, HSV, HWB, ... color models transforms

caub/2it 0

Twitter app tech task

caub/acorn 0

A small, fast, JavaScript-based JavaScript parser

caub/ajv 0

The fastest JSON Schema Validator. Supports draft-04/06/07/2019-09

caub/apollo-client 0

:rocket: A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server

issue commentcaub/pg-tsquery

"it's" changing to "its"

Ok now the option is added, you could do

const tsquery = Tsquery({singleQuoteReplacement: '&'});
tsquery(`It's working`)+'' // It&s&working`

note that if you use {singleQuoteReplacement: ' ' for example, the result would probably make postgresql ts_query crash

soheilpro

comment created time in 3 days

push eventcaub/pg-tsquery

caub

commit sha bb4b8288632c8f722fdbb93b447e50e4f2985758

Add singleQuoteReplacement option

view details

caub

commit sha 6146cac7edaead00ff446241320489a77c8ee582

8.3.0

view details

push time in 3 days

issue commentcaub/pg-tsquery

"it's" changing to "its"

Hi, oh good point, I think recently we had to do this https://github.com/caub/pg-tsquery/blob/master/index.js#L220 where we replace single quotes by an empty string

We could make the replacement configurable m.groups.word.replace(/'/g, this.singleQuoteReplacer || '') or something

If you have a bit more time that I, maybe make a PR with quicks tests

soheilpro

comment created time in 17 days

issue commentexpressjs/serve-static

Some way to exclude files ?

Hey, you can use index: false if want to ignore index.html file

technically setting index: false still serves the index.html file, it just avoid serving it for a request on the basedir

index: true:
GET / → 200
GET /index.html → 200

index: false:
GET / → 404
GET /index.html → 200

LeoIannacone

comment created time in a month

startedgliese1337/fast-myers-diff

started time in 2 months

startedreact-bootstrap/react-bootstrap

started time in 2 months

issue closedgliese1337/fast-myers-diff

Explain in README the output of calcPatch

For example:

> [...d.calcPatch('foo!!', 'fo1o')]
[ [ 2, 2, '1', 3 ], [ 3, 5, '', 4 ] ]

I guess [2, 2, '1', 3] is between 2nd and 2nd char of initial value (remove nothing), insert '1', (what is 3?)

then [ 3, 5, '', 4 ] is between 3rd and 5th, insert '' (so remove '!!'), there again what is 4?

Thanks for your project

closed time in 2 months

caub

issue commentReactTraining/react-router

[v6] Link with absolute path doesn't respect basename

I don't know yet if I like this change, bascially if I've a route with a link to another route

with react-router@5 you'd just:

<BrowserRouter basename="/app">
  <Switch>
    <Route path="/foo" exact render={() => <>foo! <Link to="/bar"></Link></>}>
    <Route path="/bar" exact render={()=>'bar!'} />
</BrowserRouter>

and the link to "/bar" would translate to "/app/bar" as expected

now with react-router@6 do you need to do?

<BrowserRouter>
  <Route path="/foo" element={<>foo! <Link to="../bar"></Link></>}>
  <Route path="/bar" element={'bar!'} />
</BrowserRouter>

where you need to play with relative path all the way

morhekil

comment created time in 2 months

pull request commentbrigand/jellobot

Add string.prototype.at polyfill (stage3)

beautiful @brigand :+1:

caub

comment created time in 2 months

issue commentReactTraining/react-router

[v6] Link with absolute path doesn't respect basename

Confirmed, I was going to file an issue then noticed this one

https://codesandbox.io/s/peaceful-euclid-6t4nl?file=/src/App.js

What's the best workaround?

morhekil

comment created time in 2 months

pull request commentbrigand/jellobot

Add string.prototype.at polyfill (stage3)

ok good point, string splitting has this capacity anyway

[..."👨🏿‍🦳"]
// (4) ["👨", "🏿", "‍", "🦳"]
caub

comment created time in 2 months

pull request commentbrigand/jellobot

Add string.prototype.at polyfill (stage3)

Sure, but first we need to figure why the CI fails, I don't have docker installed locally anymore so I can't test easily for now

By the way, I'm not sure to understand the added value of .at https://replit.com/@caub/Stringprototypeat#index.js I thought it would return a whole unicode char, unlike charAt

caub

comment created time in 2 months

push eventcaub/jellobot

push time in 2 months

push eventcaub/jellobot

caub

commit sha 8e054c5d184bf5bf12ef01d29d2cd880abd9d5e2

debug CI tests

view details

push time in 2 months

push eventcaub/jellobot

caub

commit sha f1004f8be94ac96ff38c0fe17a69199ad9b1297c

test with only array.prototype.at

view details

push time in 2 months

push eventcaub/jellobot

caub

commit sha 5babc7cf14667b42696100e9d040a28b6fbc85ea

fix missing -r

view details

push time in 2 months

push eventcaub/jellobot

caub

commit sha 4262c637a0a6c6b85118391b0024606217e3c945

restrict .at to babel mode

view details

push time in 2 months

pull request commentbrigand/jellobot

Add string.prototype.at polyfill (stage3)

yes, will do, but I don't understand why the CI fails though

caub

comment created time in 2 months

push eventcaub/jellobot

Cyril Auburtin

commit sha d74bba559b89de6284f769dc7095ecc36af4e283

Update src/plugins/js-eval/jsEvalPlugin.js Co-authored-by: Jordan Harband <ljharb@gmail.com>

view details

push time in 2 months

push eventcaub/jellobot

caub

commit sha e89f7a5aeb79def2f972d73b22e2adc752a8dc2f

update node to require string/array.prototype.at shims at load time

view details

push time in 2 months

push eventcaub/jellobot

caub

commit sha 35c056ce10ea5f2e09e722a02e99256a9b71534f

update node to require string/array.prototype.at shims at load time

view details

push time in 2 months

pull request commentbrigand/jellobot

Add string.prototype.at polyfill (stage3)

it's not sufficient indeed, I'll add node -r string.prototype.at -r array.prototype.at maybe

caub

comment created time in 2 months

push eventcaub/jellobot

Cyril Auburtin

commit sha cb22e03edbd6dddf2eb596af1fd8b5c1598f103f

Update src/plugins/js-eval/Dockerfile Co-authored-by: Jordan Harband <ljharb@gmail.com>

view details

push time in 2 months

PR opened brigand/jellobot

Add string.prototype.at polyfill (stage3)
+4 -9

0 comment

2 changed files

pr created time in 2 months

create barnchcaub/jellobot

branch : at

created branch time in 2 months

issue commentjhchen/fast-diff

Make it compatible with arrays by replacing s.charAt(i) with s[i]

I'm investigating with other libs for now: fast-array-diff and fast-myers-diff which are compatible with both strings and arrays

caub

comment created time in 2 months

issue closedtwbs/bootstrap

dropdown-menu-dark inside a navbar in responsive mode has text invisible

https://jsfiddle.net/caub/qd0ent1z/

  • bootstrap version: 5.0.1
  • browser: chrome

2021-05-31-213904_1461x969_scrot

closed time in 2 months

caub

issue commenttwbs/bootstrap

dropdown-menu-dark inside a navbar in responsive mode has text invisible

Right thanks, I'll try to apply this translate effect only on large screens

Thanks!

caub

comment created time in 2 months

issue openedtwbs/bootstrap

dropdown-menu-dark inside a navbar in responsive mode has text invisible

https://jsfiddle.net/caub/qd0ent1z/

2021-05-31-213904_1461x969_scrot

created time in 2 months

issue openedgliese1337/fast-myers-diff

Explain in README the output of calcPatch

For example:

> [...d.calcPatch('foo!!', 'fo1o')]
[ [ 2, 2, '1', 3 ], [ 3, 5, '', 4 ] ]

I guess [2, 2, '1', 3] is between 2nd and 2nd char of initial value (remove nothing), insert '1', (what is 3?)

then [ 3, 5, '', 4 ] is between 3rd and 5th, insert '' (so remove '!!'), there again what is 4?

Thanks for your project

created time in 2 months