In a large bowl, mix flour, cornmeal, salt, pepper, and garlic powder. Add pickles and onion, toss to coat. In a small bowl, beat egg into buttermilk, then add to pickle mixture, stirring until combined.
Heat oil in a large skillet to 350°F. Drop pickle batter into oil by tablespoonsful, cook 4 to 5 minutes, flip and press flat, cook 4 to 5 more minutes until crispy and golden brown.