Created
March 16, 2012 18:51
-
-
Save hjast/2051815 to your computer and use it in GitHub Desktop.
AImport.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Follow this to write other gym import scripts. Import scripts will be faster than a GUI */ | |
object JccImportScript extends ImportScriptDSL | |
{ | |
import com.sportaneous.dataimport.common.Labels._ | |
import JPAScalaBridge._ | |
val locationID = 370000l | |
implicit val loc = Model.find[Facility](locationID).get | |
val org = Organization("Fourtenth Street Y",loc) | |
val classDescription = classDescriptionWithOrg(org) _ | |
val abBlast = classDescription("Ab Blast", | |
"15 minute, high intensity, ab workout.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val aerobics = classDescription("Aerobics with Weights", | |
"Improve your cardiovascular health as well as your strength and flexibility.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val alignmentYoga = classDescription("Alignment Yoga", | |
"Intermediate alignment based class designed to increase bone density, promote muscle tone, and joint mobility.", | |
TopLevelLabel.YOGA, | |
yoga | |
) | |
val bellyDance = classDescription("Belly Dance", | |
"Learn belly dance steps and choreography while developing excellent posture and body awareness.", | |
TopLevelLabel.DANCING, | |
dance,belly, fitness | |
) | |
val bootCamp = classDescription("Boot Camp", | |
"Heart pumping cardio drills, full body muscle conditioning, and calisthenics for functional movements. Get ready to work !", | |
TopLevelLabel.BOOT_CAMP, | |
bootcamp | |
) | |
val definitions = classDescription("Definitions", | |
"Work the whole body with functional exercises designed to improve strength, balance, flexibility, as well as muscle definition.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val definitionPilates = classDescription("Definition Pilates", | |
"Intermediate Pilates class designed improve strength, flexibility, and posture, while promoting mental awareness.", | |
TopLevelLabel.PILATES, | |
pilates | |
) | |
val grooveHoops = classDescription("Groove Hoops", | |
"Hula Hoop party atmosphere - a lot of dancing and fun followed by a cool down.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val hathaYoga = classDescription("Hatha Yoga", | |
"Gentle Yoga class designed to condition your body, improve your health, and calm your mind.", | |
TopLevelLabel.YOGA, | |
yoga | |
) | |
val kickboxBootcamp = classDescription("Kickbox Bootcamp", | |
"Cardio-kick and punching drills, along with plyometric/explosive movements…bootcamp style !", | |
TopLevelLabel.GROUP_FITNESS, | |
boxing,bootcamp | |
) | |
val kravMaga = classDescription("Krav Maga", | |
"Israeli self-defense system based on instinctive reactions and realistic attack scenarios.", | |
TopLevelLabel.MARTIAL_ARTS_MMA, | |
martialArts | |
) | |
val lowImpactStandingAerobics = classDescription("LOW IMPACT STANDING AEROBICS", | |
"Slightly more intense approach to low-impact aerobics (No jumps or high – impact moves.)", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val lunchCrunch = classDescription("Lunch Crunch", | |
" PILATES Intense, 45 minute, Pilates mat-based class.", | |
TopLevelLabel.PILATES, | |
fitness,pilates | |
) | |
val mommyBabyYoga = classDescription("Mommy Baby Yoga", | |
"Gentle Yoga class designed for mom and baby (2 – 15 months).", | |
TopLevelLabel.YOGA, | |
yoga | |
) | |
val morningBoost = classDescription("MORNING BOOST", | |
"Wake up ! Cardio, strength training, and stretching exercises - improve your fitness level and have fun.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val guExercise = classDescription("Mr. Gu’s exercise", | |
"Based on Tai Chi, these gentle exercises can contribute to general health.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val newBodyNewBaby = classDescription("New Body / New Baby", | |
"Work out with your new baby with a unique combination of cardio and strength training exercises.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val nia = classDescription("Nia", | |
"Dance based cardiovascular program that uses whole-body expressive, grounded movement adaptable to every level of fitness and age.", | |
TopLevelLabel.GROUP_FITNESS, | |
dance,fitness | |
) | |
val pilatesFundamentals = classDescription("PILATES FUNDAMENTALS", | |
"Learn the basic concepts of Pilates. Work your core in a full range of exercises designed to strengthen and align\n your entire body.", | |
TopLevelLabel.PILATES, | |
pilates | |
) | |
val pilatesFlow = classDescription("Pilates Flow", | |
"Intermediate Pilates class focusing on core control, alignment, toning, and flexibility.", | |
TopLevelLabel.PILATES, | |
pilates | |
) | |
val powerSculpt = classDescription("Power Sculpt", | |
"Intense 30 minute sculpt class, using hand held weights.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val powerVinyasa = classDescription("Power Vinyasa", | |
"Faster paced class is designed and open to all students wishing to refine basic poses and move forward into\n " + | |
"progressively challenging asana practices", | |
TopLevelLabel.YOGA, | |
yoga,fitness,vinyasa | |
) | |
val prenatalYoga = classDescription("Prenatal Yoga", | |
"This class will help prepare your body and mind for the challenges of labor, delivery, and life with a new baby." | |
) | |
val punkRope = classDescription("Punk Rope", | |
"Fun, fast, loud, cardio workout that blends jump rope, conditioning drills, and core training." | |
) | |
val silverSneakers = classDescription("Silver Sneakers", | |
"Specifically designed for the Silver Sneaker Program, but all members are welcome.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val sitAndBeFit = classDescription("Sit And Be Fit", | |
"Full-body aerobic fitness class all done in a chair.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val stepSculpt = classDescription("STEP N’ SCULPT", | |
"Up-tempo step class incorporating dance moves with an intense upper and lower body workout." , | |
TopLevelLabel.STEP, | |
fitness, step | |
) | |
val sweat = classDescription("S.W.E.A.T", | |
"Strength With Endurance And Toning – A total body workout, toning exercises, endurance drills, that will leave you soaked." , | |
TopLevelLabel.GROUP_FITNESS, | |
fitness,highIntensity | |
) | |
val sundayPilates = classDescription("Sunday Pilates", | |
"Contemporary Pilates class designed to increase core strength, improve flexibility, and energize the body.", | |
TopLevelLabel.PILATES, | |
pilates | |
) | |
val taiChi = classDescription("Tai Chi", | |
"All levels welcome. Develop balance, body and breath control, strength, and posture.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val vinyasaYoga = classDescription("Vinyasa Yoga", | |
"Class for both beginner and intermediate level Yoga student.", | |
TopLevelLabel.YOGA, | |
yoga,vinyasa | |
) | |
val vinyasaOpenYoga = classDescription("Vinyasa Open Yoga", | |
"Class for the more advanced Yoga practitioner.", | |
TopLevelLabel.YOGA, | |
yoga,vinyasa | |
) | |
val wakeShakeAndPump = classDescription("Wake Shake and Pump", | |
"Both high + low impact aerobics, weights, and a stretch.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val yamunaBodyRolling = classDescription("Yamuna Body Rolling", | |
"Lying over a ball, stretching and elongating muscles, dislodging tension and discomfort, and increasing blood flow.", | |
TopLevelLabel.GROUP_FITNESS, | |
fitness | |
) | |
val ybrInfusedPilates = classDescription("Ybr Infused Pilates", | |
"Pilates mat class utilizing small balls of various sizes as props to help free up restrictions in the body.", | |
TopLevelLabel.PILATES, | |
pilates,fitness | |
) | |
val yogaBasics = classDescription("Yog Basics", | |
"Based in Viniyoga, this class focuses on postures and breath practices that are suitable for all levels and all bodies!", | |
TopLevelLabel.YOGA, | |
yoga,vin | |
) | |
val zumba = classDescription("Zumba", | |
"Latin rhythms, easy to follow moves, as well as resistance training, are all combined to tone and sculpt your body " + | |
"while burning fat.", | |
TopLevelLabel.DANCING, | |
com.sportaneous.dataimport.common.Labels.zumba,fitness,dance | |
) | |
activity(wakeShakeAndPump,(7,0)->(9,30), Monday) | |
activity(taiChi,(10,0)->(11,15),Tuesday) | |
activity(hathaYoga,(9,0)->(10,30),Wednesday) | |
//TODO This class could be wrong | |
//activity(pilatesFundamentals,) | |
activity(morningBoost,(7,0)->(9,0),Friday) | |
activity(powerVinyasa,(10,15)->(11,45),Saturday) | |
activity(definitions,(9,30)->(10,30),Monday) | |
//How long is this one(??) | |
activity(alignmentYoga,(10,30)->(11,15),Monday) | |
/*activity(taiChi,"Roberto", | |
'10:00AM,'11:15AM,Tuesday), | |
activity(hathaYoga, "Susan G", '9:00AM, '10:30AM) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment