I can select all apex triggers by using
select id, name from ApexTrigger
and classes by using
select id, name from ApexClasses