preposition
I park my car by my house
I go home by High Wycombe
I often travel by train
I have to leave by Monday
We travel only by night
adverb
When she is close by I get a tingling sensation
When he walked by I nearly died
We put by a little for a rainy day