Depending where you added the code, can you disable the theme or plugin using safe mode?
[YourSite]/safe-mode