snappy code