We demonstrate a general linear pulse-shaping technique based on integrated III-V Bragg gratings (BGs). Such a technique allows for the synthesizing of complex waveforms with picosecond resolution using a compact single-waveguide design. This approach is experimentally demonstrated by fabricating and testing a series of integrated ultrafast optical pulse shapers based on BG geometries acting as time-domain code generators operating at 500 Gbits/s.