profile
viewpoint
Christian Gill gillchristian @housinganywhere Rotterdam, Netherlands https://gillchristian.xyz Open Source all the things \o/

push eventgillchristian/monadic.party

gillchristian

commit sha a02edd75117f77fd737a5a9e1f014649634dea0b

Fix/add tests & refactor

view details

push time in 3 days

push eventgillchristian/monadic.party

gillchristian

commit sha fb06974785c5b570d2c9ab1c77cd6cd3390e62fa

Fix up/down migrations

view details

gillchristian

commit sha bab497d36aa3c0a1baffb2859c089e3689e97560

Fix sql files

view details

push time in 4 days

push eventgillchristian/monadic.party

gillchristian

commit sha 3bc558659ccc95566ed7bf9decedddaae6ad0a1e

Add testing workshop repo link

view details

push time in 4 days

startedarthurxavierx/dotfiles

started time in 5 days

push eventgillchristian/monadic.party

gillchristian

commit sha 0dfe97bb3de784b32ee7502e24d69ea1617cb495

Update linear-types notes

view details

push time in 5 days

push eventgillchristian/monadic.party

gillchristian

commit sha d5e97dae03c1b41bfc4991568a673c8cdc32ab08

Add purescript notes

view details

gillchristian

commit sha f554ea46660eba2045f2529b0cd22cb4d8308c08

Add Krzysztof notes on linear types

view details

gillchristian

commit sha 2cee2f4ada56d5a12377e67b572bcfbecaa0436d

Update excersises.md & code

view details

gillchristian

commit sha 1f0ea0b9afd881cefc5c9c2d9ad8dbceacd079f1

Get code from repo

view details

gillchristian

commit sha 8e419581c2c576fe783fea286daa02acfe119613

Update DSLs notes

view details

gillchristian

commit sha 064879efaff4a50e70bcc300b9dfb7c77b20c064

Update boring-haskell project [WIP]

view details

push time in 5 days

issue commentjxnblk/mdx-deck

PDF export

Doesn't work for me either, tried @filoxo suggestion but still same error

Aetet

comment created time in 6 days

push eventgillchristian/monadic.party

gillchristian

commit sha a02ae253632155c1b3899425678c3821548c66a5

Add type-safe-embedded-dsls/

view details

gillchristian

commit sha b32d8f8b1b51e34a2909bfa3e493177a744eac1a

Update linear-types notes

view details

push time in 6 days

push eventgillchristian/monadic.party

gillchristian

commit sha d4c0ae1b7b1a978e0da2ceabe5cc2cbe7b52309f

Add readme.md

view details

push time in 7 days

create barnchgillchristian/monadic.party

branch : master

created branch time in 7 days

created repositorygillchristian/monadic.party

https://monadic.party

created time in 7 days

startedSchniz/migratype

started time in 9 days

push eventgillchristian/vigilant-engine

gillchristian

commit sha 9531aa8d10d83bf9a82ac68d2c924cf416f0a0ef

support(matchers): Update matchers

view details

push time in 10 days

pull request commenthousinganywhere/safe-redux

feature(types): Add Handler type

If you open an issue explaining a bit more we can discuss there.

gillchristian

comment created time in 13 days

pull request commenthousinganywhere/safe-redux

feature(types): Add Handler type

Released 89c3f0e37ebf61d759d8ed499f8bc2188fef2595

gillchristian

comment created time in 13 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha 89c3f0e37ebf61d759d8ed499f8bc2188fef2595

v1.2.0

view details

push time in 13 days

created taghousinganywhere/safe-redux

tagv1.2.0

Create and handle safely typed actions

created time in 13 days

delete branch housinganywhere/safe-redux

delete branch : feature/handler-type

delete time in 13 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha 81d8e8186cd14fa83439ff36e6e9f8d531d63136

feature(types): Add Handler type

view details

Christian Gill

commit sha fc4aa9a01b62907d3a5a60db11c0a63f7a190d4d

Merge pull request #4 from housinganywhere/feature/handler-type feature(types): Add Handler type

view details

push time in 13 days

PR merged housinganywhere/safe-redux

feature(types): Add Handler type

Handler type can be used when you don't want to define the handlers inline

+82 -37

1 comment

4 changed files

gillchristian

pr closed time in 13 days

pull request commenthousinganywhere/safe-redux

feature(types): Add Handler type

@raybooysen added the Handler type mentioned in https://github.com/Hotell/rex-tils/issues/23#issuecomment-501621223

gillchristian

comment created time in 14 days

PR opened housinganywhere/safe-redux

Reviewers
feature(types): Add Handler type

Handler type can be used when you don't want to define the handlers inline

+82 -37

0 comment

4 changed files

pr created time in 14 days

create barnchhousinganywhere/safe-redux

branch : feature/handler-type

created branch time in 14 days

issue commentHotell/rex-tils

Proposal implementation of handleActions

Thanks will give it a try. Checking your code's TS, there is still the error with the handler object. How are you disabling this error?

I found out about the error when you pointed it out, it's not shown in my editor but it is on the playground. Probably because of a different TS config.

Screenshot from 2019-06-13 09-45-35

Screenshot from 2019-06-13 09-46-34

BTW, none of this is an indictment on your code, I've just been grappling with the same sort of problem trying to ensure that all our reducers pick up the changes to actions.

Of course :tada:


I've been using the handlers inline all the time, so I never had the need, but it really makes sense to extract them. Found a way to do it with ActionsOfType. It's a bit verbose on the types, so I personally prefer the handlers inline. But hey, it's possible :tada:

type Handler<State, ActionType extends string, Actions> = 
  (s: State, a: ActionsOfType<Actions, ActionType>) => State

const barHandler: Handler<State, 'bar', Actions> =
  (s, { payload }) => ({n: s.n + payload})

handleActions<State, Types, Actions>(
    {
        foo: (s) => ({n: s.n + 1}),
        bar: barHandler,
    },
    { n: 0},
)

Updated the playground: http://bit.ly/2F1V0Gz

And I think I will add it to the library when I get some time.

gillchristian

comment created time in 14 days

issue commentHotell/rex-tils

Proposal implementation of handleActions

@raybooysen even with that any there the inference works when you use handleActions.

Check it out here: http://bit.ly/2WAWFZw

Try changing the handlers you pass to handleActions or adding more cases to the Types (line 70), also check how handleActions infers actions of each handler having a payload or not.

It'd be great if we could fix this error but I don't think it changes the result.

Also, I published what's in the playground as a separate pacakge https://github.com/housinganywhere/safe-redux

gillchristian

comment created time in 15 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha 6534d0be605ae9bca81d551d53df0e7ee994f805

v1.1.1

view details

push time in 15 days

created taghousinganywhere/safe-redux

tagv1.1.1

Create and handle safely typed actions

created time in 15 days

delete branch housinganywhere/safe-redux

delete branch : support/upgrade-dependencies

delete time in 15 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha dfc0f376fe4cffe6a0a920fa37b37ecc2a7fbce2

support(dependencies): Upgrade dependencies

view details

Christian Gill

commit sha cf210a4e18759136df3c51652e53591e83eb5d14

support(dependencies): Upgrade dependencies (#3) support(dependencies): Upgrade dependencies

view details

push time in 15 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha dfc0f376fe4cffe6a0a920fa37b37ecc2a7fbce2

support(dependencies): Upgrade dependencies

view details

push time in 15 days

push eventhousinganywhere/safe-redux

gillchristian

commit sha 8d2b2ee789cc5682acb83db1b52a25fcfad2e353

support(dependencies): Upgrade dependencies

view details

push time in 15 days

create barnchhousinganywhere/safe-redux

branch : support/upgrade-dependencies

created branch time in 15 days

push eventgillchristian/legendary-adventure

Christian Gill

commit sha 31132c926397fbcd60f2998aadb4c3e3f72c775c

Create README.md

view details

push time in 16 days

push eventgillchristian/legendary-adventure

Christian Gill

commit sha d51f396842b8794f1df29796e7f552f73abba14c

Add never, object & basic type inference sections

view details

push time in 16 days

create barnchgillchristian/legendary-adventure

branch : master

created branch time in 16 days

created repositorygillchristian/legendary-adventure

A TS tutorial with no guarantees

created time in 16 days

PR closed trustedanalytics/console

Fix images width and tags line wrap.
  • Fix the issue with images width on both Instances & Marketplace views.
  • Make services tags on the Marketplace view wrap into a new line.

NOTE: I was not able to run it locally due to the project's dependencies. Changes were tested on Chrome Dev Tools and added to the corresponding SCSS files.

+17 -1

1 comment

1 changed file

gillchristian

pr closed time in 17 days

PR closed up-for-grabs/up-for-grabs.net

Add trae to projects needs tasks

This PR adds trae to the projects.

+12 -0

0 comment

1 changed file

gillchristian

pr closed time in 17 days

startedsras/elminator

started time in 20 days

startedxcambar/purs

started time in 22 days

startedjkachmar/scale-by-the-bay-2018

started time in 22 days

startedreact-monaco-editor/react-monaco-editor

started time in 22 days

startedcohomolo-gy/haskell-resources

started time in 24 days

startedjoonhocho/tsdef

started time in 24 days

startedjaredly/milk

started time in a month

fork gillchristian/material-ui

React components for faster and easier web development. Build your own design system, or start with Material Design.

https://material-ui.com/

fork in a month

PublicEvent

push eventgillchristian/vigilant-engine

gillchristian

commit sha 3b050b30e0201883c26c39a938870c798666c0c8

feature(matchers): Fix/improve matchers Also split description into two fields

view details

push time in a month

startedogham/exa

started time in a month

pull request commentonivim/oni2

support(menu): Fix cycle up

No worries. Whenever this can move forward is fine to me.

I'm happy you liked the tests, if there's anything that could be improved let me know. Now that I have an idea of how to write these tests I think I will work on increasing the coverage of Store tests.

gillchristian

comment created time in a month

issue openedonivim/oni2

Menu (FlatList) viewport doesn't follow the selected item

When there are more items than the Menu/FlatList shows it doesn't follow the selectedItem.

You can see here: https://www.youtube.com/watch?v=xPhhNNhfVkM

I changed my menu config form <C-N>/<C-P> to <C-J>/<C-K>.

I'd like to give it a shot at fixing it.

created time in a month

pull request commentonivim/oni2

support(menu): Fix cycle up

I see tests failing on MacOS for a different suite. I don't have a Mac to reproduce. On my machine (Ubuhtu 18.04) all run fine so I cannot check if my changes did break something.

gillchristian

comment created time in a month

startedonivim/oni2

started time in a month

pull request commentonivim/oni2

support(menu): Fix cycle up

This is ready for review :sweat_smile:

gillchristian

comment created time in a month

push eventgillchristian/oni2

gillchristian

commit sha 8895e6e21eb1bba18e8372ebe5de45b3187d3a7b

support(tests): Add first Store tests Goal of this commit was to test the `MenuStoreConnectorTest` actions: `MenuPosition`, `MenuPreviousItem` and `MenuNextItem`. Added Oni_Store_Test module, since there were no tests for the store. Also updated the way `MenuStoreConnectorTest` sets the new position based on what was discovered when adding tests for `MenuPosition`.

view details

push time in a month

push eventgillchristian/vigilant-engine

gillchristian

commit sha 6e793f283c2d16d7089ee28af0ba36ad9656b3c3

fix(model): Change date names

view details

push time in a month

pull request commentonivim/oni2

support(menu): Fix cycle up

if you mean the content of your pr message

Yes I meant the message.

I think we'd be all for any tests tests you add

Great! I'm new to Reason and Revery, I'll check the other tests and see what I can add. Most probably I'll propose something here before adding anything.

gillchristian

comment created time in 2 months

pull request commentonivim/oni2

support(menu): Fix cycle up

This is my first PR. I have a few questions general questions.

  • Is there some format that should be followed for the branch names (since it's a fork maybe it's not relevant) and commit messages?
  • Is there a format for the PR? Maybe is worth adding a template :smile:

And also a question about this particular PR. I did not see any tests for src/editor/Store, should I tests for this changes? Is adding tests for src/editor/Store planned? If so maybe is worth adding and issue for that.

gillchristian

comment created time in 2 months

PR opened onivim/oni2

support(menu): Fix cycle up

Solves #314

When moving on the menu (MenuPreviousItem & MenuNextItem) going for last to first did work but going from first to last didn't.

+2 -1

0 comment

1 changed file

pr created time in 2 months

create barnchgillchristian/oni2

branch : fix/menu/cycle-up

created branch time in 2 months

fork gillchristian/oni2

Native, lightweight modal code editor

https://v2.onivim.io

fork in 2 months

issue openedonivim/oni2

Menu does not cycle from first to last item

The menu (quickopen and commandPalette) cycles on MenunextItem from last to first. But does not cycle from first to last on MenuPreviousItem.

created time in 2 months

issue commentrevery-ui/revery-quick-start

Build failure when running `esy build` under Ubuntu 18.04.1 LTS

I've found another issue when running esy build on Ubuntu 18.04 LTS

I'm not sure where to report this. If in other repo (e.g. revery), in a separate issue or here.

asciicast

shaform

comment created time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha 594e0d302b4efb32990c01f5fb03ced41e754032

feature(cli): default arguments Also add src/Utils & src/System to move some helpers there, and changed (again) the way the reading, parsing and writing is composed

view details

push time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha 818c55419d8d4c5d18e18d0908dd9a335e789469

support(style): Rename parsing and use =<< instead of >>=

view details

push time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha b49485ee93a600289d6e913f537f38af36e11837

support(style): Fix compiler warnings

view details

gillchristian

commit sha 5f6f729c958a1ede67b176833abf6043b4de58bf

support(style): Move matching logic to src/Matchers

view details

push time in 2 months

startedstaltz/use-profunctor-state

started time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha 9f6881376d5ca5b6cb3c863b956cf029ef5c7dfe

feature(parsing): Add ToJSON to src/Date

view details

push time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha dd3b558b3b446f35a5c736e65c993f5a8c32c62d

feature(parsing): Add ToJSON to src/Date

view details

push time in 2 months

startedarturbien/React95

started time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha b409446895a4241df48617a1b0306c8ab49b79e6

feature(parsing): Parse dates [wip] Still missing ToJSON typeclass instance on Date to serialize properly

view details

push time in 2 months

push eventgillchristian/vigilant-engine

gillchristian

commit sha 3172062cde0c3010807e911a73201de3d1875339

support(readme): Update readme Also add todo.txt and remove .travis.yml

view details

push time in 2 months

create barnchgillchristian/vigilant-engine

branch : master

created branch time in 2 months

created repositorygillchristian/vigilant-engine

:chart_with_upwards_trend: A program to parse and generate reports of my financial statements

created time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha 00491176ea8cfe569b8852e46307f0c7a4fd86d1

Update readme.md

view details

gillchristian

commit sha ee81b8647813be1e2c65ece7e1a2d1b9518bf6a0

support(build): Put typings in typings/ Since now there is have more than one generated then the build produces more than one `.d.ts` file. Before this commit `index.d.ts` would be put in the root but with more than one file that is not good. So `.d.ts` files now are placed on `typings/`.

view details

gillchristian

commit sha 3f5daf6efd5c11c261a0055caf8609fa6938b468

v1.1.0

view details

push time in 2 months

created taghousinganywhere/safe-redux

tagv1.1.0

Create and handle safely typed actions

created time in 2 months

delete branch housinganywhere/safe-redux

delete branch : feature/more-type-utils

delete time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha 1d78f306e3aef30d90eb9ba43c5afe84974a2c07

feature(utils): Add BindAction util Also update prettier and run it

view details

Christian Gill

commit sha e237f7356e5bd10acb5ac332699248d5166fffb0

feature(utils): Add BindAction and Payload utils (#2) feature(utils): Add BindAction and Payload utils

view details

push time in 2 months

PR merged housinganywhere/safe-redux

feature(utils): Add BindAction and Payload utils

Add type utils:

  • BindAction: changes return type of an action creator to void. It's the type that should be passed to a component where we don't care about what dispatching an action returns just what arguments we need to call it with.
  • Payload: get the payload of the action created by an action creator.

Also update prettier to latest version.

+160 -15

0 comment

5 changed files

gillchristian

pr closed time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha 1d78f306e3aef30d90eb9ba43c5afe84974a2c07

feature(utils): Add BindAction util Also update prettier and run it

view details

push time in 2 months

Pull request review commenthousinganywhere/safe-redux

feature(utils): Add BindAction and Payload utils

 const reducer = handleActions<State, ActionTypes, Actions>( export default reducer; ``` +### Type utils++`safe-redux` also provides some type utils to work with Redux.++#### `Payload`++Get the type of the payload of the action created by an action creator.++#### `BindAction`++Changes the return type of an action creator to `void`. In the context of a+component the only important part of an action is the types of it's arguments.+We don't rely on the return type.++```typescript+// src/pages/MyPage/MyPage.container.ts++import { connect } from 'react-redux';+import { Payload, BindAction } from '@housinganywhere/safe-redux';++import { Actions } from './actions';+import MyPage from './MyPage';++type IncPayload = Payload<typeof Actions.incBy>; // { by: number }

I checked Moneta UI and whatever use case I had looks like we don't have it anymore because it's not used there. So for now I'll remove it. If it's need it can be added.

gillchristian

comment created time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha e0c062079cfe4133d9eedf816db34949845a2406

feature(utils): Add BindAction util Also update prettier and run it

view details

push time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha 56873a63be38431bdf9d01a8c0490cc0e0e7a72a

feature(utils): Add BindAction and Payload utils Also update prettier and run it

view details

push time in 2 months

PR opened housinganywhere/safe-redux

feature(utils): Add BindAction and Payload utils

Add type utils:

  • BindAction: changes return type of an action creator to void. It's the type that should be passed to a component where we don't care about what dispatching an action returns just what arguments we need to call it with.
  • Payload: get the payload of the action created by an action creator.

Also update prettier to latest version.

+172 -15

0 comment

5 changed files

pr created time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha bf4e82df29b8450cc3679e04134acd4773dfd26f

feature(utils): Add BindAction and Payload utils Also update prettier and run it

view details

push time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha c8b9469233f062e3f532bfb8d6a23baf8de41565

feature(utils): Add BindAction and Payload utils Also update prettier and run it

view details

push time in 2 months

push eventhousinganywhere/safe-redux

gillchristian

commit sha 434767ccbd8fcbdf139665be45890b30437db850

feature(utils): Add BindAction and Payload utils Also update prettier and run it

view details

push time in 2 months

create barnchhousinganywhere/safe-redux

branch : feature/more-type-utils

created branch time in 2 months

push eventgillchristian/promise-cache

gillchristian

commit sha 96edea0f2e34b50da830be5d269909351b244ef9

Batman This commit has no parents

view details

push time in 2 months

create barnchgillchristian/promise-cache

branch : master

created branch time in 2 months

created repositorygillchristian/promise-cache

created time in 2 months

startedHCoban/codeowners

started time in 2 months

push eventhousinganywhere/match

gillchristian

commit sha 99ce431d31aa6d892ae2abbcdd07d8ed5a76c871

Update readme.md

view details

push time in 2 months

push eventhousinganywhere/match

gillchristian

commit sha 4fd1ea87c10ec573c6e149dbce8d3bf030eccb8c

v1.1.0

view details

push time in 2 months

created taghousinganywhere/match

tagv1.1.0

poor man's pattern matching :traffic_light:

created time in 2 months

delete branch housinganywhere/match

delete branch : add-wild-match

delete time in 2 months

push eventhousinganywhere/match

Christian Gill

commit sha 571b8e4c93dc76352cc7127d67037adaaac4f4b7

Add wildMatch (#1) Add `wildMatch` to allow partial pattern matching.

view details

push time in 2 months

PR merged housinganywhere/match

Add wildMatch

Add wildMatch to allow partial pattern matching.

+91 -32

1 comment

3 changed files

gillchristian

pr closed time in 2 months

more