Nothing in this article shall be construed to prohibit any resident wholesaler, dealer or jobber to sell at wholesale such fireworks as are not herein prohibited or the sale of any kind of fireworks provided the same are to be shipped directly out of state in accordance with regulations of the United States department of transportation covering the transportation of explosives and other dangerous articles by motor, rail and water, or the use of fireworks by railroads or other transportation agencies for signal purposes or illumination, or the sale or use of blank cartridges for a show or theater, or for signal or ceremonial purposes in athletics or sports, or for use by military organizations, or the use of fireworks for agricultural purposes under conditions approved by the local authority.