Every person is liable to punishment by the laws of this State, for a public offense committed by him therein, except where it is by law cognizable exclusively in the courts of the United States; and except as otherwise provided by law the jurisdiction of every public offense is in any competent court within the jurisdictional territory of which it is committed.
Ca. Pen. Code § 777