Best JavaScript code snippet using testcafe
index.js
Source:index.js
1const Discord = require("discord.js");2const { prefix, token } = require("./config.json");3const { Client, Intents } = require('discord.js');4const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });5const jokes = [6 "Yo momma is so fat that her bellybutton gets home 15 minutes before she does.",7 "Yo momma is so fat that when she was diagnosed with a flesh-eating disease, the doctor gave her ten years to live.",8 "Yo momma is so fat that the National Weather Service names each one of her farts.",9 "Yo momma is so fat that when she wears a yellow raincoat, people yell 'taxi!'",10 "Yo momma is so fat and dumb that the only reason she opened her email was because she heard it contained spam.",11 "Yo momma is so fat she threw on a sheet for Halloween and went as Antarctica.",12 "Yo momma is so fat that she looked up cheat codes for Wii Fit",13 "Yo momma is so fat that the only exercise she gets is when she chases the ice cream truck.",14 "Yo momma is so fat that she sat on a dollar and squeezed a booger out George Washington's nose.",15 "Yo momma is so fat that when she gets in an elevator, it has to go down.",16 "Yo momma is so fat that when her beeper goes off, people think she's backing up.",17 "Yo momma is so fat that she has to iron her pants on the driveway.",18 "Yo momma is so fat that she left the house in high heels and came back wearing flip flops.",19 "Yo momma is so fat that people jog around her for exercise.",20 "Yo momma is so fat that she was floating in the ocean and Spain claimed her for the New World.",21 "Yo momma is so fat that when she walked in front of the TV, I missed 3 seasons of Breaking Bad.",22 "Yo momma is so fat that you have to grease the door frame and hold a twinkie on the other side just to get her through!",23 "Yo momma is so fat that that when she sits on the beach, Greenpeace shows up and tries to tow her back into the ocean...",24 "Yo momma is so fat that when she bungee jumps, she brings down the bridge too.",25 "Yo momma is so fat that when she talks to herself, it's a long distance call.",26 "Yo momma is so fat that the last time she saw 90210, it was on a scale.",27 "Yo momma is so fat that light bends around her.",28 "Yo momma is so fat that I took a picture of her last Christmas and it's still printing!",29 "Yo momma is so fat that when she sat on Wal-Mart, she lowered the prices.",30 "Yo momma is so fat that when she sat on an iphone, it turned into an ipad.",31 "Yo momma is so fat that even god can't lift her spirit.",32 "Yo momma is so fat that she gets group insurance.",33 "Yo momma is so fat that she was zoned for commercial development.",34 "Yo momma is so fat that she walked into the Gap and filled it.",35 "Yo momma is so fat that she comes at you from all directions.",36 "Yo momma is so fat that when she climbed onto a diving board at the beach, the lifeguard told your dad 'sorry, you can't park here'.",37 "Yo momma is so fat that her cereal bowl came with a lifeguard.",38 "Yo momma is so fat that she looks like she's smuggling a Volkswagen.",39 "Yo momma is so fat that when she got her shoes shined, she had to take the guy's word for it.",40 "Yo momma is so fat that when she sings, it's over for everybody.",41 "Yo momma is so fat that when she ran away, they had to use all four sides of the milk carton to display her picture.",42 "Yo momma is so fat that when she was growing up she didn't play with dolls, she played with midgets.",43 "Yo momma is so fat that she uses two buses for roller-blades.",44 "Yo momma's so fat she blew up the Death Star.",45 "Yo momma is so fat that when she goes to a buffet, she gets the group rate.",46 "Yo momma is so fat that she has to put her belt on with a boomerang.",47 "Yo momma is so fat that she broke the Stairway to Heaven.",48 "Yo momma is so fat that she doesn't eat with a fork, she eats with a forklift.",49 "Yo momma is so fat that the last time the landlord saw her, he doubled the rent.",50 "Yo momma is so fat that Weight Watchers won't look at her.",51 "Yo momma is so fat that the highway patrol made her wear a sign saying 'Caution! Wide Turn'.",52 "Yo momma is so fat that when she sits around the house, she SITS AROUND THE HOUSE!",53 "Yo momma is so fat that when she steps on a scale, it reads 'one at a time, please'.",54 "Yo momma is so fat that she fell in love and broke it.",55 "Yo momma is so fat that when she gets on the scale it says 'We don't do livestock'.",56 "Yo momma is so fat that when she tripped on 4th Ave, she landed on 12th.",57 "Yo momma is so fat that God couldn't light the Earth until she moved!",58 "Yo momma is so fat that even Bill Gates couldn't pay for her liposuction!",59 "Yo momma is so fat that she has to pull down her pants to get into her pockets.",60 "Yo momma is so fat that she was born on the fourth, fifth, and sixth of June.",61 "Yo momma is so fat that she could fall down and wouldn't even know it.",62 "Yo momma is so fat that the sign inside one restaurant says, âMaximum occupancy: 300, or Yo momma.â",63 "Yo momma is so fat that she puts mayonnaise on aspirin.",64 "Yo momma is so fat that she was born with a silver shovel in her mouth.",65 "Yo momma is so fat that when she hauls ass, she has to make two trips.",66 "Yo momma is so fat that she had to go to Sea World to get baptized.",67 "Yo momma is so fat that her belly button's got an echo.",68 "Yo momma is so fat that when she turns around people throw her a welcome back party.",69 "Yo momma is so fat that her belly button doesn't have lint, it has sweaters.",70 "Yo momma is so fat that a picture of her would fall off the wall.",71 "Yo momma is so fat that when she takes a shower, her feet don't get wet.",72 "Yo momma is so fat that she puts on her lipstick with a paint-roller!",73 "Yo momma is so fat that she could sell shade.",74 "Yo momma is so fat that I ran around her twice and got lost.",75 "Yo momma is so fat that the shadow of her butt weighs 100 pounds.",76 "Yo momma is so fat that when she's standing on the corner police drive by and yell, âHey, break it up.â",77 "Yo momma is so fat that her blood type is Ragu.",78 "Yo momma is so fat that when she runs the fifty-yard dash she needs an overnight bag.",79 "Yo momma is so fat that she can't even fit into an AOL chat room.",80 "Yo momma is so fat when she goes skydiving she doesn't use a parachute to land, she uses a twin-engine plane!",81 "Yo momma is so fat MTX audio's subwoofers couldn't rattle her bones!",82 "Yo momma is so fat her headphones are a pair of PA speakers connected to a car amplifier.",83 "Yo momma is so fat that she doesn't have a tailor, she has a contractor.",84 "Yo momma is so fat that eating contests have banned her because she is unfair competition.",85 "Yo momma is so fat that she measures 36-24-36, and the other arm is just as big.",86 "Yo momma is so fat that she gets her toenails painted at Lucky's Auto Body.",87 "Yo momma is so fat that when she goes to an amusement park, people try to ride HER!",88 "Yo momma is so fat that when she jumps up in the air she gets stuck!",89 "Yo momma is so fat that she has more Chins than a Chinese phone book!",90 "Yo momma is so fat that she influences the tides.",91 "Yo momma is so fat that when she plays hopscotch, she goes 'New York, L.A., Chicago...'",92 "Yo momma is so fat that NASA has to orbit a satellite around her!",93 "Yo momma is so fat that when she sits on my face I can't hear the stereo.",94 "Yo momma is so fat that they have to grease the bath tub to get her out!",95 "Yo momma is so fat that she's on both sides of the family!",96 "Yo momma is so fat that at the zoo, the elephants throw HER peanuts.",97 "Yo momma is so fat you have to roll over twice to get off her.",98 "Yo momma is so fat that she sets off car alarms when she runs.",99 "Yo momma is so fat that she cant reach into her back pocket.",100 "Yo momma is so fat that she has her own gravity field.",101 "Yo momma is so fat that she stepped on a rainbow and made Skittles.",102 "Yo momma is so fat that the only pictures you have of her were taken by satellite cameras.",103 "Yo momma is so fat that when she wears a 'Malcolm X' T-shirt, helicopters try to land on her back!",104 "Yo momma is so fat that it took Usain Bolt 3 years to run around her.",105 "Yo momma so fat that she sweats more than a dog in a chinese restaurant.",106 "Yo momma so fat, that went she stepped in the water, Thailand had to declare another tsunami warning.",107 "Yo momma is so fat that that she cant tie her own shoes.",108 "Yo momma is so fat that when she lays on the beach, people run around yelling Free Willy.",109 "Yo momma is so fat that she uses redwoods to pick her teeth",110 "Yo momma is so fat that she cut her leg and gravy poured out",111 "Yo momma is so fat that she was in the Macy's Thanksgiving Day Parade... wearing ropes.",112 "Yo momma is so fat that she went on a light diet. As soon as it's light she starts eating.",113 "Yo momma is so fat that she's half Italian, half Irish, and half American.",114 "Yo momma is so fat that her waist size is the Equator.",115 "Yo momma is so fat that she can't even jump to a conclusion.",116 "Yo momma is so fat that she uses a mattress for a tampon.",117 "Yo momma is so fat that when she got hit by a bus, she said, 'Who threw that rock at me?'",118 "Yo momma is so fat that we went to the drive-in and didn't have to pay for her because we dressed her up as a Toyota.",119 "Yo momma is so fat that when she was born, she gave the hospital stretch marks.",120 "Yo momma is so fat that she was cut from the cast of E.T., because she caused an eclipse when she rode the bike across the moon.",121 "Yo momma is so fat that when you get on top of her your ears pop.",122 "Yo momma is so fat that she got hit by a car and had to go to the hospital to have it removed.",123 "Yo momma is so fat that she eats 'Wheat Thicks'.",124 "Yo momma is so fat that we're in her right now!",125 "Yo momma is so fat that she went to the movie theatre and sat next to everyone.",126 "Yo momma is so fat that she has been declared a natural habitat for condors.",127 "Yo momma is so fat that when she wants to shake someones hand, she has to give directions!",128 "Yo momma is so fat that even Dora can't explore her!",129 "Yo momma is so fat that when she gets on the scale it says 'to be continued'.",130 "Yo momma is so fat that when she goes to a restaurant, she looks at the menu and says 'okay!'",131 "Yo momma is so fat that even Chuck Norris couldn't run around her.",132 "Yo momma is so fat that her neck looks like a dozen hot dogs!",133 "Yo momma is so fat that when she bungee jumps she goes straight to hell!",134 "Yo momma is so fat that she's got her own area code!",135 "Yo momma is so fat that she looks like she's smuggling a Volkswagen!",136 "Yo momma is so fat that she has to buy three airline tickets.",137 "Yo momma is so fat that whenever she goes to the beach the tide comes in!",138 "Yo momma is so fat that she's got Amtrak written on her leg.",139 "Yo momma is so fat that her legs are like spoiled milk - white & chunky!",140 "Yo momma is so fat that I had to take a train and two buses just to get on the her good side!",141 "Yo momma is so fat that she wakes up in sections!",142 "Yo momma so fat, all she wants for Christmas is to see her feet.",143 "Yo momma is so fat that when she lies on the beach no one else gets any sun!",144 "Yo momma is so fat that that her senior pictures had to be taken from a helicopter!",145 "Yo momma is so fat that everytime she walks in high heels, she strikes oil!",146 "Yo momma is so fat that she fell and created the Grand Canyon!",147 "Yo momma is so fat that her butt drags on the ground and kids yell - 'there goes santa claus with his bag of toys!'",148 "Yo momma is so fat that even her clothes have stretch marks!",149 "Yo momma is so fat that she has to use a VCR as a beeper!",150 "Yo momma is so fat that when she asked for a waterbed, they put a blanket over the ocean!",151 "Yo momma is so fat that she got hit by a parked car!",152 "Yo momma is so fat that they use the elastic in her underwear for bungee jumping.",153 "Yo momma is so fat that when we were playing Call of Duty, I got a 20 kill streak for killing her.",154 "Yo momma is so fat that Dracula got Type 2 Diabetes after biting her neck.",155 "Yo momma is so fat that when she visited Toronto's City Hall, she was arrested for attempting to smuggle 500 lbs of crack into Mayor Rob Ford's office.",156 "Yo momma is so fat that when she fell over she rocked herself asleep trying to get up again.",157 "Yo momma is so fat that that when I tried to drive around her I ran out of gas.",158 "Yo momma is so fat that when she went to church and sat on a bible, Jesus came out and said 'LET MY PEOPLE GO!'",159 "Yo momma is so fat that when she dances at a concert the whole band skips.",160 "Yo momma is so fat that she stands in two time zones.",161 "Yo momma is so fat that she went to the fair and the kids thought she was a bouncy castle.",162 "Yo momma is so fat that when she goes to an all you can eat buffet, they have to install speed bumps.",163 "Yo momma is so fat that the camera TAKES AWAY 10 lbs from her appearance.",164 "Yo momma is so fat that her sedan can fit 5 people... or just yo momma with the front seats removed.",165 "Yo momma is so fat that when she went to seaworld the whales started singing 'We Are Family'.",166 "Yo momma is so fat that she fell out of both sides of her bed.",167 "Yo momma is so fat that the stripes on her pajamas never end.",168 "Yo momma is so fat, Al Gore accuses her of global warning everytime she farts!",169 "Yo momma is so fat that she's got every caterer in the city on speed dial!",170 "Yo momma's so fat that when she goes on a scale, it shows her own phone number.",171 "Yo momma's so fat that she doesn't need the internet - she's worldwide.",172 "Yo momma's so fat that when she goes on a scale, it reads 'lose some weight'.",173 "Yo momma's so fat that she doesn't get dreams, she gets movies!",174 "Yo momma's so fat that when she walks, she changes the earth's rotation!",175 "Yo momma is so fat that she uses the entire country of Mexico as her tanning bed.",176 "Yo momma is so ugly that when she went to a beautician it took 12 hours... to get a quote!",177 "Yo momma is so ugly that she looked out the window and got arrested for mooning.",178 "Yo momma is so ugly that people go as her for Halloween.",179 "Yo momma is so ugly that she turned Medusa to stone!",180 "Yo momma is so ugly that the government moved Halloween to her birthday!",181 "Yo momma is so ugly that she scares the roaches away.",182 "Yo momma is so ugly that she scared the crap out of the toilet.",183 "Yo momma is so ugly that... well... look at you!",184 "Yo momma is so ugly that when she looks in the mirror, the reflection looks back and shakes its head.",185 "Yo momma is so ugly that she looks like she's been in a dryer filled with rocks.",186 "Yo momma is so ugly that she makes blind children cry.",187 "Yo momma is so ugly that she climbed the ugly ladder and didn't miss a step.",188 "Yo momma is so ugly that the last time I saw something that looked like her, I pinned a tail on it.",189 "Yo momma is so ugly that we put her in the kennel when we go on vacation.",190 "Yo momma is so ugly that her shadow ran away from her.",191 "Yo momma is so ugly that she could scare the flies off a shit wagon.",192 "Yo momma is so ugly that her birth certificate contained an apology letter from the condom factory.",193 "Yo momma is so ugly that that your father takes her to work with him so that he doesn't have to kiss her goodbye.",194 "Yo momma is so ugly that she tried to take a bath and the water jumped out!",195 "Yo momma is so ugly that when she walks down the street in September, people say 'Wow, is it Halloween already?'",196 "Yo momma is so ugly that her mom had to be drunk to breast feed her.",197 "Yo momma is so ugly that when she walks into a bank, they turn off the surveillance cameras.",198 "Yo momma is so ugly that they didn't give her a costume when she auditioned for Star Wars.",199 "Yo momma is so ugly that even Rice Krispies won't talk to her!",200 "Yo momma is so ugly that when she uploaded a photo of herself to a computer, it was rejected by the anti-virus software.",201 "Yo momma is so ugly that when she joined an ugly contest, they said 'Sorry, no professionals.'",202 "Yo momma is so ugly that she could make a freight train take a dirt road.",203 "Yo momma is so ugly that that when she sits in the sand on the beach, cats try to bury her.",204 "Yo momma is so ugly that when she drove past area 51, she was thought to be extraterrestrial life. They took her away never to be seen again.",205 "Yo momma is so ugly that they pay her to put her clothes on in strip joints",206 "Yo momma is so ugly that you have to tie a steak around her neck so the dog will play with her!",207 "Yo momma is so ugly that just after she was born, her mother said 'What a treasure!' and her father said 'Yes, let's go bury it.'",208 "Yo momma is so ugly that she made an onion cry!",209 "Yo momma is so ugly that when I last saw a mouth like hers, it had a hook in it.",210 "Yo momma is so ugly that she gets 364 extra days to dress up for Halloween!",211 "Yo momma is so ugly that when she plays Mortal Kombat, Scorpion tells her to 'Stay Over There!'",212 "Yo momma is so ugly that neither Jacob nor Edward want her on their team.",213 "Yo momma is so ugly that they push her face into dough to make gorilla cookies.",214 "Yo momma is so ugly that when she goes to the therapist, he makes her lie on the couch face down.",215 "Yo momma is so ugly that she gives Freddy Kreuger nightmares.",216 "Yo momma is so ugly that when she walks in the kitchen, the rats jump on the table and start screaming.",217 "Yo momma is so ugly that even Bill Clinton wouldn't sleep with her.",218 "Yo momma is so ugly that when she was born, the doctor slapped her AND her parents!",219 "Yo momma is so ugly that she didn't get hit with the ugly stick, she got hit by the whole damn tree.",220 "Yo momma is so ugly that she has 7 years bad luck just trying to look at herself in the mirror.",221 "Yo momma is so ugly that she practices birth control by leaving the lights on.",222 "Yo momma is so ugly that she threw a boomerang and it wouldn't even come back.",223 "Yo momma is so ugly that she'd scare the monster out of Loch Ness.",224 "Yo momma is so ugly that it looks like she's been bobbing for french fries.",225 "Yo momma is so ugly that her pillow cries at night.",226 "Yo momma is so ugly that people at the circus pay money not to see her.",227 "Yo momma is so ugly that when she looks in the mirror it says 'viewer discretion is advised.'",228 "Yo momma is so ugly that she can look up a camel's butt and scare the hump off of it.",229 "Yo momma is so ugly that when she moved into the projects, all her neighbors chipped in for curtains.",230 "Yo momma is so ugly that Santa pays an elf to drop off her gifts at Christmas.",231 "Yo momma is so ugly that people hang her picture in their cars so their radios don't get stolen.",232 "Yo momma is so ugly that I took her to a haunted house and she came out with a job application.",233 "Yo momma is so ugly that if she was a scarecrow, the corn would run away.",234 "Yo momma is so ugly that she could be the poster child for birth control.",235 "Yo momma is so ugly that I took her to the zoo, guy at the door said ''",236 "Yo momma is so ugly that I took her to the zoo, guy at the door said 'Thanks for bringing her back.'",237 "Yo momma is so ugly that when she went to Taco Bell everyone ran for the border.",238 "Yo momma is so ugly that her face is blurred on her driver's license.",239 "Yo momma is so ugly that when she walked out of her house, the neighbours called animal control.",240 "Yo momma is so ugly that the FCC requires her face to be blurred when she's on TV, because of decency rules.",241 "Yo momma is so ugly that a sculpture of her face is used when torturing prisoners at Guantanamo Bay.",242 "Yo momma is so ugly that government intelligence agencies have to pixelize her face when spying on her.",243 "Yo momma is so ugly that she's never seen herself 'cause the mirrors keep breaking.",244 "Yo momma is so ugly that it looks like someone did the stanky leg dance on her face.",245 "Yo momma is so ugly that when she was born she was put in an incubator with tinted windows.",246 "Yo momma is so ugly that she put the Boogie Man out of business!",247 "Yo momma is so ugly that she made Barack Obama lose hope!",248 "Yo momma was such an ugly baby that her parents had to feed her with a slingshot.",249 "Yo momma is like a hockey player, she only showers after three periods.",250 "Yo momma is like a chicken coop, cocks fly in and out all day.",251 "Yo momma has so many teeth missing, that it looks like her tongue is in jail.",252 "Yo momma's mouth is so big that she speaks in surround sound.",253 "Yo momma is so grouchy that the McDonald's she works in doesn't even serve Happy Meals.",254 "You suck... yo momma does too, but she charges.",255 "Yo momma is like a paper towel, she picks up all kinds of slimy wet stuff.",256 "Yo momma is like Bazooka Joe, 5 cents a blow.",257 "Yo momma is like a telephone, even a 3 year old can pick her up.",258 "Yo momma is like a Christmas tree, everybody hangs balls on her.",259 "Yo momma is like the sun, look at her too long and you'll go blind.",260 "Yo momma is like a library, she's open to the public.",261 "Yo momma is like a fine restaurant, she only takes deliveries in the rear.",262 "Yo momma is like an ATM, open 24 hours.",263 "Yo momma is like a bowling ball... round, heavy, and you can fit three fingers in.",264 "Yo momma is like a basketball hoop, everybody gets a shot.",265 "Yo momma is like a Discover card, she gives cash back.",266 "Yo momma is like a championship ring, everybody puts a finger in her.",267 "Yo momma is like Dominoes Pizza, one call does it all.",268 "Yo momma is like a microwave, press one button and she's hot.",269 "Yo momma is like a mail box, open day and night.",270 "Yo momma is like a bowling ball, she always winds up in the gutter.",271 "Yo momma is like a bus, guys climb on and off her all day long.",272 "Yo momma is like a door knob, everybody gets a turn.",273 "Yo momma is like a light switch, even a little kid can turn her on.",274 "Yo momma's such a ho that 'who's your daddy?' is a multiple-choice question.",275 "You'll never be the man Yo momma was.",276 "Yo momma... 'nuff said.",277 "Yo momma is so lazy that she thinks a two-income family is where yo daddy has two jobs.",278 "Yo momma is so lazy that she's got a remote control just to operate her remote!",279 "Yo momma's arms are so short that she has to tilt her head to scratch her ear.",280 "Yo momma's lips are so big that Chapstick had to invent a spray.",281 "Yo momma is so lazy that she came in last place in a recent snail marathon.",282 "What's the difference between yo momma and a walrus? One has whiskers and smells of fish... the other one is a walrus!",283 "Yo momma is missing a finger and can't count past nine.",284 "Yo momma is so flat that she makes the walls jealous!",285 "Yo momma's gums are so black that she spits Yoo-hoo.",286 "It took yo momma 10 tries to get her drivers license - she couldn't get used to the front seat!",287 "Yo momma's so fat that when she asked me 'what's up?' I said 'your weight!'",288 "Yo momma is twice the man you are.",289 "Yo momma's head is so small that she got her ear pierced and died.",290 "Yo momma is cross-eyed and watches TV in stereo.",291 "Yo momma is so stupid that she was born on Independence Day and can't remember her birthday.",292 "Yo momma's head is so small that she uses a tea-bag as a pillow.",293 "Yo momma's face is so wrinkled, that she has to screw her hat on.",294 "Yo momma's hips are so big that people set their drinks on them.",295 "Yo momma's hair is so nappy that she has to take Tylenol just to comb it.",296 "Yo momma's feet are so big that her shoes need to have license plates on them!",297 "Yo momma's so lonely that she buys hot dogs and nuts wishing she could have sex with them.",298 "Yo momma is so bald that even a wig wouldn't help!",299 "Yo momma is so bald that you can see what's on her mind.",300 "Yo momma is so bald that she took a shower and got brain-washed!",301 "Yo momma's teeth are so yellow that when she smiles everyone sings 'We're Walking on Sunshine.'",302 "Yo momma is like a slaughter house - everybody's hanging their meat up in her.",303 "Yo momma is like the new AOL 4.0: Fun, Fast, Easy and Free!",304 "Yo momma is like a carpenter's dream - flat as a board and easy to nail.",305 "Yo momma is like Humpty Dumpty - First she gets humped, then she gets dumped.",306 "Yo momma is like a bag of potato chips, 'Free-To-Lay.'",307 "Yo momma is like a turtle - once she's on her back she's fucked.",308 "Yo momma is like a fan - she's always blowing someone.",309 "Yo momma is like Pizza Hut - if she isn't there in 30 minutes... it's Free!",310 "Yo momma is like a goalie - she only changes her pads after three periods.",311 "Yo momma is like a gas station - you gotta pay before you pump!",312 "Yo momma is like Sprint - 10 cents a minute anywhere in the country.",313 "Yo momma is like a Chinese restaurant - All you can eat for only $9.95!",314 "Yo momma smells so bad that the doctor diagnosed her with breath cancer.",315 "Yo momma's breath smells so bad that when she yawns her teeth duck out of the way.",316 "What's the difference between yo momma and a Lay-Z-Boy? One's soft, squishy, and always has someone in it. The other is a chair.",317 "What's the difference between yo momma and a 747? About 20 pounds.",318 "Yo momma's like a shotgun, one cock and she blows.",319 "Yo momma's like the Bermuda Triangle, they both swallow a lot of seamen.",320 "Yo momma's like cake mix, 15 servings per package!",321 "Yo momma's like a 5 foot tall basketball hoop, it ain't that hard to score.",322 "Yo momma's like a vacuum cleaner... she sucks, blows, and then gets laid in the closet.",323 "Yo momma's like the Pillsbury dough boy - everybody pokes her.",324 "Yo momma's like a brick, dirty, flat on both sides, and always getting laid by Mexicans.",325 "Yo momma's like a nickel, she ain't worth a dime.",326 "Yo momma's like a streetlamp, you can find her turned on at night on any street corner.",327 "Yo momma's like a telephone booth, open to the public, costs a quarter, and guys go in and out all day.",328 "Yo momma's like a Reese's Peanut Butter Cup, there's no wrong way to eat her.",329 "Yo momma's like a postage stamp, you lick her, stick her, then send her away.",330 "Yo momma's like a screen door, after a couple of bangs she loosens up.",331 "Yo momma's like a dollar bill, she gets handled all across the country.",332 "Yo momma's like school at 3 o'clock... children keep coming out and nobody can remember all the fathers.",333 "Yo momma's like a bowling ball, she gets picked up, fingered, thrown down the gutter, and she still comes back for more.",334 "Yo momma's like a set of speakers - loud, ugly, lives in a box, and you can turn her up, down, on, and off.",335 "Yo momma's like a birthday cake, everybody gets a piece.",336 "Yo momma's like 7-Eleven - open all night, hot to go, and for 89 cents you can get a slurpy.",337 "Yo momma's like a vacuum cleaner - a real good suck.",338 "Yo momma's like a Snickers bar, packed with nuts.",339 "Yo momma's like a race car driver - she burns a lot of rubbers.",340 "Yo momma's like a parking garage, three bucks and you're in.",341 "Yo momma's like a pool table, she likes balls in her pocket.",342 "Yo momma's got 1 toe & 1 knee and they call her Tony.",343 "Yo momma's got a 'wait' problem, she can't wait to eat.",344 "Yo momma's got a 4 dollar weave and don't know when to leave.",345 "Yo momma's teeth are so yellow, when she smiles it looks like a Kraft Singles pack.",346 "Yo momma's got Play-Doh teeth.",347 "Yo momma's like the Panama Canal, vessels full of seamen pass through her everyday.",348 "Yo momma likes to applaud, 'cause she's got clap",349 "Yo momma's got 1 leg longer than the other so they call her call her hip hop.",350 "Yo momma's got an eating disorder, she be eating dis order, dat order, she be eating all the damn orders!",351 "Yo momma sucks so much dick her butt chin turned into a nut chin!",352 "Yo momma's got more chins than a Chinese phone book.",353 "Yo momma's like a bungee cord... 100 dollars for 30 seconds and if that rubber breaks, your ass is dead!",354 "Yo momma's like a squirrel, she's always got some nuts in her mouth.",355 "Yo momma's like a refrigerator, everyone puts their meat in her.",356 "Yo momma's like a tricycle, she's easy to ride.",357 "yo mommas like a hardware store. 25 cents a screw.",358 "Yo momma's like mustard, she spreads easy.",359 "Yo momma's like peanut butter: brown, creamy, and easy to spread.",360 "Yo momma's like McDonald's... Billions and Billions served.",361 "Yo momma's like an elevator, guys go up and down on her all day.",362 "Yo momma's like a railroad track, she gets laid all over the country.",363 "Yo momma's like lettuce, 25 cents a head.",364 "Yo momma's got an eagle's nest wig.",365 "Yo momma's twice the man you are.",366 "Yo momma's got more crust than a bucket of Kentucky Fried Chicken.",367 "Yo momma's got more weave than a dog in traffic.",368 "Yo momma's only got one finger and runs around stealing key rings.",369 "Yo momma's got a peanut butter wig with jelly sideburns.",370 "Yo momma's got a leather wig with suede sideburns.",371 "Yo momma got hit upside the head with an ugly stick.",372 "Yo momma's got so much weave, when a fly goes by her hair swats at it.",373 "Yo momma's got no ears and was trying on sunglasses.",374 "Yo momma's got so much weave, AT&T uses her extensions as backup lines.",375 "Yo momma's got so much dandruff, she needs to defrost it before she combs her hair.",376 "Yo momma's so bald that I can tell fortunes on her head.",377 "Yo momma's so bald that you could draw a line down the middle of her head and it would look like my ass.",378 "Yo momma's so bald that when she goes to bed, her head slips off the pillow.",379 "Yo momma's so bald that when she braids her hair, it looks like stitches.",380 "yo momma's breath is so stanky, she eats odour eaters.",381 "Yo momma's like an iPod, fun to touch!",382 "Yo momma's got one leg and people call her Ilene.",383 "Yo momma's been on welfare so long that her picture is on food stamps.",384 "Yo momma's like Wal-Mart... She's got different discounts everyday.",385 "Yo momma's so hunchbacked, she has to look up to tie her shoes.",386 "Yo momma's nostrils are so huge she makes Patrick Ewing jealous.",387 "Yo momma's so hunchbacked, she has to wear goggles to wash dishes.",388 "Yo momma's so hunchbacked, she can stand on her feet and her head at the same time.",389 "Yo momma's so hunchbacked, she hits her head on speed bumps.",390 "Yo momma's so fat that the Sorting Hat put her in all four houses!",391 "Yo momma's so fat that a Wingardium Leviosa spell couldn't lift her.",392 "Yo momma's so fat, she makes Hagrid look like 'Mini-me'.",393 "Yo momma's so fat, she tried to eat Cornelius Fudge.",394 "Yo momma's so ugly, even a Dementor wouldn't kiss her!",395 "Yo momma's so fat the Sorting Hat assigned her to the House of Pancakes.",396 "Yo momma's so old, she used to babysit Dumbledore.",397 "Yo momma's so stupid, she thinks Sirius Black is a hip hop station on satellite radio.",398 "Yo momma's so ugly that the whomping willow saw her and died.",399 "Yo momma's so stupid she thinks Patronus is a kind of Tequlia.",400 "Yo momma's so fat, her Patronus is a Double-Whopper with Cheese.",401 "Yo momma's so nasty, the Forbidden Forrest was named after her.",402 "Yo momma's the reason that Dumbledore turned gay.",403 "Yo momma's so old, her boobs look like two upside down Sorting Hats!",404 "Yo momma's so fat, she used the invisibility cloak as a bib.",405 "Yo momma's so ugly, everybody calls her 'She-Who-Must-Not-Be-Naked'",406 "Yo momma's so fat that even the Dementors can't suck her soul out in one sitting.",407 "Yo momma's so pasty, she makes Ron Weasely look like George Hamilton.",408 "Yo momma's so fat, she looked in the mirror of Erised and saw a ham!",409 "Yo momma's so old she gave Nicholas Flamel his first kiss.",410 "Yo momma's so ugly that the Dementor's Kiss was swapped out for a hearty handshake and a promise to give her a call sometime.",411 "Yo momma's so stupid, she drowned in a pensieve",412 "Yo momma's so dumb she thought that she could talk to snakes if she put parsley on her tongue",413 "Yo momma's so nasty, every pair of her panties has the Dark Mark on them.",414 "Yo momma's so fat that if she confronted a boggart it would morph into a treadmill.",415 "Yo momma's so ugly that even Voldemort won't say her name.",416 "Yo momma's so poor she can't even afford a Gringotts account.",417 "Yo momma's so fat that the sorting hat couldn't decide where to put her - she couldn't fit in any of the houses!!",418 "Yo momma's the only mute prostitute in Hogsmeade. They call her 'dumb-le-whore'!",419 "Yo momma's so fat, she ate the Death Eaters.",420 "Yo momma's so masculine that Dumbledore would sleep with her!",421 "Yo momma's so nasty that the order of the phoenix was 'stay away from that woman!'",422 "Yo momma's so poor that Dobby gave her a sock to keep her foot warm.",423 "Yo momma's such a tramp that she's given more rides than the Hogwarts Express!",424 "Yo momma's so fat even Grawp can't pick her up!",425 "Yo momma's so smelly, Bertie Bott made her his next jelly bean flavor.",426 "Yo momma's so fat that it takes two boggarts to shape-shift into her!",427 "Yo momma's so ugly that she lost a beauty contest to Mountain Troll.",428 "Yo momma's so ugly that when the bassalisk snuck up on her and saw her face, HE dropped dead.",429 "Yo momma's breath is the secret ingredient in the Weasly's Butterscotch Barf-ies.",430 "Yo momma's so ugly that when she walked into Gringotts Wizarding Bank, they gave her a job application.",431 "Yo momma's so ugly she turned the Basilisk to stone.",432 "Yo momma's such a tramp that she's like a quidditch broomstick - everyone gets a ride.",433 "Yo momma's so skanky that the reason you're called a Half-Blood Prince is because she has no idea who your father is!",434 "Yo momma's so dumb that a stupify spell actually made her smarter.",435 "Yo momma's so stanky that not even dobby would accept one of her socks.",436 "Yo momma's so fat that even her Quidditch robes have stretch marks.",437 "Yo momma's so old she makes Dumbledore look like a teenager.",438 "Yo momma's so fat they'd have to use transfiguration to sneak her through the hole in the Gryffindor Tower.",439 "Ya momma's so fat, her wand is a Slim Jim.",440 "Yo momma's so fat the core of her wand has a creame filling.",441 "Yo momma's so ugly that Voldemort took one look at her and killed HIMSELF!'",442 "Yo momma's so poor she had to go to the Weasley's for a loan.",443 "Yo momma's so ugly, she thought that Hogwarts were the growth on her thigh.",444 "Yo momma's so ugly that as a baby they had to use the Confundus Charm so the family would play with her.",445 "Yo momma's such a ho that she lets ANYONE enter her 'chamber of secrets'.",446 "Yo momma's so ugly she scares the Dementors away.",447 "Yo momma's so ugly that when she asked Crabbe to take her to the Yule Ball, he decided to go with Goyle instead!",448 "Yo momma's so fat that a $700 billion bailout would only keep her fed for a week.",449 "Yo momma's so fat that the housing bubble popped because she sat on it!",450 "Yo momma's so stupid, she thinks the G8 is a Value Meal at McDonald's.",451 "Yo momma's so fat that she supported the bailout just because she wanted a 'barrel of pork'.",452 "Yo momma's so stupid that she thinks sub-prime is a way to cut steak.",453 "Yo momma's so fat that even Mitt Romney couldn't afford to take her out to dinner!",454 "Yo momma's so fat that her biography is called 'The Audacity of Hardee's'.",455 "Yo momma's so greasy that her face could free the U.S. from its dependence on foreign oil.",456 "Yo momma's so fat that Sarah Palin can see her from her house.",457 "Yo momma's so fat that Sarah Palin can't see Russia anymore!.",458 "Yo momma's so ugly that you could put lipstick on a pig and it would look ten times better than her!",459 "Yo momma's so fat that 'ACORN' registered her to vote eight times!",460 "Yo momma is so dark that she spits chocolate milk!",461 "Yo momma is so dark that she went to night school and was marked absent!",462 "Yo momma is so dark that she has to wear white gloves when she eats Tootsie Rolls to keep from eating her fingers.",463 "Yo momma is so dark that when she goes swimming it looks like an oil spill.",464 "Yo momma is so dark that her ass looks like two tires.",465 "Yo momma is so dark that she drinks water and pees coffee.",466 "Yo momma is so dark that when she puts on yellow lipstick, she looks like a cheese burger.",467 "Yo momma is so dark that she could show up naked to a funeral.",468 "Yo momma is so dark that she bleeds molasses.",469 "Yo momma is so dark that she looks like a picture of outer-space with no stars... except when she smiles.",470 "Yo momma is so dark that when she goes outside, the streetlights turn on.",471 "Yo momma is so dark that she got her tattoo done in chalk.",472 "Yo momma is so dark that when she puts lotion on her legs it looks like she has on patent leather pants.",473 "Yo momma is so dark that when the police shot at her, the bullets came back for flashlights.",474 "Yo momma is so dark that she was riding a motorcycle and got a ticket for tinted windows.",475 "Yo momma is so dark that when she smiles at night she looks like a pack of floating Chiclets.",476 "Yo momma is so dark that when her eyes are red she looks like a beeper.",477 "Yo momma is so dark that her nickname is midnight.",478 "Yo momma is so dark that she makes asphalt look grey.",479 "Yo momma is so dark that that she can leave fingerprints on charcoal.",480 "Yo momma's so fat that even the Death Star couldn't blow her up!",481 "Yo momma's so fat that Spock couldn't find a pressure point to perform the Vulcan Death Grip on her.",482 "Yo momma's so ugly that Wuher said 'We don't serve your kind here'.",483 "Yo momma's so fat the odds against not finding her fat are approximately 3,720 to 1.",484 "Yo momma's so fat that she thought the opening line of Kirk's monologue was 'Spice, the final Frontier...'",485 "Yo momma's so stupid that when the borg had to choose between assimilating her and a tree, they chose the tree.",486 "Yo momma's so fat that if she were placed beside a changeling during regeneration, no one would know the difference.",487 "Yo momma's so fat that she tried to fly through a temporal anomaly but she didn't fit.",488 "Yo momma's so fat she makes Riker's belly look 3 atoms thick.",489 "Yo momma's so fat that when she tried to captain a galaxy class they had to separate the saucer so she could fit.",490 "Yo momma's so fat that she makes the USS Enterprise look like a micro machines racer.",491 "Yo momma's so flatulent that she forced the Mustafarians to wear masks!",492 "Yo momma's so dumb that she tried to rent a car from The Enterprise.",493 "Yo momma's so fat that Dexster Jettster mistook her for his wife.",494 "Yo momma's so ugly that the term 'bantha poodoo' wasn't used metaphorically with reference to her.",495 "Yo momma's so fat that only half her body was able to come out frozen from the carbon freezing chamber in Cloud City.",496 "Yo momma's so ugly that Dr. Evazan looks like a male supermodel next to her.",497 "Yo momma's so fat that when she beams to a ship, the ship beams inside of her.",498 "Yo momma's so such a ho that she slept with me... therefore, I AM YOUR FATHER!",499 "Yo momma's so dumb that when she found a vulcan, she tried to call Santa to take him back to the north pole.",500 "Yo momma's so fat that the passengers of the Millennium Falcon mistook her for a small moon.",501 "Yo momma's so fat that Gardulla the Hutt had a boost in self-esteem after seeing her.",502 "Yo momma's so ugly that she made doctor McCoy say 'Damnit Jim, I'm a doctor, not a Zoologist!'",503 "Yo momma's so fat that she fell to the dark side and couldn't get back up.",504 "Yo momma's so fat that if she was thrown into the second Death Star's reactor core, she could have blown up the entire Imperial fleet.",505 "Yo momma's so fat that the Kaminoans couldn't use her as a host for clones since they couldn't pierce her skin deep enough to draw blood.",506 "Yo momma's so weak-minded that I got her to lead me to Jabba without using a jedi mind trick!",507 "Yo momma's so fat that she caused Kamino to flood when her water broke.",508 "Yo momma's so ugly that she's probably a Shi'ido Clawdite that stays in her regular form all the time.",509 "Yo momma's so fat that her lack of balance caused her to stumble into an Utapau sinkhole.",510 "Yo momma's so fat that she crushed Boga as soon as she mounted her.",511 "Yo momma's so fat, that in an attempt to beam her up, the ship ended up being pulled down to the surface.",512 "Yo momma's so ugly even Data would need special eye googles to look at her.",513 "Yo momma is so hairy that the only language she can speak is wookie.",514 "Yo momma's so ugly her Kazon hairdo is an improvement!",515 "Yo momma's so ugly even a Ferengi would dress her in clothes.",516 "Yo momma's so old even Guinan refers to her as 'old bag'.",517 "Yo momma's so fat that when she walks into a room the replicators stop working.",518 "Yo momma's so fat, Data feels strong emotions of disgust and self-terminates.",519 "Yo momma's so stupid the Borg wouldn't assimilate her!",520 "Yo momma's so fat she wears her own inertia dampener.",521 "Yo momma's so ugly she did the truly impossible: she made Captain James T Kirk's penis go limp.",522 "Yo momma's so fat, she managed to contain a warp core breach.",523 "Yo momma's so fat, she got stuck trying to enter the Nexus.",524 "Yo momma's so fat, when she fell over, she punched a hole in the fabric of space/time.",525 "Yo momma's so fat that when she stepped on the scale, her weight was OVER 9000!!!",526 "Yo momma's so fat, she walked in front of the TV and I missed three seasons of Inuyasha!",527 "Yo momma's so fat, Naruto couldn't make enough clones to see all sides of her.",528 "Yo momma's so ugly, she can't even get tentacle raped.",529 "Yo momma's so ugly, even Tamaki wouldn't hit on her.",530 "Yo momma's so fat that the Dragon Ball Z crew uses her to make craters on set.",531 "Yo momma's so ugly, she's the real reason Sasuke left the village.",532 "Yo momma's so fat that when she sat down on a park bench, she caused the Naruto time skip.",533 "Yo momma's so ugly that she's like a Death Note. Get someone to look at her, and they'll die!",534 "Yo momma's so ugly, Jiraiya saw her and turned gay!",535 "Yo momma's so hairy Naruto thought she was a Summon.",536 "Yo momma's so fat, she scared L into giving up all sweets.",537 "Yo momma's so ugly that she made Spike Spiegel choke on his cigarette",538 "Yo momma's so ugly that she makes Sailor Bubba feel dirty.",539 "Yo momma's so fat that she cant even fit in the expanding plug suit.",540 "Yo momma's so ugly that she made Loz cry.",541 "Yo momma's so dumb that when she was handed the death note, she thought they were asking for her autograph.",542 "Yo momma's so fat that she broke the HP limit!",543 "Yo momma's so hairy and ugly that she got used as Ashitare's stunt double.",544 "Yo momma's so stupid she makes Tristan look like Einstein!",545 "Yo momma's so fat, she makes Vash look anorexic!",546 "Yo momma's so hairy that she has to go to Furfest to meet a man.",547 "Yo momma's breath is so nasty that it chases away Miasma.",548 "Yo momma's so round that she makes a Pokéball look flat!",549 "Yo momma's so ugly, Saya thought she was a Chiropteran.",550 "Yo momma's so dumb, she failed out of Cromartie High School.",551 "Yo momma's so old and fat they use her wrinkles as set terrain for Dragon Ball Z.",552 "Yo momma's nose hairs are so long that they make Bobobo jealous!",553 "Yo momma's so fat that she was mistaken for Mt. Fuji at the Sakura festival.",554 "Yo momma's so fat she makes a Snorlax look like a chihuahua!",555 "Yo momma's so ugly that when Nozomu Itoshiki saw her, he didn't even bother with his 'ZETSUBOUSHITA!' speech - he skipped straight to hanging himself.",556 "Yo momma's so fat that it took the entire Dragon Ball Z crew 1 week just to lift her off the ground.",557 "Yo momma's cosplay is so bad that she got beat by a Narutard in the masquerade!",558 "Yo momma's so ugly that when Kakashi looked directly at her, he lost an eye.",559 "Yo momma's so fat that she tried to eat someone dressed as a box of Pocky!",560 "Yo momma's so ugly that she makes Orochimaru look beautiful.",561 "Yo momma's so fat, Choji told her to lose weight.",562 "Yo momma is so old that her birth certificate says 'expired' on it.",563 "Yo momma is so old that that when she was in school there was no history class.",564 "Yo momma is so old that I told her to act her own age, and she died.",565 "Yo momma is so old that she knew Burger King while he was still a prince.",566 "Yo momma is so old that her social security number is 1.",567 "Yo momma is so old that her birth certificate is written in Roman numerals.",568 "Yo momma is so old that she has Adam & Eve's autographs.",569 "Yo momma is so old that she co-wrote the Ten Commandments.",570 "Yo momma is so old that she has an autographed bible.",571 "Yo momma is so old she remembers when the Mayans published their calendar.",572 "Yo momma is so old that the candles cost more than the birthday cake.",573 "Yo momma is so old that when she farts, dust comes out.",574 "Yo momma is so old that she owes Fred Flintstone a food stamp.",575 "Yo momma is so old that she drove a chariot to high school.",576 "Yo momma is so old that she took her drivers test on a dinosaur.",577 "Yo momma is so old that she DJ'd at the Boston Tea Party.",578 "Yo momma is so old that she walked into an antique store and they kept her.",579 "Yo momma is so old that she baby-sat for Jesus.",580 "Yo momma is so old that she knew Mr. Clean when he had an afro.",581 "Yo momma is so old that she knew the Beetles when they were the New Kids on the Block.",582 "Yo momma is so old that when God said 'Let there be light' she was there to flick the switch.",583 "Yo momma is so old that she needed a walker when Jesus was still in diapers.",584 "Yo momma is so old that when Moses split the red sea, she was on the other side fishing.",585 "Yo momma is so old that she learned to write on cave walls.",586 "Yo momma is so old that her memory is in black and white.",587 "Yo momma is so old that she's mentioned in the shout out at the end of the bible.",588 "Yo momma is so old that she planted the first tree at Central Park.",589 "Yo momma is so old that she sat next to Jesus in third grade.",590 "Yo momma is so old that she has a picture of Moses in her yearbook.",591 "Yo momma is so old that she knew Captain Crunch while he was still a private.",592 "Yo momma is so old that she called the cops when David and Goliath started to fight.",593 "Yo momma is so old that when she was born, the Dead Sea was just getting sick.",594 "Yo momma's so old, when she breast feeds, people mistake her for a fog machine.",595 "Yo momma is so old that when she was young rainbows were black and white.",596 "Yo momma is so old that she was a waitress at the Last Supper.",597 "Yo momma is so old that she owes Jesus a dollar.",598 "Yo momma is so old that she ran track with dinosaurs.",599 "Yo momma is so stupid that it took her 2 hours to watch 60 Minutes!",600 "Yo momma is so stupid that when your dad said it was chilly outside, she ran out the door with a spoon.",601 "Yo momma is so stupid that when she saw the 'Under 17 not admitted' sign at a movie theatre, she went home and got 16 friends.",602 "Yo momma is so stupid that when she went for a blood test, she asked for time to study.",603 "Yo momma is so stupid that she got locked in a grocery store and starved!",604 "Yo momma is so stupid that you have to dig for her IQ!",605 "Yo momma is so stupid that she tripped over a cordless phone!",606 "Yo momma is so stupid that she sold her car for gas money!",607 "Yo momma is so stupid that she told everyone that she was 'illegitimate' because she couldn't read.",608 "Yo momma is so stupid that that she tried to put M&M's in alphabetical order!",609 "Yo momma is so stupid that she took the Pepsi challenge and chose Dr. Pepper.",610 "Yo momma is so stupid that she thought Delta Airlines was a sorority.",611 "Yo momma is so stupid that she thinks Fleetwood Mac is a new hamburger at McDonald's!",612 "Yo momma is so stupid that she bought a video camera to record cable tv shows at home.",613 "Yo momma is so stupid that when she read on her job application to not write below the dotted line she put 'OK'.",614 "Yo momma is so stupid that she thought Grape Nuts was an STD.",615 "Yo momma is so stupid that she spent twenty minutes lookin' at an orange juice box because it said 'concentrate'.",616 "Yo momma is so stupid that she asked me what yield meant, I said 'Slow down' and she said 'What... does.... yield... mean?'",617 "Yo momma is so stupid that she thought Dunkin' Donuts was a basketball team!",618 "Yo momma is so stupid that she put a phone up her ass and thought she was making a booty call.",619 "Yo momma is so stupid that she thinks Tiger Woods is a forest in India.",620 "Yo momma is so stupid that she put on her glasses to watch 20/20.",621 "Yo momma is so stupid that she climbed over a glass wall to see what was behind it.",622 "Yo momma is so stupid that she failed a survey.",623 "Yo momma is so stupid that she stopped at a stop sign and waited for it to say go.",624 "Yo momma is so stupid, she went to the aquarium to buy a Blu-Ray.",625 "Yo momma is so stupid that I told her I was reading a book by Homer and she asked if I had anything written by Bart.",626 "Yo momma is so stupid that she tried to commit suicide by jumping out of the basement window.",627 "Yo momma is so stupid that she needs twice as much sense to be a half-wit.",628 "Yo momma is so stupid that she thought brownie points were coupons for a bake sale.",629 "Yo momma is so stupid that when the computer said 'Press any key to continue', she couldn't find the 'Any' key.",630 "Yo momma is so stupid that she thought Tupac Shakur was a Jewish holiday.",631 "Yo momma is so stupid that when I was drowning and yelled for a life saver, she said 'Cherry or Grape?'",632 "Yo momma is so stupid that she sat in a tree house because she wanted to be a branch manager.",633 "Yo momma is so stupid that I saw her jumping up and down, asked what she was doing, and she said she drank a bottle of medicine and forgot to shake it.",634 "Yo momma is so stupid that when she locked her keys in the car, it took her all day to get Yo family out.",635 "Yo momma is so stupid that she got locked out of a convertible car with the top down.",636 "Yo momma is so stupid that when she pulled into the drive-thru at McDonald's, she drove through the window.",637 "Yo momma is so stupid that she put 2 quarters in her ears and thought she was listening to 50 cent.",638 "Yo momma is so stupid that she was on the corner with a sign that said 'Will eat for food.'",639 "Yo momma is so stupid that in the 'No Child Left Behind' act there's a provision that exempts yo momma.",640 "Yo momma is so stupid that she got locked in a Furniture store and slept on the floor.",641 "Yo momma is so stupid that she peals M&M's to make chocolate chip cookies.",642 "Yo momma is so stupid that she leaves the house for the Home Shopping Network.",643 "Yo momma is so stupid that she brought a cup to the movie 'Juice.'",644 "Yo momma is so stupid that she thinks fruit punch is a gay boxer.",645 "Yo momma is so stupid that she uses Old Spice for cooking.",646 "Yo momma is so stupid that she threw a rock the ground and missed.",647 "Yo momma is so stupid that she went to the store to buy a color TV and asked what colors they had.",648 "Yo momma is so stupid that she tries to email people by putting envelopes into her computer's disk drive.",649 "Yo momma is so stupid that when she took an IQ test, the results came out negative.",650 "Yo momma's so stupid that she though Jar-Jar came with Pickles-Pickles.",651 "Yo momma is so stupid that she thought St. Ides was a Catholic church.",652 "Yo momma is so stupid that she puts lipstick on her head just to make-up her mind",653 "Yo momma is so stupid that she thought she needed a token to get on Soul Train.",654 "Yo momma is so stupid, that she thought Moby Dick was a sexually transmitted disease.",655 "Yo momma is so stupid that she makes Beavis and Butt-Head look like Nobel Prize winners.",656 "Yo momma is so stupid that she took a spoon to the superbowl.",657 "Yo momma is so stupid that that she thought Boyz II Men was a day care center.",658 "Yo momma is so stupid that she got stabbed in a shoot out.",659 "Yo momma is so stupid that she sits on the TV, and watches the couch!",660 "Yo momma is so stupid that she took a umbrella to see Purple Rain.",661 "Yo momma is so stupid that she ordered her sushi well done.",662 "Yo momma is so stupid that she got fired from the M&M factory for throwing away all the W's.",663 "Yo momma is so stupid that she put on a coat to chew Winterfresh gum.",664 "Yo momma is so stupid that she put a quarter in a parking meter and waited for a gumball to come out.",665 "Yo momma is so stupid that she ordered a cheese burger from McDonald's and said 'Hold the cheese.'",666 "Yo momma is so stupid that she thinks Taco Bell is a Mexican Phone Company.",667 "Yo momma is so stupid that she thinks Christmas Wrap is Snoop Dogg's holiday album.",668 "Yo momma is so stupid that she ran outside with a purse because she heard there was change in the weather.",669 "Yo momma is so stupid that I told her Christmas was just around the corner and she went looking for it.",670 "Yo momma is so stupid that she wiped her ass before she took a shit.",671 "Yo momma is so stupid that she tries to insult you with yo momma jokes.",672 "Yo momma is so stupid that she put a peephole in a glass door.",673 "Yo momma is so stupid that I saw her in the frozen food section with a fishing rod.",674 "Yo momma is so stupid that when she heard 90% of all crimes occur around the home, she moved.",675 "Yo momma is so stupid that when she saw a 'Wrong Way' sign in her rearview mirror, she turned around.",676 "Yo momma is so stupid that she shoved a AA battery up her butt and said 'I got the power!'",677 "Yo momma is so stupid that she called the 7-11 to see when they closed.",678 "Yo momma is so stupid that she sold the house to pay the mortgage.",679 "Yo momma is so stupid that when I asked her about X-Men she said 'Sure, there's Bobby my first baby daddy, Roger the guy I see on Thursdays...'",680 "Yo momma is so stupid that she thought meow mix was a record for cats.",681 "Yo momma is so stupid that she took lessons for a player piano.",682 "Yo momma is so stupid that she said 'what's that letter after x' and I said Y she said 'Cause I wanna know'.",683 "Yo momma is so stupid that when she asked me what kinda jeans I wore, I said Guess and she said 'Ummm... Levis?'",684 "Yo momma is so stupid that if she spoke her mind, she'd be speechless.",685 "Yo momma is so stupid that it takes her an hour to cook minute rice.",686 "Yo momma is so stupid that she asked for a price check at the dollar store.",687 "Yo momma is so stupid that on her job application where it says emergency contact she put 911.",688 "Yo momma is so stupid that she can't make Jello because she can't fit 2 quarts of water in the box.",689 "Yo momma is so stupid that she thinks a stereotype is the brand on her clock-radio.",690 "Yo momma is so stupid that she thought a lawsuit was something you wear to court.",691 "Yo momma is so stupid that she thinks sexual battery is something in a dildo.",692 "Yo momma is so stupid that the first time she used a vibrator, she cracked her two front teeth.",693 "Yo momma is so stupid that she sent me a fax with a stamp on it.",694 "Yo momma is so stupid that I saw her walking down the street yelling into an envelope, asked what she was doing, and she said sending a voice mail.",695 "Yo momma is so stupid that she tried to drown a fish.",696 "Yo momma is so stupid that if you gave her a penny for her thoughts, you'd get change.",697 "Yo momma is so stupid that she thought Mick Jagger was a breakfast sandwich!",698 "Yo momma is so stupid that when she heard her neighbour was spanking the monkey, she called the humane society.",699 "Yo momma is so stupid that when she took you to the airport and a sign said 'Airport Left,' she turned around and went home.",700 "Yo momma is so stupid that when she went to take the 44 bus, she took the 22 twice instead.",701 "Yo momma is so stupid that she asked you 'What is the number for 911?'",702 "Yo momma is so stupid that she thinks a quarterback is a refund!",703 "Yo momma is so stupid that she bought a solar-powered flashlight!",704 "Yo momma is so stupid that she took a ruler to bed to see how long she slept.",705 "Yo momma is so stupid that she thought menopause was a button on the VCR.",706 "Yo momma is so stupid that she picked up the phone and asked 'What button do I push?'",707 "Yo momma is so stupid that when she worked at McDonald's and someone ordered small fries, she said 'Hey Boss, all the small one's are gone.'",708 "Yo momma is so stupid that she got hit by a parked car.",709 "Yo momma is so stupid that when her husband lost his marbles she ran to the store and bought him new ones.",710 "Yo momma is so stupid that when they said they were playing craps she went and got toilet paper.",711 "Yo momma is so stupid that when I asked her if she wanted to play one on one, she said 'Ok, but what's the teams?'",712 "Yo momma is so stupid that she thinks Johnny Cash is a pay toilet!",713 "Yo momma is so stupid that when the judge said 'Order in the court,' she said 'I'll have a hamburger and a Coke.'",714 "Yo momma is so stupid that she thinks socialism means partying!",715 "Yo momma is so stupid that when asked on an application, 'Sex?', she marked, 'M, F, and wrote sometimes Wednesday too.'",716 "Yo momma is so stupid that she thinks deadbeat is a type of music.",717 "Yo momma is so stupid that she thinks Tiger Woods is a forest.",718 "Yo momma is so stupid that she put two M&M's in her ears and thought she was listening to Eminem.",719 "Yo momma is so stupid that at bottom of application where it says Sign Here - she put Scorpio.",720 "Yo momma is so stupid that she wouldn't know up from down if she had three guesses.",721 "Yo momma is so stupid that she once attempted to commit suicide by jumping off a curb.",722 "Yo momma is so stupid that she put on bug spray before going to the flea market.",723 "Yo momma is so stupid that she stole free bread.",724 "Yo momma is so stupid that she locked her keys inside a motorcycle.",725 "Yo momma's so stupid that she got locked inside a motorcycle.",726 "Yo momma's so stupid that she went to the dentist to get a bluetooth.",727 "Yo momma's so stupid that she bought tickets to Xbox Live.",728 "Yo momma's so stupid that whenever someone rings the doorbell, she checks the microwave.",729 "Yo momma's so stupid that when she broke her VCR, she bought a video tape on how to fix your VCR.",730 "Yo momma is so stupid that she tried to drop acid but the car battery fell on her foot.",731 "Yo momma so dumb, she lost a spelling bee to Hodor",732 "Yo momma so dumb, she thought Bran Stark was a type of muffin.",733 "Yo momma so fat, they've been calling her 'the wall' for thousands of years!",734 "Yo momma so fat, she Winter-fell and couldn't get up!",735 "Yo momma so old, the old gods pray to HER!",736 "Yo momma So Fat, she can't fit through the moon door.",737 "Yo momma so Ugly, she got turned down for 'Girls Gone Wilding'",738 "Yo momma so ugly, winter turned around and left!",739 "Yo momma so fat, even Roose Bolton won't touch her",740 "Yo momma so bad at sex, the only kind of head she gives is severed.",741 "Yo momma is so poor that she was in K-Mart with a box of Hefty bags and when I asked her what she was doing she said, 'Buying luggage.'",742 "Yo momma is so poor that when she goes to KFC, she has to lick other people's fingers!",743 "Yo momma is so poor that she went to McDonald's and put a milkshake on layaway.",744 "Yo momma is so poor that she can't afford to pay attention!",745 "Yo momma is so poor that when I saw her kicking a can down the street, I asked her what she was doing, and she said 'moving.'",746 "Yo momma is so poor that she waves around a popsicle stick and calls it air conditioning.",747 "Yo momma is so poor that I saw her running after a garbage truck with a shopping list.",748 "Yo momma is so poor that the bank repossessed her cardboard box.",749 "Yo momma is so poor Nigerian scammers wire HER money!",750 "Yo momma is so poor she couldn't afford to apply for Medicare!",751 "Yo momma is so poor that she has to wear her McDonald's uniform to church.",752 "Yo momma is so poor that she's got more furniture on her porch than in her house.",753 "Yo momma is so poor that I came over for dinner and she read me recipes.",754 "Yo momma is so poor that she has to take the trash IN.",755 "Yo momma is so poor that she had to get a second mortgage on her cardboard box.",756 "Yo momma is so poor that she lives in a two story Dorrito bag with a dog named Chip.",757 "Yo momma is so poor that I went through her front door and ended up in the back yard.",758 "Yo momma is so poor that her front and back doors are on the same hinge.",759 "Yo momma is so poor that I saw her wrestling a squirrel for a peanut.",760 "Yo momma is so poor that the closest thing to a car she has is a low-rider shopping cart with a box on it.",761 "Yo momma is so poor that she can't even put her two cents in this conversation.",762 "Yo momma is so poor that when I saw her walking down the street with one shoe and said 'Hey miss, lost a shoe?' she said 'Nope, just found one!'",763 "Yo momma is so poor that her face is on the front of a food stamp.",764 "Yo momma is so poor that I went to her house and tore down some cob webs, and she said 'Who's tearing down the drapes?'",765 "Yo momma is so poor that I stepped on her skateboard and she said 'Hey, get off the car!'",766 "Yo momma is so poor that I walked into her house, asked to use the bathroom, and she said '3rd bucket to your right.'",767 "Yo momma is so poor that when I walked inside her house and put out a cigarette, she said 'who turned off the heater?'",768 "Yo momma is so poor that your TV got 2 channels: ON and OFF.",769 "Yo momma is so poor that she watches TV on an Etch-A-Sketch.",770 "Yo momma is so poor that she can't even afford to go to the free clinic.",771 "Yo momma is so poor that she washes paper plates.",772 "Yo momma is so poor that her idea of a fortune cookie is a tortilla with a food stamp in it.",773 "Yo momma is so poor that when yo family watches TV, they go to Sears.",774 "Yo momma is so poor that burglars break in and leave money.",775 "Yo momma is so poor that she married young just to get the rice!",776 "Yo momma is so poor that when I went over to her house for dinner and grabbed a paper plate, she said 'Don't use the good china!'",777 "Yo momma is so poor that when I saw her rolling some trash cans around in an alley, I asked her what she was doing, she said 'Remodeling.'",778 "Yo momma is so poor that I threw a rock at a trash can and she popped out and said 'Who knocked?'",779 "Yo momma is so poor that we were on a road trip and she stopped by a dumpster and got out. I said 'what are you doing' and she said I'm 'booking a hotel!'",780 "Yo momma is so poor that I walked into her house and swatted a firefly and Yo momma said, 'Who turned off the lights?'",781 "Yo momma is so poor that when I asked what was for dinner, she pulled her shoelaces off and said 'Spaghetti.'",782 "Yo momma is so poor that after I pissed in your yard, she thanked me for watering the lawn.",783 "Yo momma is so poor that your family ate cereal with a fork to save milk.",784 "Yo momma is so poor that when I ring the doorbell she says,'DING!'",785 "Yo momma is so poor that she got in an elevator and thought it was a mobile home.",786 "Yo momma's so poor, that her doormat doesn't say 'welcome', it says 'welfare'.",787 "Yo momma is so poor that for halloween, her trick was the treat.",788 "Yo momma is so poor that when she tells people her address, she says 'it's in the second alley from main street, beside the yellow dumpster.'",789 "Yo momma is so poor that her idea of a timeshare is a few days camped out under a bridge.",790 "Yo momma is so poor that when I saw her in the park digging up plants, she said she was 'getting groceries'.",791 "Yo momma is so poor that when I ring the doorbell I hear the toilet flush!",792 "Yo momma's so fat that she expresses her weight in scientific notation.",793 "Yo momma's so fat that scientists track her position by observing anomalies in Pluto's orbit.",794 "Yo momma's so fat that a recursive function computing her weight causes a stack overflow.",795 "Yo momma's so fat that the long double numeric variable type in C++ is insufficient to express her weight.",796 "Yo momma's so fat that THX can't even surround her.",797 "Yo momma's a convenient proof that the universe is still expanding exponentially.",798 "Yo momma's so big that she has a gravitational pull equal to that of the sun.",799 "Yo momma's so big that doctors use scuba divers as nanobots to clean her arteries.",800 "The mass of yo momma at rest is approximately equal to that of a neutron star traveling at (1-(10^-1000))c.",801 "Yo momma's so slow and dumb that she can be emulated on a 286.",802 "Yo momma conforms to Planck's law - the greater the frequency with which she screws, the more energetic she gets.",803 "Yo momma's like a converging lens - she's wider in the middle than she is on either end.",804 "Yo momma's dumber than an augmented rat.",805 "Yo momma's so fat that she and the great wall of China are used as reference points when astronauts look back at the Earth.",806 "Yo momma's such a ho that even the noble gases are attracted to her.",807 "Yo momma's so promiscuous that electrons have a positive charge when they're around her.",808 "Yo momma's so stupid that her exchange particle is a 'moron'.",809 "Yo momma's so fat that China uses her to block the internet.",810 "Yo momma's so fat that NASA shot a rocket into her ass looking for water.",811 "Yo momma's so dumb that she went to the dentist and asked for a bluetooth.",812 "Yo momma's so fat that she doesn't just have a low center of gravity, she has an elliptical orbit.",813 "Yo momma's so fat that IEEE is working on a wifi protocol so people can get the signals to reach users on opposite sides of her. It's called 802.11 Draft Fat Momma",814 "If we were to code your mom in a C++ function she would look like this: double mom (double fat){ mom(fat);return mom;}; //your mom is recursively fat.",815 "Yo momma's so old that she goes on carbon dates.",816 "Yo momma's so fat, the Cyberman DOWNgraded her.",817 "Yo momma's so ugly that Dalek's don't actually say 'Exterminate' when they see her, because they figure somebody else already got there first!",818 "Yo momma's such a drunk, that her sonic screwdriver is made of vodka and orange juice.",819 "Yo momma's so ugly that when she looks into the Tardis, the Tardis doesn't look into her.",820 "Yo momma's so ugly that when the Daleks Exterminate her, it's not for domination.",821 "Yo momma's such a hoe that the nickname for her vagina (Bad Wolf) is scattered across time and space.",822 "Yo momma's so fat, she's bigger than both the outside AND the inside of the Tardis",823 "Yo momma's so ugly that when Captain Jack Harkness saw her, he actually died.",824 "Yo momma's so fat, the Pirate Planet tried to take her over.",825 "Yo momma's so lazy, she's a 'part-time' lord",826 "Yo momma's so fat that when she got upgraded by the Cybermen, they turned her into an ice cream truck",827 "Yo momma's so stupid that when Cassandra says 'Moisturize!', she begins to sweat.",828 "Yo momma's so fat, the Doctor caught her eating his psychic paper, thinking it was a burger.",829 "Yo momma's such a noisy hoe, her nickname is the sonic screwdriver!",830 "Yo momma's so fat, it doesn't matter that the Tardis is bigger on the inside. She can't get through the door.",831 "Yo momma is so skinny that she turned sideways and disappeared.",832 "Yo momma is so skinny that she hula hoops with a Cheerio.",833 "Yo momma is so skinny that she has to wear a belt with spandex.",834 "Yo momma is so skinny that she swallowed a meatball and thought she was pregnant.",835 "Yo momma is so skinny that she can see out a peephole with both eyes.",836 "Yo momma is so skinny that she uses a Band-Aid as a maxi-pad.",837 "Yo momma is so skinny that you can save her from drowning by tossing her a Fruit Loop.",838 "Yo momma is so skinny that she has to run around in the shower to get wet.",839 "Yo momma is so skinny that when she wore her yellow dress, she looked like an HB pencil.",840 "Yo momma is so skinny that if she had a sesame seed on her head, she'd look like a push pin.",841 "Yo momma is so skinny that her nipples touch.",842 "Yo momma is so skinny that I could blind-fold her with dental floss.",843 "Yo momma is so skinny that she looks like a mic stand.",844 "Yo momma is so skinny that she only has one stripe on her pajamas.",845 "Yo momma is so skinny that she can dodge rain drops.",846 "Yo momma is so skinny that she inspires crack whores to diet.",847 "Yo momma is so skinny that she uses Chapstick for deodorant.",848 "Yo momma is so small that she goes paragliding on a Dorito.",849 "Yo momma is so skinny that if she turned sideways and stuck out her tongue, she would look like a zipper.",850 "Yo momma is so skinny that she goes hot tubing with the Mini Wheats Man.",851 "Yo momma is so skinny that when she takes a bath and lets the water out, her toes get caught in the drain.",852 "Yo momma is so skinny that her bra fits better when she wears it backwards.",853 "Yo momma is so skinny that she had to stand in the same place twice to cast a shadow.",854 "Yo momma is so skinny that if she had a yeast infection she'd be a Quarter Pounder with Cheese.",855 "Yo momma is so skinny that her pants only have one belt loop.",856 "Yo momma is so skinny that if she had dreads I'd grab her by the ankles and use her to mop the floor.",857 "Yo momma is so skinny that instead of calling her your parent, you call her transparent.",858 "Yo momma is so tall that she tripped in Michigan and bumped her head in Florida.",859 "Yo momma is so tall that she tripped over a rock and hit her head on the moon.",860 "Yo momma is so tall that if she did a back-flip she'd kick Jesus in the mouth.",861 "Yo momma's so tall, she can see her house from anywhere.",862 "Yo momma's so tall, she uses two 100-foot ladders as crutches.",863 "Yo momma's so tall, she has to take out the driver's seat of her car and sit in the back to operate the vehicle.",864 "Yo momma's so tall, she makes Shaquille O'Neal look like Gary Coleman.",865 "Yo momma's so tall, she did a push-up and burned her back on the sun.",866 "Yo momma is so short that you can see her feet on her drivers license!",867 "Yo momma is so short that she has to use a ladder to pick up a dime.",868 "Yo momma is so short that she does backflips under the bed.",869 "Yo momma is so short that she models for trophies.",870 "Yo momma is so short that her homies are the Keebler Elves.",871 "Yo momma is so short that she has to get a running start to get up on the toilet.",872 "Yo momma is so short that when she sneezes, she hits her head on the floor.",873 "Yo momma is so short that she does pull-ups on a staple.",874 "Yo momma is so short that she can do push-ups under the door.",875 "Yo momma is so short that when I was dissin' her she tried to jump kick me in the ankle.",876 "Yo momma is so short that she can limbo under the door.",877 "Yo momma is so short that she uses a condom for a sleeping bag.",878 "Yo momma is so short that she slam-dunks her bus fare.",879 "Yo momma is so short that she has to look up to look down.",880 "Yo momma is so short that she makes Gary Coleman look like Shaquille O'Neal.",881 "Yo momma is so short, you can make a life size sculpture of her using one can of Play-Doh.",882 "Yo momma's so short that when she sat on the curb her feet didn't touch the ground.",883 "Yo momma is so short that she can play handball on the curb.",884 "Yo momma has so much hair on her upper lip that she braids it.",885 "Yo momma is so hairy that Bigfoot wants to take HER picture!",886 "Yo momma is so hairy that she looks like she has Buckwheat in a headlock.",887 "Yo momma is so hairy that you almost died of rug burn at birth!",888 "Yo momma is so hairy that they filmed 'Gorillas in the Mist' in her shower!",889 "Yo momma is so hairy that if she could fly she'd look like a magic carpet.",890 "Yo momma is so hairy that she looks like Bigfoot in a tank top.",891 "Yo momma is so hairy that she has afros on her nipples.",892 "Yo momma is so hairy that when I took her to a pet store they locked her in a cage.",893 "Yo momma is so hairy that she looks like a Chia pet with a sweater on.",894 "Yo momma is so hairy that Jane Goodall follows her around.",895 "Yo momma is so hairy that she shaves her legs with a weed wacker.",896 "Yo momma is so hairy that if you shaved her legs, you could supply wigs for the entire Hair Club for Men.",897 "Yo momma is so hairy that her armpits look like she has Don King in a headlock.",898 "Yo momma's so hairy that she's got sideburns on her tits.",899 "Yo momma is so hairy that she got a trim and lost 20 pounds.",900 "Yo momma is so hairy that people run up to her and say 'Chewbacca, can I get your autograph?'",901 "Yo momma is so hairy that she gets mistaken for Chewbacca's cousin.",902 "Yo momma is so hairy that two birds made nests in her armpits and she doesn't even know about it!",903 "Yo momma is so hairy that when she's at a nude beach people think she's wearing a fur coat!",904 "Yo momma is so dirty that that she was banned from a sewage facility because of sanitation concerns.",905 "Yo momma is so dirty that she makes mud look clean.",906 "Yo momma is so dirty that that you can't tell where the dirt stops and she begins.",907 "Yo momma is so dirty that she has to creep up on bathwater.",908 "Yo momma is so dirty that she loses weight in the shower.",909 "Yo momma is so dirty that even Swamp Thing told her to take a shower.",910 "Yo momma is so dirty that the US Government uses her bath water as a chemical weapon.",911 "Yo momma is so dirty that when she tried to take a bath, the water jumped out and said 'I'll wait.'",912 "Yo momma is so nasty that she has more rappers in her than an iPod.",913 "Yo momma is so nasty that she makes speed stick slow down.",914 "Yo momma is so nasty that she brings crabs to the beach.",915 "Yo momma is so nasty that that pours salt water down her pants to keep her crabs fresh.",916 "Yo momma is so nasty that the fishery pays her to stay away.",917 "Yo momma is so nasty that she only changes her drawers once every 10000 miles.",918 "Yo momma is so nasty that a skunk smelled her ass and passed out.",919 "Yo momma is so nasty that I chatted with her on MSN and she gave me a virus.",920 "Yo momma is so nasty that her tits leak sour milk.",921 "Yo momma is so nasty that she has to use Right Guard and Left Guard.",922 "Yo momma is so nasty that she bit the dog and gave it rabies.",923 "Yo momma is so nasty that she has a sign by her crotch that says: 'Warning: May cause irritation, drowsiness, and a rash or breakouts.'",924 "Yo momma is so nasty that she's got more clap than an auditorium.",925 "Yo momma is so nasty that she calls Janet 'Miss Jackson.'",926 "Yo momma is so nasty that she has more crabs then Red Lobster.",927 "Yo momma is so nasty that she made right guard turn left.",928 "Yo momma is so nasty that I when I talked to her on the phone, she gave me an ear infection.",929 "Yo momma is so nasty that next to her a skunk smells sweet.",930 "Yo momma is so nasty that her shit is glad to escape.",931 "Yo momma is so nasty that when you were being delivered, the doctor was wearing the oxygen mask.",932 "Yo momma is so nasty that every time she opens her mouth she's talking shit.",933 "Yo momma is so nasty that even dogs won't sniff her crotch.",934 "Yo momma is so nasty that the only dis I want to give her is a disinfectant.",935 "Yo momma is so nasty that her crabs use her tampon string as a bungee cord.",936 "Yo momma is so greasy that she uses bacon as a band-aid!",937 "Yo momma is so greasy that she sweats Crisco!",938 "Yo momma is so greasy that Texaco buys Oil from her.",939 "Yo momma is so greasy that she sweats butter and syrup and has a full time job at Denny's wiping pancakes across her forehead.",940 "Yo momma is so greasy that her freckles slipped off.",941 "Yo momma is so greasy that if Crisco had a football team, she'd be the mascot.",942 "Yo momma is so greasy that she squeezes Crisco from her hair to bake cookies.",943 "Yo momma is so greasy that she's labeled as an ingredient in Crisco.",944 "Yo momma is so greasy that you could fry a chicken dinner for 12 on her forehead.",945 "Yo momma is so greasy that I buttered my popcorn with her leg hairs.",946 "Yo momma's house is so dirty that roaches ride around on dune buggies!",947 "Yo momma's house is so dirty that she has to wipe her feet before she goes outside.",948 "Yo momma's teeth are so rotten that when she smiles it looks like she has dice in her mouth.",949 "Yo momma's teeth are so yellow that traffic slows down when she smiles!",950 "Yo momma's teeth are so yellow that she spits butter!",951 "Yo momma's so dirty, she fertilizes her lawn by rolling in it!",952 "Yo momma's so dirty, when a seed gets stuck in her ass crack it beings to grow!",953 "Yo momma's so dirty, she jumped in a river and created a mud slide!",954 "Yo momma's so dirty, when the wind blows people yell 'Sand Storm!!!'",955 "Yo momma's so greasy, on hot days she cooks bacon strips on her ass cheeks!",956 "Yo momma is so fat that she took geometry in high school just cause she heard there was gonna be some pi.",957 "Yo momma is so fat that the ratio of the circumference to her diameter is four.",958 "Yo momma is so fat that her derivative is strictly positive.",959 "Yo momma is like a protractor - she's good at every angle.",960 "Yo momma is so fat that in a love triangle, she'd be the hypotenuse.",961 "Yo momma is so stupid that when I told her 'pi-r-squared' and she replied no, they are round.",962 "The limit of yo momma's ass goes to infinity.",963 "Yo momma = x/0 for every x in yo momma.",964 "The infinite series of yo momma from 0 to infinity is strictly diverging.",965 "Yo momma is so mean that she has no standard deviation.",966 "Yo momma is so ugly, that Pythagoras wouldn't touch her with a 3-4-5 triangle.",967 "Yo momma is so square that she's got imaginary numbers on her social security card.",968 "Yo momma is such a ho, that she asked all the math majors to to figure out g(f(your mom)) just so they could 'f' her first.",969 "The volume of yo momma is an improper integral.",970 "The integral of yo momma is fat plus a constant, where the constant is equal to more fat.",971 "Yo momma's muscle-to-fat ratio can only be explained in irrational complex numbers.",972 "The only way to get from point A to point B is around yo momma's fat ass.",973 "Yo momma's so smart, the hardest decision she's ever had to make was which college to accept a scholarship from - Harvard, Yale or Princeton!",974 "Yo momma's so clean, she could bottle her bathwater and sell it at the grocery store alongside Evian, Dasani and FIJI.",975 "Yo momma's so generous that she sponsors children in Africa, Asia AND South America!",976 "Yo momma's so popular that Facebook crashed on her birthday, because too many people posted wishes on her wall.",977 "Yo momma's such a good cook that her vegetable lasagna could be served as the featured item at a Michelin Star restaurant!",978 "Yo momma's so healthy that medical textbooks use her x-rays to demonstrate what perfect bone structure should look like.",979 "Yo momma's breath smells so fresh that Wrigley's could make a chewing gum flavour based on it.",980 "Yo momma's so fit that she could run a marathon, teach a Zumba class AND climb Mount Everest without stopping to catch her breath once.",981 "Yo momma's so fashionable that Gucci, Prada and Fendi call her on a daily basis to get insight into upcoming fashion trends.",982 "Yo momma's aging with such grace and beauty that she could be featured on the cover of Elle magazine.",983 "Yo momma's like a puppy... everybody wants to give her a hug.",984 "Yo momma's so smart that an employee from Wikipedia calls her when they need to verify facts about 18th century political figures." 985];986// const client = new Discord.Client();987client.once("ready", () => {988 console.log("I am ready to go!");989});990client.once("reconnecting", () => {991 console.log("Reconnecting!");992});993client.once("disconnect", () => {994 console.log("Disconnect!");995});996// bot-status997client.on("ready", () =>{998 console.log(`Logged in as ${client.user.tag}!`);999 client.user.setPresence({1000 status: "online", //You can show online, idle....1001 game: {1002 name: "Using !help", //The message shown1003 type: "PLAYING: WITH YOUR MOM" //PLAYING: WATCHING: LISTENING: STREAMING:1004 }1005 });1006});1007// custom-messages1008client.on('message', msg => {1009 if (msg.content === 'ping'){1010 msg.reply('Pong!')1011 }1012});1013// greeting to new user1014client.on('guildMemberAdd', member => {1015 // Send the message to a designated channel on a server:1016 const channel = member.guild.channels.cache.find(ch => ch.name === 'general');1017 if (!channel) return;1018 // Send the message, mentioning the member1019 channel.send(`Welcome to the server, ${member}`);1020});1021// giving yo mama joke from json list1022client.on('message', msg => {1023 if (msg.content === 'yomomma'){1024 var joke = jokes[Math.floor(Math.random() * jokes.length )];1025 msg.reply(joke);1026 console.log(joke);1027 };1028});1029// MINECRAFT COMMANDS1030client.on('message', msg => {1031 if (msg.content === 'base'){1032 msg.reply('Your base COORDS: -291 71 -561');1033 };1034});1035client.on('message', msg => {1036 if (msg.content === 'mine'){1037 msg.reply('Your mine entrance COORDS: -208 63 -594');1038 };1039});1040client.on('message', msg => {1041 if (msg.content === 'nice bot'){1042 msg.reply('thanks noob');1043 };1044});1045// bot token...
yoyoTest.js
Source:yoyoTest.js
1if (typeof YoYo !== "undefined") {2 YoYo = null;3}4// GLOBAL NAME SPACE5var YoYo = {6 IsYoYoTestStarted: false,7 IsStoped: true,8 StartDateTime: undefined,9 NextShuttle: "0.0",10 TotalTime: "00.00",11 TotalDistance: 0.0,12 CurrentLevel: {13 AccumulatedShuttleDistance: "40",14 SpeedLevel: "5",15 ShuttleNo: "1",16 Speed: "10",17 LevelTime: "1.4",18 CommulativeTime: "00:24",19 StartTime: "00:00",20 ApproxVo2Max: "36.74"21 },22 ParticipantsList: [23 {24 Name: 'Ricky Martin',25 Id: 1,26 WarningCount: 0,27 warningAt: 0,28 StopedAt: 0,29 Lost: false30 },31 {32 Name: 'James Bond',33 Id: 2,34 WarningCount: 0, warningAt: 0,35 StopedAt: 0,36 Lost: false37 },38 {39 Name: 'Usain bolt',40 Id: 3,41 WarningCount: 0, warningAt: 0,42 StopedAt: 0,43 Lost: false44 },45 ],46 ShuttlerList: [47 {48 "AccumulatedShuttleDistance": "40",49 "SpeedLevel": "5",50 "ShuttleNo": "1",51 "Speed": "10",52 "LevelTime": "1.4",53 "CommulativeTime": "00:24",54 "StartTime": "00:00",55 "ApproxVo2Max": "36.74"56 },57 {58 "AccumulatedShuttleDistance": "80",59 "SpeedLevel": "9",60 "ShuttleNo": "1",61 "Speed": "12",62 "LevelTime": "1.5",63 "CommulativeTime": "00:46",64 "StartTime": "00:25",65 "ApproxVo2Max": "37.07"66 }67 //,{68 // "AccumulatedShuttleDistance": "120",69 // "SpeedLevel": "11",70 // "ShuttleNo": "1",71 // "Speed": "13",72 // "LevelTime": "11.1",73 // "CommulativeTime": "01:07",74 // "StartTime": "00:47",75 // "ApproxVo2Max": "37.41"76 //},77 //{78 // "AccumulatedShuttleDistance": "160",79 // "SpeedLevel": "11",80 // "ShuttleNo": "2",81 // "Speed": "13",82 // "LevelTime": "11.1",83 // "CommulativeTime": "01:29",84 // "StartTime": "01:08",85 // "ApproxVo2Max": "37.74"86 //},87 //{88 // "AccumulatedShuttleDistance": "200",89 // "SpeedLevel": "12",90 // "ShuttleNo": "1",91 // "Speed": "13.5",92 // "LevelTime": "10.7",93 // "CommulativeTime": "01:49",94 // "StartTime": "01:30",95 // "ApproxVo2Max": "38.08"96 //},97 //{98 // "AccumulatedShuttleDistance": "240",99 // "SpeedLevel": "12",100 // "ShuttleNo": "2",101 // "Speed": "13.5",102 // "LevelTime": "10.7",103 // "CommulativeTime": "02:10",104 // "StartTime": "01:50",105 // "ApproxVo2Max": "38.42"106 //},107 //{108 // "AccumulatedShuttleDistance": "280",109 // "SpeedLevel": "12",110 // "ShuttleNo": "3",111 // "Speed": "13.5",112 // "LevelTime": "10.7",113 // "CommulativeTime": "02:31",114 // "StartTime": "02:11",115 // "ApproxVo2Max": "38.75"116 //},117 //{118 // "AccumulatedShuttleDistance": "320",119 // "SpeedLevel": "13",120 // "ShuttleNo": "1",121 // "Speed": "14",122 // "LevelTime": "10.3",123 // "CommulativeTime": "02:51",124 // "StartTime": "02:32",125 // "ApproxVo2Max": "39.09"126 //},127 //{128 // "AccumulatedShuttleDistance": "360",129 // "SpeedLevel": "13",130 // "ShuttleNo": "2",131 // "Speed": "14",132 // "LevelTime": "10.3",133 // "CommulativeTime": "03:11",134 // "StartTime": "02:52",135 // "ApproxVo2Max": "39.42"136 //},137 //{138 // "AccumulatedShuttleDistance": "400",139 // "SpeedLevel": "13",140 // "ShuttleNo": "3",141 // "Speed": "14",142 // "LevelTime": "10.3",143 // "CommulativeTime": "03:31",144 // "StartTime": "03:12",145 // "ApproxVo2Max": "39.76"146 //},147 //{148 // "AccumulatedShuttleDistance": "440",149 // "SpeedLevel": "13",150 // "ShuttleNo": "4",151 // "Speed": "14",152 // "LevelTime": "10.3",153 // "CommulativeTime": "03:52",154 // "StartTime": "03:32",155 // "ApproxVo2Max": "40.10"156 //},157 //{158 // "AccumulatedShuttleDistance": "480",159 // "SpeedLevel": "14",160 // "ShuttleNo": "1",161 // "Speed": "14.5",162 // "LevelTime": "9.9",163 // "CommulativeTime": "04:12",164 // "StartTime": "03:53",165 // "ApproxVo2Max": "40.43"166 //},167 //{168 // "AccumulatedShuttleDistance": "520",169 // "SpeedLevel": "14",170 // "ShuttleNo": "2",171 // "Speed": "14.5",172 // "LevelTime": "9.9",173 // "CommulativeTime": "04:32",174 // "StartTime": "04:12",175 // "ApproxVo2Max": "40.77"176 //},177 //{178 // "AccumulatedShuttleDistance": "560",179 // "SpeedLevel": "14",180 // "ShuttleNo": "3",181 // "Speed": "14.5",182 // "LevelTime": "9.9",183 // "CommulativeTime": "04:51",184 // "StartTime": "04:33",185 // "ApproxVo2Max": "41.10"186 //},187 //{188 // "AccumulatedShuttleDistance": "600",189 // "SpeedLevel": "14",190 // "ShuttleNo": "4",191 // "Speed": "14.5",192 // "LevelTime": "9.9",193 // "CommulativeTime": "05:11",194 // "StartTime": "04:52",195 // "ApproxVo2Max": "41.44"196 //},197 //{198 // "AccumulatedShuttleDistance": "640",199 // "SpeedLevel": "14",200 // "ShuttleNo": "5",201 // "Speed": "14.5",202 // "LevelTime": "9.9",203 // "CommulativeTime": "05:31",204 // "StartTime": "05:12",205 // "ApproxVo2Max": "41.78"206 //},207 //{208 // "AccumulatedShuttleDistance": "680",209 // "SpeedLevel": "14",210 // "ShuttleNo": "6",211 // "Speed": "14.5",212 // "LevelTime": "9.9",213 // "CommulativeTime": "05:51",214 // "StartTime": "05:32",215 // "ApproxVo2Max": "42.11"216 //},217 //{218 // "AccumulatedShuttleDistance": "720",219 // "SpeedLevel": "14",220 // "ShuttleNo": "7",221 // "Speed": "14.5",222 // "LevelTime": "9.9",223 // "CommulativeTime": "06:11",224 // "StartTime": "05:52",225 // "ApproxVo2Max": "42.45"226 //},227 //{228 // "AccumulatedShuttleDistance": "760",229 // "SpeedLevel": "14",230 // "ShuttleNo": "8",231 // "Speed": "14.5",232 // "LevelTime": "9.9",233 // "CommulativeTime": "06:31",234 // "StartTime": "06:12",235 // "ApproxVo2Max": "42.78"236 //},237 //{238 // "AccumulatedShuttleDistance": "800",239 // "SpeedLevel": "15",240 // "ShuttleNo": "1",241 // "Speed": "15",242 // "LevelTime": "9.6",243 // "CommulativeTime": "06:51",244 // "StartTime": "06:32",245 // "ApproxVo2Max": "43.12"246 //},247 //{248 // "AccumulatedShuttleDistance": "840",249 // "SpeedLevel": "15",250 // "ShuttleNo": "2",251 // "Speed": "15",252 // "LevelTime": "9.6",253 // "CommulativeTime": "07:10",254 // "StartTime": "06:52",255 // "ApproxVo2Max": "43.46"256 //},257 //{258 // "AccumulatedShuttleDistance": "880",259 // "SpeedLevel": "15",260 // "ShuttleNo": "3",261 // "Speed": "15",262 // "LevelTime": "9.6",263 // "CommulativeTime": "07:30",264 // "StartTime": "07:11",265 // "ApproxVo2Max": "43.79"266 //},267 //{268 // "AccumulatedShuttleDistance": "920",269 // "SpeedLevel": "15",270 // "ShuttleNo": "4",271 // "Speed": "15",272 // "LevelTime": "9.6",273 // "CommulativeTime": "07:50",274 // "StartTime": "07:31",275 // "ApproxVo2Max": "44.13"276 //},277 //{278 // "AccumulatedShuttleDistance": "960",279 // "SpeedLevel": "15",280 // "ShuttleNo": "5",281 // "Speed": "15",282 // "LevelTime": "9.6",283 // "CommulativeTime": "08:09",284 // "StartTime": "07:51",285 // "ApproxVo2Max": "44.40"286 //},287 //{288 // "AccumulatedShuttleDistance": "1000",289 // "SpeedLevel": "15",290 // "ShuttleNo": "6",291 // "Speed": "15",292 // "LevelTime": "9.6",293 // "CommulativeTime": "08:29",294 // "StartTime": "08:10",295 // "ApproxVo2Max": "44.80"296 //},297 //{298 // "AccumulatedShuttleDistance": "1040",299 // "SpeedLevel": "15",300 // "ShuttleNo": "7",301 // "Speed": "15",302 // "LevelTime": "9.6",303 // "CommulativeTime": "08:48",304 // "StartTime": "08:30",305 // "ApproxVo2Max": "45.14"306 //},307 //{308 // "AccumulatedShuttleDistance": "1080",309 // "SpeedLevel": "15",310 // "ShuttleNo": "8",311 // "Speed": "15",312 // "LevelTime": "9.6",313 // "CommulativeTime": "09:08",314 // "StartTime": "08:49",315 // "ApproxVo2Max": "45.47"316 //},317 //{318 // "AccumulatedShuttleDistance": "1120",319 // "SpeedLevel": "16",320 // "ShuttleNo": "1",321 // "Speed": "15.5",322 // "LevelTime": "9.3",323 // "CommulativeTime": "09:27",324 // "StartTime": "09:09",325 // "ApproxVo2Max": "45.81"326 //},327 //{328 // "AccumulatedShuttleDistance": "1160",329 // "SpeedLevel": "16",330 // "ShuttleNo": "2",331 // "Speed": "15.5",332 // "LevelTime": "9.3",333 // "CommulativeTime": "09:47",334 // "StartTime": "09:28",335 // "ApproxVo2Max": "46.14"336 //},337 //{338 // "AccumulatedShuttleDistance": "1200",339 // "SpeedLevel": "16",340 // "ShuttleNo": "3",341 // "Speed": "15.5",342 // "LevelTime": "9.3",343 // "CommulativeTime": "10:06",344 // "StartTime": "09:48",345 // "ApproxVo2Max": "46.48"346 //},347 //{348 // "AccumulatedShuttleDistance": "1240",349 // "SpeedLevel": "16",350 // "ShuttleNo": "4",351 // "Speed": "15.5",352 // "LevelTime": "9.3",353 // "CommulativeTime": "10:25",354 // "StartTime": "10:07",355 // "ApproxVo2Max": "46.82"356 //},357 //{358 // "AccumulatedShuttleDistance": "1280",359 // "SpeedLevel": "16",360 // "ShuttleNo": "5",361 // "Speed": "15.5",362 // "LevelTime": "9.3",363 // "CommulativeTime": "10:44",364 // "StartTime": "10:26",365 // "ApproxVo2Max": "47.15"366 //},367 //{368 // "AccumulatedShuttleDistance": "1320",369 // "SpeedLevel": "16",370 // "ShuttleNo": "6",371 // "Speed": "15.5",372 // "LevelTime": "9.3",373 // "CommulativeTime": "11:04",374 // "StartTime": "10:45",375 // "ApproxVo2Max": "47.49"376 //},377 //{378 // "AccumulatedShuttleDistance": "1360",379 // "SpeedLevel": "16",380 // "ShuttleNo": "7",381 // "Speed": "15.5",382 // "LevelTime": "9.3",383 // "CommulativeTime": "11:23",384 // "StartTime": "11:05",385 // "ApproxVo2Max": "47.82"386 //},387 //{388 // "AccumulatedShuttleDistance": "1400",389 // "SpeedLevel": "16",390 // "ShuttleNo": "8",391 // "Speed": "15.5",392 // "LevelTime": "9.3",393 // "CommulativeTime": "11:42",394 // "StartTime": "11:24",395 // "ApproxVo2Max": "48.16"396 //},397 //{398 // "AccumulatedShuttleDistance": "1440",399 // "SpeedLevel": "17",400 // "ShuttleNo": "1",401 // "Speed": "16",402 // "LevelTime": "9",403 // "CommulativeTime": "12:01",404 // "StartTime": "11:43",405 // "ApproxVo2Max": "48.50"406 //},407 //{408 // "AccumulatedShuttleDistance": "1480",409 // "SpeedLevel": "17",410 // "ShuttleNo": "2",411 // "Speed": "16",412 // "LevelTime": "9",413 // "CommulativeTime": "12:20",414 // "StartTime": "12:02",415 // "ApproxVo2Max": "48.83"416 //},417 //{418 // "AccumulatedShuttleDistance": "1520",419 // "SpeedLevel": "17",420 // "ShuttleNo": "3",421 // "Speed": "16",422 // "LevelTime": "9",423 // "CommulativeTime": "12:39",424 // "StartTime": "12:21",425 // "ApproxVo2Max": "49.17"426 //},427 //{428 // "AccumulatedShuttleDistance": "1560",429 // "SpeedLevel": "17",430 // "ShuttleNo": "4",431 // "Speed": "16",432 // "LevelTime": "9",433 // "CommulativeTime": "12:58",434 // "StartTime": "12:40",435 // "ApproxVo2Max": "49.50"436 //},437 //{438 // "AccumulatedShuttleDistance": "1600",439 // "SpeedLevel": "17",440 // "ShuttleNo": "5",441 // "Speed": "16",442 // "LevelTime": "9",443 // "CommulativeTime": "13:17",444 // "StartTime": "12:59",445 // "ApproxVo2Max": "49.84"446 //},447 //{448 // "AccumulatedShuttleDistance": "1640",449 // "SpeedLevel": "17",450 // "ShuttleNo": "6",451 // "Speed": "16",452 // "LevelTime": "9",453 // "CommulativeTime": "13:36",454 // "StartTime": "13:18",455 // "ApproxVo2Max": "50.18"456 //},457 //{458 // "AccumulatedShuttleDistance": "1680",459 // "SpeedLevel": "17",460 // "ShuttleNo": "7",461 // "Speed": "16",462 // "LevelTime": "9",463 // "CommulativeTime": "13:55",464 // "StartTime": "13:37",465 // "ApproxVo2Max": "50.51"466 //},467 //{468 // "AccumulatedShuttleDistance": "1720",469 // "SpeedLevel": "17",470 // "ShuttleNo": "8",471 // "Speed": "16",472 // "LevelTime": "9",473 // "CommulativeTime": "14:14",474 // "StartTime": "13:56",475 // "ApproxVo2Max": "50.85"476 //},477 //{478 // "AccumulatedShuttleDistance": "1760",479 // "SpeedLevel": "18",480 // "ShuttleNo": "1",481 // "Speed": "16.5",482 // "LevelTime": "8.7",483 // "CommulativeTime": "14:33",484 // "StartTime": "14:15",485 // "ApproxVo2Max": "51.18"486 //},487 //{488 // "AccumulatedShuttleDistance": "1800",489 // "SpeedLevel": "18",490 // "ShuttleNo": "2",491 // "Speed": "16.5",492 // "LevelTime": "8.7",493 // "CommulativeTime": "14:52",494 // "StartTime": "14:34",495 // "ApproxVo2Max": "51.52"496 //},497 //{498 // "AccumulatedShuttleDistance": "1840",499 // "SpeedLevel": "18",500 // "ShuttleNo": "3",501 // "Speed": "16.5",502 // "LevelTime": "8.7",503 // "CommulativeTime": "15:10",504 // "StartTime": "14:53",505 // "ApproxVo2Max": "51.86"506 //},507 //{508 // "AccumulatedShuttleDistance": "1880",509 // "SpeedLevel": "18",510 // "ShuttleNo": "4",511 // "Speed": "16.5",512 // "LevelTime": "8.7",513 // "CommulativeTime": "15:29",514 // "StartTime": "15:11",515 // "ApproxVo2Max": "52.19"516 //},517 //{518 // "AccumulatedShuttleDistance": "1920",519 // "SpeedLevel": "18",520 // "ShuttleNo": "5",521 // "Speed": "16.5",522 // "LevelTime": "8.7",523 // "CommulativeTime": "15:48",524 // "StartTime": "15:30",525 // "ApproxVo2Max": "52.53"526 //},527 //{528 // "AccumulatedShuttleDistance": "1960",529 // "SpeedLevel": "18",530 // "ShuttleNo": "6",531 // "Speed": "16.5",532 // "LevelTime": "8.7",533 // "CommulativeTime": "16:07",534 // "StartTime": "15:49",535 // "ApproxVo2Max": "52.86"536 //},537 //{538 // "AccumulatedShuttleDistance": "2000",539 // "SpeedLevel": "18",540 // "ShuttleNo": "7",541 // "Speed": "16.5",542 // "LevelTime": "8.7",543 // "CommulativeTime": "16:25",544 // "StartTime": "16:08",545 // "ApproxVo2Max": "53.20"546 //},547 //{548 // "AccumulatedShuttleDistance": "2040",549 // "SpeedLevel": "18",550 // "ShuttleNo": "8",551 // "Speed": "16.5",552 // "LevelTime": "8.7",553 // "CommulativeTime": "16:44",554 // "StartTime": "16:26",555 // "ApproxVo2Max": "53.54"556 //},557 //{558 // "AccumulatedShuttleDistance": "2080",559 // "SpeedLevel": "19",560 // "ShuttleNo": "1",561 // "Speed": "17",562 // "LevelTime": "8.5",563 // "CommulativeTime": "17:03",564 // "StartTime": "16:45",565 // "ApproxVo2Max": "53.87"566 //},567 //{568 // "AccumulatedShuttleDistance": "2120",569 // "SpeedLevel": "19",570 // "ShuttleNo": "2",571 // "Speed": "17",572 // "LevelTime": "8.5",573 // "CommulativeTime": "17:21",574 // "StartTime": "17:04",575 // "ApproxVo2Max": "54.21"576 //},577 //{578 // "AccumulatedShuttleDistance": "2160",579 // "SpeedLevel": "19",580 // "ShuttleNo": "3",581 // "Speed": "17",582 // "LevelTime": "8.5",583 // "CommulativeTime": "17:39",584 // "StartTime": "17:22",585 // "ApproxVo2Max": "54.54"586 //},587 //{588 // "AccumulatedShuttleDistance": "2200",589 // "SpeedLevel": "19",590 // "ShuttleNo": "4",591 // "Speed": "17",592 // "LevelTime": "8.5",593 // "CommulativeTime": "17:58",594 // "StartTime": "17:40",595 // "ApproxVo2Max": "54.88"596 //},597 //{598 // "AccumulatedShuttleDistance": "2240",599 // "SpeedLevel": "19",600 // "ShuttleNo": "5",601 // "Speed": "17",602 // "LevelTime": "8.5",603 // "CommulativeTime": "18:16",604 // "StartTime": "17:59",605 // "ApproxVo2Max": "55.22"606 //},607 //{608 // "AccumulatedShuttleDistance": "2280",609 // "SpeedLevel": "19",610 // "ShuttleNo": "6",611 // "Speed": "17",612 // "LevelTime": "8.5",613 // "CommulativeTime": "18:35",614 // "StartTime": "18:17",615 // "ApproxVo2Max": "55.55"616 //},617 //{618 // "AccumulatedShuttleDistance": "2320",619 // "SpeedLevel": "19",620 // "ShuttleNo": "7",621 // "Speed": "17",622 // "LevelTime": "8.5",623 // "CommulativeTime": "18:53",624 // "StartTime": "18:36",625 // "ApproxVo2Max": "55.89"626 //},627 //{628 // "AccumulatedShuttleDistance": "2360",629 // "SpeedLevel": "19",630 // "ShuttleNo": "8",631 // "Speed": "17",632 // "LevelTime": "8.5",633 // "CommulativeTime": "19:12",634 // "StartTime": "18:54",635 // "ApproxVo2Max": "56.22"636 //},637 //{638 // "AccumulatedShuttleDistance": "2400",639 // "SpeedLevel": "20",640 // "ShuttleNo": "1",641 // "Speed": "17.5",642 // "LevelTime": "8.2",643 // "CommulativeTime": "19:30",644 // "StartTime": "19:13",645 // "ApproxVo2Max": "56.56"646 //},647 //{648 // "AccumulatedShuttleDistance": "2440",649 // "SpeedLevel": "20",650 // "ShuttleNo": "2",651 // "Speed": "17.5",652 // "LevelTime": "8.2",653 // "CommulativeTime": "19:48",654 // "StartTime": "19:31",655 // "ApproxVo2Max": "56.90"656 //},657 //{658 // "AccumulatedShuttleDistance": "2480",659 // "SpeedLevel": "20",660 // "ShuttleNo": "3",661 // "Speed": "17.5",662 // "LevelTime": "8.2",663 // "CommulativeTime": "20:07",664 // "StartTime": "19:49",665 // "ApproxVo2Max": "57.23"666 //},667 //{668 // "AccumulatedShuttleDistance": "2520",669 // "SpeedLevel": "20",670 // "ShuttleNo": "4",671 // "Speed": "17.5",672 // "LevelTime": "8.2",673 // "CommulativeTime": "20:25",674 // "StartTime": "20:08",675 // "ApproxVo2Max": "57.57"676 //},677 //{678 // "AccumulatedShuttleDistance": "2560",679 // "SpeedLevel": "20",680 // "ShuttleNo": "5",681 // "Speed": "17.5",682 // "LevelTime": "8.2",683 // "CommulativeTime": "20:43",684 // "StartTime": "20:26",685 // "ApproxVo2Max": "57.90"686 //},687 //{688 // "AccumulatedShuttleDistance": "2600",689 // "SpeedLevel": "20",690 // "ShuttleNo": "6",691 // "Speed": "17.5",692 // "LevelTime": "8.2",693 // "CommulativeTime": "21:01",694 // "StartTime": "20:44",695 // "ApproxVo2Max": "58.24"696 //},697 //{698 // "AccumulatedShuttleDistance": "2640",699 // "SpeedLevel": "20",700 // "ShuttleNo": "7",701 // "Speed": "17.5",702 // "LevelTime": "8.2",703 // "CommulativeTime": "21:19",704 // "StartTime": "21:02",705 // "ApproxVo2Max": "58.58"706 //},707 //{708 // "AccumulatedShuttleDistance": "2680",709 // "SpeedLevel": "20",710 // "ShuttleNo": "8",711 // "Speed": "17.5",712 // "LevelTime": "8.2",713 // "CommulativeTime": "21:38",714 // "StartTime": "21:20",715 // "ApproxVo2Max": "58.91"716 //},717 //{718 // "AccumulatedShuttleDistance": "2720",719 // "SpeedLevel": "21",720 // "ShuttleNo": "1",721 // "Speed": "18",722 // "LevelTime": "8.0",723 // "CommulativeTime": "21:56",724 // "StartTime": "21:39",725 // "ApproxVo2Max": "59.25"726 //},727 //{728 // "AccumulatedShuttleDistance": "2760",729 // "SpeedLevel": "21",730 // "ShuttleNo": "2",731 // "Speed": "18",732 // "LevelTime": "8.0",733 // "CommulativeTime": "22:14",734 // "StartTime": "21:57",735 // "ApproxVo2Max": "59.58"736 //},737 //{738 // "AccumulatedShuttleDistance": "2800",739 // "SpeedLevel": "21",740 // "ShuttleNo": "3",741 // "Speed": "18",742 // "LevelTime": "8.0",743 // "CommulativeTime": "22:32",744 // "StartTime": "22:15",745 // "ApproxVo2Max": "59.92"746 //},747 //{748 // "AccumulatedShuttleDistance": "2840",749 // "SpeedLevel": "21",750 // "ShuttleNo": "4",751 // "Speed": "18",752 // "LevelTime": "8.0",753 // "CommulativeTime": "22:50",754 // "StartTime": "22:33",755 // "ApproxVo2Max": "60.26"756 //},757 //{758 // "AccumulatedShuttleDistance": "2880",759 // "SpeedLevel": "21",760 // "ShuttleNo": "5",761 // "Speed": "18",762 // "LevelTime": "8.0",763 // "CommulativeTime": "23:08",764 // "StartTime": "22:51",765 // "ApproxVo2Max": "60.59"766 //},767 //{768 // "AccumulatedShuttleDistance": "2920",769 // "SpeedLevel": "21",770 // "ShuttleNo": "6",771 // "Speed": "18",772 // "LevelTime": "8.0",773 // "CommulativeTime": "23:26",774 // "StartTime": "23:09",775 // "ApproxVo2Max": "60.93"776 //},777 //{778 // "AccumulatedShuttleDistance": "2960",779 // "SpeedLevel": "21",780 // "ShuttleNo": "7",781 // "Speed": "18",782 // "LevelTime": "8.0",783 // "CommulativeTime": "23:44",784 // "StartTime": "23:27",785 // "ApproxVo2Max": "61.26"786 //},787 //{788 // "AccumulatedShuttleDistance": "3000",789 // "SpeedLevel": "21",790 // "ShuttleNo": "8",791 // "Speed": "18",792 // "LevelTime": "8.0",793 // "CommulativeTime": "24:02",794 // "StartTime": "23:45",795 // "ApproxVo2Max": "61.60"796 //},797 //{798 // "AccumulatedShuttleDistance": "3040",799 // "SpeedLevel": "22",800 // "ShuttleNo": "1",801 // "Speed": "18.5",802 // "LevelTime": "7.8",803 // "CommulativeTime": "24:19",804 // "StartTime": "24:03",805 // "ApproxVo2Max": "61.94"806 //},807 //{808 // "AccumulatedShuttleDistance": "3080",809 // "SpeedLevel": "22",810 // "ShuttleNo": "2",811 // "Speed": "18.5",812 // "LevelTime": "7.8",813 // "CommulativeTime": "24:37",814 // "StartTime": "24:20",815 // "ApproxVo2Max": "62.27"816 //},817 //{818 // "AccumulatedShuttleDistance": "3120",819 // "SpeedLevel": "22",820 // "ShuttleNo": "3",821 // "Speed": "18.5",822 // "LevelTime": "7.8",823 // "CommulativeTime": "24:55",824 // "StartTime": "24:38",825 // "ApproxVo2Max": "62.61"826 //},827 //{828 // "AccumulatedShuttleDistance": "3160",829 // "SpeedLevel": "22",830 // "ShuttleNo": "4",831 // "Speed": "18.5",832 // "LevelTime": "7.8",833 // "CommulativeTime": "25:13",834 // "StartTime": "24:56",835 // "ApproxVo2Max": "62.94"836 //},837 //{838 // "AccumulatedShuttleDistance": "3200",839 // "SpeedLevel": "22",840 // "ShuttleNo": "5",841 // "Speed": "18.5",842 // "LevelTime": "7.8",843 // "CommulativeTime": "25:31",844 // "StartTime": "25:14",845 // "ApproxVo2Max": "63.28"846 //},847 //{848 // "AccumulatedShuttleDistance": "3240",849 // "SpeedLevel": "22",850 // "ShuttleNo": "6",851 // "Speed": "18.5",852 // "LevelTime": "7.8",853 // "CommulativeTime": "25:48",854 // "StartTime": "25:32",855 // "ApproxVo2Max": "63.62"856 //},857 //{858 // "AccumulatedShuttleDistance": "3280",859 // "SpeedLevel": "22",860 // "ShuttleNo": "7",861 // "Speed": "18.5",862 // "LevelTime": "7.8",863 // "CommulativeTime": "26:06",864 // "StartTime": "25:49",865 // "ApproxVo2Max": "63.95"866 //},867 //{868 // "AccumulatedShuttleDistance": "3320",869 // "SpeedLevel": "22",870 // "ShuttleNo": "8",871 // "Speed": "18.5",872 // "LevelTime": "7.8",873 // "CommulativeTime": "26:24",874 // "StartTime": "26:07",875 // "ApproxVo2Max": "64.29"876 //},877 //{878 // "AccumulatedShuttleDistance": "3360",879 // "SpeedLevel": "23",880 // "ShuttleNo": "1",881 // "Speed": "19",882 // "LevelTime": "7.6",883 // "CommulativeTime": "26:42",884 // "StartTime": "26:25",885 // "ApproxVo2Max": "64.62"886 //},887 //{888 // "AccumulatedShuttleDistance": "3400",889 // "SpeedLevel": "23",890 // "ShuttleNo": "2",891 // "Speed": "19",892 // "LevelTime": "7.6",893 // "CommulativeTime": "26:59",894 // "StartTime": "26:43",895 // "ApproxVo2Max": "64.96"896 //},897 //{898 // "AccumulatedShuttleDistance": "3440",899 // "SpeedLevel": "23",900 // "ShuttleNo": "3",901 // "Speed": "19",902 // "LevelTime": "7.6",903 // "CommulativeTime": "27:17",904 // "StartTime": "27:00",905 // "ApproxVo2Max": "65.30"906 //},907 //{908 // "AccumulatedShuttleDistance": "3480",909 // "SpeedLevel": "23",910 // "ShuttleNo": "4",911 // "Speed": "19",912 // "LevelTime": "7.6",913 // "CommulativeTime": "27:34",914 // "StartTime": "27:18",915 // "ApproxVo2Max": "65.63"916 //},917 //{918 // "AccumulatedShuttleDistance": "3520",919 // "SpeedLevel": "23",920 // "ShuttleNo": "5",921 // "Speed": "19",922 // "LevelTime": "7.6",923 // "CommulativeTime": "27:52",924 // "StartTime": "27:35",925 // "ApproxVo2Max": "65.97"926 //},927 //{928 // "AccumulatedShuttleDistance": "3560",929 // "SpeedLevel": "23",930 // "ShuttleNo": "6",931 // "Speed": "19",932 // "LevelTime": "7.6",933 // "CommulativeTime": "28:09",934 // "StartTime": "27:53",935 // "ApproxVo2Max": "66.30"936 //},937 //{938 // "AccumulatedShuttleDistance": "3600",939 // "SpeedLevel": "23",940 // "ShuttleNo": "7",941 // "Speed": "19",942 // "LevelTime": "7.6",943 // "CommulativeTime": "28:27",944 // "StartTime": "28:10",945 // "ApproxVo2Max": "66.64"946 //},947 //{948 // "AccumulatedShuttleDistance": "3640",949 // "SpeedLevel": "23",950 // "ShuttleNo": "8",951 // "Speed": "19",952 // "LevelTime": "7.6",953 // "CommulativeTime": "28:45",954 // "StartTime": "28:28",955 // "ApproxVo2Max": "66.98"956 //}957 ],958 htmlIds: {959 nextShuttle: $("#nextShuttle"),960 totalTime: $("#totalTime"),961 totalDistance: $("#totalDistance"),962 btnPlayStop: $("#btnPlayStop"),963 PlayerList: $("#PlayerList"),964 circleDiv: $("#circleDiv")965 },966 Init: function () {967 console.log("App Initialized");968 $(this.htmlIds.nextShuttle).html("0.0");969 $(this.htmlIds.nextShuttle).html("0.0");970 $(this.htmlIds.totalDistance).html("0.0");971 $(this.htmlIds.totalTime).html("0.0");972 this.BindParticipantsList();973 },974 Play: function (dateTime) {975 this.IsStoped = false;976 if (!this.IsYoYoTestStarted) {977 YoYo.IsYoYoTestStarted = true;978 this.calculateNextShuttleTimeCountDown();979 YoYo.GetCurrentSetting();980 } else {981 this.dateTime = 0;982 }983 if (YoYo.StartDateTime === undefined) {984 YoYo.StartDateTime = new Date().getTime();985 }986 },987 Stop: function () {988 debugger;989 $(YoYo.htmlIds.btnPlayStop)[0].firstElementChild.src = "/Images/play.jpg"990 $(YoYo.htmlIds.btnPlayStop)[0].firstElementChild = false;991 this.IsStoped = true;992 },993 getShuttlerList: function () { },994 calculateNextShuttleTimeCountDown: function () {995 var LevelTime = YoYo.CurrentLevel.LevelTime;996 var interval = setInterval(function () {997 var timer = LevelTime.split('.');998 //by parsing integer, I avoid all extra string processing999 var minutes = parseInt(timer[0], 10);1000 var seconds = parseInt(timer[1], 10);1001 --seconds;1002 minutes = (seconds < 0) ? --minutes : minutes;1003 //if (minutes != 0 && seconds != 0) {1004 if (minutes < 0) clearInterval(interval);1005 seconds = (seconds < 0) ? 59 : seconds;1006 seconds = (seconds < 10) ? '0' + seconds : seconds;1007 //minutes = (minutes < 10) ? minutes : minutes;1008 if (minutes != -1) {1009 document.getElementById("nextShuttle").innerHTML = (minutes + ':' + seconds);1010 YoYo.NextShuttle = (minutes + '.' + seconds);1011 LevelTime = minutes + '.' + seconds;1012 //var rr = new Date(YoYo.TotalTime);1013 //YoYo.TotalTime = rr.setSeconds(rr.getSeconds() + 1);1014 $(YoYo.htmlIds.totalTime).html("");1015 $(YoYo.htmlIds.totalTime).html(secondsToHms(YoYo.TotalTime));1016 //}1017 } else {1018 YoYo.GetCurrentSetting();1019 YoYo.calculateNextShuttleTimeCountDown();1020 }1021 }, 1000);1022 },1023 updateCountDown: function () {1024 var x = setInterval(function () {1025 // Get today's date and time1026 var now = new Date().getTime();1027 // Find the distance between now and the count down date1028 var distance = this.StartDateTime - now;1029 // Time calculations for days, hours, minutes and seconds1030 var days = Math.floor(distance / (1000 * 60 * 60 * 24));1031 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));1032 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));1033 var seconds = Math.floor((distance % (1000 * 60)) / 1000);1034 // Display the result in the element with id="demo"1035 document.getElementById("demo").innerHTML = // days + "d " + hours + "h " +1036 minutes + "m " + seconds + "s ";1037 // If the count down is finished, write some text1038 if (distance < 0) {1039 clearInterval(x);1040 document.getElementById("demo").innerHTML = "EXPIRED";1041 }1042 }, 1000);1043 },1044 AjaxCall: function () {1045 $.ajax({1046 type: "POST",1047 url: "Add",1048 data: { number1: val1, number2: val2 },1049 dataType: "text",1050 success: function (msg) {1051 console.log(msg);1052 },1053 error: function (req, status, error) {1054 console.log(msg);1055 }1056 });1057 },1058 BindParticipantsList: function () {1059 var dd = "";1060 $(YoYo.htmlIds.PlayerList).html("");1061 for (var i = 0; i < YoYo.ParticipantsList.length; i++) {1062 //if (!YoYo.ParticipantsList[i].Lost) {1063 dd = dd1064 + ("<li class='list-group-item ParticipantList' id = '" + YoYo.ParticipantsList[i].Id + "' > "1065 + YoYo.ParticipantsList[i].Name1066 + (YoYo.ParticipantsList[i].WarningCount === 0 ?1067 "<button class='warnStopBtn warnBtn' onclick='WarnStopParticipants(1," + YoYo.ParticipantsList[i].Id + ") '>warn</button>" : "")1068 + (YoYo.ParticipantsList[i].Lost === false ? "<button class='warnStopBtn stopBtn' onclick='WarnStopParticipants(2," + YoYo.ParticipantsList[i].Id + ")'>stop</button>" : "")1069 + "</li>");1070 //}1071 }1072 $(YoYo.htmlIds.PlayerList).append(dd);1073 },1074 GetCurrentSetting: function () {1075 console.log('GetCurrentSetting');1076 YoYo.TotalDistance = YoYo.TotalDistance + parseInt(YoYo.CurrentLevel.Speed);1077 YoYo.ShuttlerList.filter(i => {1078 YoYo.CurrentLevel.SpeedLevel = i.SpeedLevel;1079 YoYo.CurrentLevel.ShuttleNo = i.ShuttleNo;1080 YoYo.CurrentLevel.Speed = i.Speed;1081 YoYo.CurrentLevel.CommulativeTime = i.CommulativeTime;1082 YoYo.CurrentLevel.StartTime = i.StartTime;1083 });1084 $(YoYo.htmlIds.totalDistance).html(YoYo.TotalDistance);1085 const dddd = YoYo.ShuttlerList.filter(ii =>1086 ii.SpeedLevel === YoYo.CurrentLevel.SpeedLevel &&1087 ii.ShuttleNo === YoYo.CurrentLevel.ShuttleNo1088 )[0];1089 debugger;1090 if (dddd !== undefined) {1091 YoYo.CompletedShuttlerList.push(dddd);1092 YoYo.ShuttlerList = YoYo.ShuttlerList.filter(ii =>1093 ii.SpeedLevel !== YoYo.CurrentLevel.SpeedLevel1094 );1095 $(YoYo.htmlIds.circleDiv).show();1096 $(YoYo.htmlIds.circleDiv).html("<p> Level "1097 + YoYo.CurrentLevel.SpeedLevel1098 + "</p> <p> Shuttle "1099 + YoYo.CurrentLevel.ShuttleNo + "</p> <p>" + YoYo.CurrentLevel.Speed + " km/h </p>")1100 } else {1101 YoYo.Stop();1102 }1103 },1104 CompletedShuttlerList: []1105};1106//&&1107// ii.CurrentLevel.ShuttleNo !== YoYo.CurrentLevel.ShuttleNo1108$(document).ready(function () {1109 YoYo.Init();1110 $(YoYo.htmlIds.btnPlayStop).on('click', function () {1111 if (this.firstElementChild.src.indexOf('play') > 0) {1112 //this.StartDateTime = new dateTime1113 YoYo.Play();1114 this.firstElementChild.src = "/Images/stop.jpg";1115 this.firstElementChild.hidden = true;1116 } else {1117 YoYo.Stop();1118 }1119 });1120});1121function WarnStopParticipants(typeofRequest, participantsId) {1122 //warn = 1 , stop = 2 1123 YoYo.ParticipantsList.map(item => {1124 if (item.Id === participantsId) {1125 item.WarningCount = typeofRequest === 1 ? 1 : item.WarningCount;1126 //item.Lost = typeofRequest === 2 ? true : item.Lost;1127 if (typeofRequest === 2) {1128 item.Lost = true;1129 item.WarningCount = 1;1130 }1131 }1132 });1133 YoYo.BindParticipantsList();1134}1135//$(document).on('Click', "[name='adfadf]", function () { });1136function secondsToHms(seconds) {1137 var arr = YoYo.TotalTime.toString().split(".");1138 var min = parseInt(arr[0]);1139 var sec = parseInt(arr[1]);1140 if (sec === 60) {1141 if (min < 60) {1142 min += 1;1143 sec = 1;1144 }1145 }1146 sec += 1;1147 YoYo.TotalTime = parseInt(min) + '.' + parseInt(sec);1148 return YoYo.TotalTime;1149 //var d;1150 //d = new Date(YoYo.TotalTime);1151 ////alert(d.getMinutes() + ':' + d.getSeconds()); //11:551152 //d.setSeconds(d.getSeconds() + 1);1153 //return (d.getMinutes() + ':0' + d.getSeconds()); //12:05...
Gruntfile.js
Source:Gruntfile.js
1'use strict';2// # Globbing3// for performance reasons we're only matching one level down:4// 'test/spec/{,*/}*.js'5// use this if you want to recursively match all subfolders:6// 'test/spec/**/*.js'7module.exports = function (grunt) {8 // Load grunt tasks automatically9 require('load-grunt-tasks')(grunt);10 // Time how long tasks take. Can help when optimizing build times11 // require('time-grunt')(grunt);12 // Define the configuration for all the tasks13 grunt.initConfig({14 // Project settings15 pkg: require('./package.json'),16 bower: require('./bower.json'),17 yo: {18 src: 'src',19 dist: 'dist',20 docs: 'docs',21 pages: 'pages'22 },23 // Project meta24 meta: {25 banner: '/**\n' +26 ' * <%= pkg.name %>\n' +27 ' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +28 ' * @link <%= pkg.homepage %>\n' +29 ' * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n' +30 ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' +31 ' */\n'32 },33 // Watches files for changes and runs tasks based on the changed files34 watch: {35 styles: {36 options: {37 spawn: false38 },39 files: ['src/{,*/}*.less', 'docs/styles/{,*/}*.less'],40 tasks: ['less:dev', 'autoprefixer']41 },42 gruntfile: {43 files: ['Gruntfile.js']44 },45 livereload: {46 options: {47 livereload: '<%= connect.options.livereload %>'48 },49 files: [50 '{docs,.dev,.tmp,<%= yo.src %>}/{,*/}{,docs/}*.html',51 '{docs,.dev,.tmp,<%= yo.src %>}/{,*/}*.css',52 '{docs,.dev,.tmp,<%= yo.src %>}/{,*/}*.js',53 '{docs,<%= yo.src %>}/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'54 ]55 }56 },57 // The actual grunt server settings58 connect: {59 options: {60 port: 9000,61 hostname: '0.0.0.0',62 livereload: 3572963 },64 livereload: {65 options: {66 open: true,67 base: ['docs', '.dev', '.tmp', '<%= yo.src %>']68 }69 },70 test: {71 options: {72 port: 9001,73 base: ['.tmp', 'test', '<%= yo.src %>']74 }75 },76 dist: {77 options: {78 base: '<%= yo.dist %>'79 }80 }81 },82 // Make sure code styles are up to par and there are no obvious mistakes83 jshint: {84 options: {85 jshintrc: '.jshintrc',86 reporter: require('jshint-stylish')87 },88 all: [89 'Gruntfile.js',90 '<%= yo.src %>/scripts/{,*/}*.js'91 ],92 test: {93 options: {94 jshintrc: 'test/.jshintrc'95 },96 src: ['test/spec/{,*/}*.js']97 }98 },99 // Empties folders to start fresh100 clean: {101 dist: {102 files: [{103 dot: true,104 src: [105 '.tmp',106 '<%= yo.dist %>/*',107 '!<%= yo.dist %>/.git*'108 ]109 }]110 },111 docs: {112 files: [{113 dot: true,114 src: [115 '.tmp',116 '<%= yo.pages %>/*',117 '!<%= yo.pages %>/.git*'118 ]119 }]120 },121 server: '.tmp'122 },123 // Compile less stylesheets124 less: {125 dev: {126 options: {127 // dumpLineNumbers: 'comments',128 },129 files: [{130 expand: true,131 flatten: true,132 cwd: '<%= yo.src %>/',133 src: '{,*/}*.less',134 dest: '.tmp/styles/modules/',135 ext: '.css'136 }, {137 src: '<%= yo.src %>/{,*/}*.less',138 dest: '.tmp/styles/<%= bower.name %>.css',139 }]140 },141 dist: {142 options: {143 cleancss: true144 },145 files: [{146 expand: true,147 flatten: true,148 cwd: '<%= yo.src %>/',149 src: '{,*/}*.less',150 dest: '.tmp/styles/modules/',151 ext: '.min.css'152 }, {153 src: '<%= yo.src %>/{,*/}*.less',154 dest: '.tmp/styles/<%= bower.name %>.min.css',155 }]156 },157 docs: {158 options: {159 cleancss: false160 },161 files: [{162 expand: true,163 cwd: '<%= yo.docs %>/styles/',164 src: '*.less',165 dest: '.tmp/styles/',166 ext: '.css'167 }]168 }169 },170 // Add vendor prefixed styles171 autoprefixer: {172 options: {173 browsers: ['last 2 versions']174 },175 all: {176 files: [{177 expand: true,178 cwd: '.tmp/styles/',179 src: '{,*/}*.css',180 dest: '.tmp/styles/'181 }]182 }183 },184 // Reads HTML for usemin blocks to enable smart builds that automatically185 // concat, minify and revision files. Creates configurations in memory so186 // additional tasks can operate on them187 useminPrepare: {188 html: '<%= yo.docs %>/index.html',189 options: {190 dest: '<%= yo.pages %>'191 }192 },193 // Performs rewrites based on rev and the useminPrepare configuration194 usemin: {195 html: '<%= yo.pages %>/index.html',196 css: ['<%= yo.pages %>/styles/{,*/}*.css'],197 options: {198 assetsDirs: ['<%= yo.pages %>', '<%= yo.pages %>/images']199 }200 },201 // Embed static ngincludes202 nginclude: {203 docs: {204 files: [{205 src: '<%= yo.docs %>/index.html',206 dest: '<%= yo.pages %>/index.html'207 }],208 options: {209 assetsDirs: ['<%= yo.src %>', '<%= yo.docs %>']210 }211 }212 },213 // Minify html files214 htmlmin: {215 options: {216 collapseWhitespace: true,217 removeComments: false218 },219 docs: {220 files: [{221 expand: true,222 cwd: '<%= yo.pages %>',223 src: ['*.html'],//, 'views/{,*/}*.html'],224 dest: '<%= yo.pages %>'225 }]226 }227 },228 // Copies remaining files to places other tasks can use229 copy: {230 dist: {231 files: [{232 expand: true,233 cwd: '.tmp/styles/',234 dest: '<%= yo.dist %>',235 src: '{,*/}*.css'236 }]237 },238 docs: {239 files: [{240 expand: true,241 cwd: '<%= yo.docs %>/',242 dest: '<%= yo.pages %>',243 src: [244 'images/*',245 '1.0/**/*'246 ]247 }]248 }249 },250 // Run some tasks in parallel to speed up the build process251 concurrent: {252 docs: [253 'less:docs',254 'uglify:generated',255 'cssmin:generated'256 ],257 server: [258 'less:dev'259 ],260 test: [261 'less:dev'262 ],263 dist: [264 'less:dist',265 'imagemin',266 'svgmin',267 'htmlmin'268 ]269 },270 concat: {271 // generated: {272 // options: {273 // banner: '(function(window, document, $, undefined) {\n\'use strict\';\n',274 // footer: '\n})(window, document, window.jQuery);\n'275 // }276 // },277 dist: {278 options: {279 // Replace all 'use strict' statements in the code with a single one at the top280 banner: '(function(window, document, undefined) {\n\'use strict\';\n',281 footer: '\n})(window, document);\n',282 process: function(src, filepath) {283 return '// Source: ' + filepath + '\n' +284 src.replace(/(^|\n)[ \t]*('use strict'|"use strict");?\s*/g, '$1');285 }286 },287 files: [{288 src: ['<%= yo.src %>/module.js', '<%= yo.src %>/{,*/}*.js'],289 dest: '<%= yo.dist %>/<%= pkg.name %>.js'290 }, {291 src: ['<%= yo.dist %>/modules/{,*/}*.tpl.js'],292 dest: '<%= yo.dist %>/<%= pkg.name %>.tpl.js'293 }]294 },295 banner: {296 options: {297 banner: '<%= meta.banner %>',298 },299 files: [{300 expand: true,301 cwd: '<%= yo.dist %>',302 src: '{,*/}*.{js,css}',303 dest: '<%= yo.dist %>'304 }]305 },306 docs: {307 options: {308 banner: '<%= meta.banner %>',309 },310 files: [{311 expand: true,312 cwd: '<%= yo.pages %>',313 src: ['scripts/{demo,docs,angular-strap}*', 'styles/{main}*'],314 dest: '<%= yo.pages %>'315 }]316 }317 },318 // Allow the use of non-minsafe AngularJS files. Automatically makes it319 // minsafe compatible so Uglify does not destroy the ng references320 ngmin: {321 dist: {322 files: [{323 src: '<%= yo.dist %>/<%= pkg.name %>.js',324 dest: '<%= yo.dist %>/<%= pkg.name %>.js'325 }]326 },327 modules: {328 files: [{329 expand: true,330 flatten: true,331 cwd: '<%= yo.src %>',332 src: '{,*/}*.js',333 dest: '<%= yo.dist %>/modules'334 }]335 },336 docs: {337 files: [{338 expand: true,339 cwd: '.tmp/concat/scripts',340 src: '*.js',341 dest: '.tmp/concat/scripts'342 }]343 }344 },345 ngtemplates: {346 docs: {347 options: {348 module: 'mgcrea.ngMotionDocs',349 usemin: 'scripts/docs.tpl.min.js'350 },351 files: [{352 cwd: '<%= yo.src %>',353 src: '{,*/}docs/*.html',354 dest: '.tmp/ngtemplates/src-docs.tpl.js'355 },356 {357 cwd: '<%= yo.docs %>',358 src: 'views/sidebar.html',359 dest: '.tmp/ngtemplates/docs-views.tpl.js'360 },361 {362 cwd: '<%= yo.docs %>',363 src: 'views/partials/{,*/}*.html',364 dest: '.tmp/ngtemplates/docs-partials.tpl.js'365 }]366 }367 },368 // Test settings369 karma: {370 options: {371 configFile: 'test/karma.conf.js',372 browsers: ['PhantomJS']373 },374 unit: {375 singleRun: true,376 options: {377 reporters: ['dots']378 }379 },380 server: {381 autoWatch: true382 }383 },384 uglify: {385 generated: {386 options: {387 compress: false,388 mangle: false,389 beautify: true390 }391 }392 }393 });394 grunt.registerTask('serve', function (target) {395 if (target === 'dist') {396 return grunt.task.run(['build', 'connect:dist:keepalive']);397 }398 grunt.task.run([399 'clean:server',400 'concurrent:server',401 'autoprefixer',402 'connect:livereload',403 'watch'404 ]);405 });406 grunt.registerTask('test', [407 'clean:server',408 'connect:test',409 'karma:unit'410 ]);411 grunt.registerTask('build', [412 'clean:dist',413 'less:dev',414 'less:dist',415 'autoprefixer',416 'copy:dist',417 'concat:banner'418 ]);419 grunt.registerTask('docs', [420 'clean:docs',421 'useminPrepare',422 'less:dev',423 'less:docs',424 'autoprefixer',425 'nginclude:docs',426 'ngtemplates:docs',427 'concat:generated',428 'ngmin:docs',429 'copy:docs',430 'cssmin:generated',431 'uglify:generated',432 'concat:docs',433 'usemin',434 // 'htmlmin:docs' // breaks code preview435 ]);436 grunt.registerTask('default', [437 'newer:jshint',438 'test',439 'build'440 ]);...
transform.js
Source:transform.js
1const fs = require('fs');2const path = require('path');3const {WError} = require('error');4const findUp = require('find-up');5const minimatch = require('minimatch');6const {transform, passthrough, filter} = require('p-transform');7const OOOTransform = require('./out-of-order-transform');8const {Minimatch} = minimatch;9class YoResolveError extends WError {}10/**11 * @deprecated12 *13 * Transform api should be avoided by generators without a executable.14 * May break between major yo versions.15 *16 * Creates a out of order transform.17 *18 * @param {Function} transform - transform function.19 * @param {Object} options - additional options passed to transform20 * @return {Stream} a transform stream.21 */22function createFileTransform(23 transform = (file, _enc, cb) => cb(null, file),24 options = {}25) {26 return new OOOTransform({27 ...options,28 transform(...args) {29 return transform.call(this, ...args);30 }31 });32}33/**34 * Transform api should be avoided by generators without a executable.35 * May break between major yo versions.36 *37 * Detect if the file is modified38 * See https://github.com/SBoudrias/mem-fs-editor/blob/3ff18e26c52dc30d8f371bcc72c1884f2ea706d6/lib/actions/commit.js#L3839 *40 * @param {Object} field - vinyl file41 */42function fileIsModified(file) {43 // New files (don't exists in the disc) that have been deleted won't be committed and is considered unmodified file.44 return (file.state === 'modified' || (file.state === 'deleted' && !file.isNew));45}46/**47 * @deprecated48 *49 * Transform api should be avoided by generators without a executable.50 * May break between major yo versions.51 *52 * Create a for each file stream transform.53 * @param {Function} forEach - Function to execute for each file54 * @param {Object} options - Options55 * @param {boolean} [options.autoForward = true] - Set false to don't add a file to the stream, the function must do it.56 * @param {boolean} [options.executeUnmodified = false] - Set true to execute the forEach function with a not modified file.57 * @param {boolean} [options.forwardUmodified = true] - Set false to don't add a not modified file to the stream.58 * @return {Transform} A Transform https://nodejs.org/api/stream.html#stream_class_stream_transform59 */60function createEachFileTransform(forEach, options = {}) {61 if (typeof forEach !== 'function') {62 options = forEach;63 forEach = () => {};64 }65 const {forwardUmodified = true, executeUnmodified = false, autoForward = true} = options;66 return createFileTransform(function (file, enc, cb) {67 const forward = () => {68 if (autoForward && (forwardUmodified || fileIsModified(file))) {69 this.push(file);70 }71 };72 if (!executeUnmodified && !fileIsModified(file)) {73 forward();74 return;75 }76 return Promise77 .resolve(forEach.call(this, file, enc))78 .then(() => forward())79 .catch(error => cb(error));80 }, options);81}82function parseYoAttributesFile(yoAttributeFileName) {83 let overridesContent;84 try {85 overridesContent = fs.readFileSync(yoAttributeFileName, 'utf-8');86 } catch (error) {87 throw YoResolveError.wrap('Error loading yo attributes file {yoAttributeFileName}', error, {yoAttributeFileName});88 }89 const absoluteDir = path.dirname(yoAttributeFileName);90 return Object.fromEntries(91 overridesContent92 .split(/\r?\n/)93 .map(override => override.trim())94 .map(override => override.split('#')[0].trim())95 .filter(override => override)96 .map(override => override.split(/[\s+=]/))97 .map(([pattern, status = 'skip']) => [path.join(absoluteDir, pattern), status])98 );99}100/**101 * Transform api should be avoided by generators without a executable.102 * May break between major yo versions.103 */104function createConflicterCheckTransform(conflicter, conflicterStatus) {105 return passthrough(file => conflicter.checkForCollision(file, conflicterStatus), 'environment:conflicter-check');106}107/**108 * @private109 */110function getConflicterStatusForFile(conflicter, filePath, yoAttributeFileName = '.yo-resolve') {111 const fileDir = path.dirname(filePath);112 conflicter.yoResolveByFile = conflicter.yoResolveByFile || {};113 const yoResolveFiles = [];114 let foundYoAttributesFile = findUp.sync([yoAttributeFileName], {cwd: fileDir});115 while (foundYoAttributesFile) {116 yoResolveFiles.push(foundYoAttributesFile);117 foundYoAttributesFile = findUp.sync([yoAttributeFileName], {cwd: path.join(path.dirname(foundYoAttributesFile), '..')});118 }119 let fileStatus;120 if (yoResolveFiles) {121 for (const yoResolveFile of yoResolveFiles) {122 if (conflicter.yoResolveByFile[yoResolveFile] === undefined) {123 conflicter.yoResolveByFile[yoResolveFile] = parseYoAttributesFile(yoResolveFile);124 }125 }126 yoResolveFiles127 .map(yoResolveFile => conflicter.yoResolveByFile[yoResolveFile])128 .map(attributes => attributes)129 .find(yoResolve => Object.entries(yoResolve).some(([pattern, status]) => {130 if (minimatch(filePath, pattern)) {131 fileStatus = status;132 return true;133 }134 return false;135 }));136 }137 return fileStatus;138}139/**140 * Transform api should be avoided by generators without a executable.141 * May break between major yo versions.142 *143 * Create a yo-resolve transform stream.144 * Suports pre-defined conflicter actions action based on file glob.145 * @param {Conflicter} conflicter - Conflicter instance146 * @param {string} yoResolveFileName - .yo-resolve filename147 * @return {Transform} A Transform https://nodejs.org/api/stream.html#stream_class_stream_transform148 */149function createYoResolveTransform(conflicter, yoResolveFileName) {150 return passthrough(file => {151 file.conflicter = file.conflicter || getConflicterStatusForFile(conflicter, file.path, yoResolveFileName);152 }, 'environment:yo-resolve');153}154/**155 * Transform api should be avoided by generators without a executable.156 * May break between major yo versions.157 *158 * Create a force yeoman configs transform stream.159 * @return {Transform} A Transform https://nodejs.org/api/stream.html#stream_class_stream_transform160 */161function createYoRcTransform() {162 // Config files should not be processed by the conflicter. Force override.163 return patternSpy(file => {164 file.conflicter = 'force';165 }, '**/{.yo-rc.json,.yo-resolve,.yo-rc-global.json}', 'environment:yo-rc');166}167/**168 * Transform api should be avoided by generators without a executable.169 * May break between major yo versions.170 *171 * Create a transform to apply conflicter status.172 * @param {Log} logger - Log reference. See log.js173 * @return {Transform} A Transform https://nodejs.org/api/stream.html#stream_class_stream_transform174 */175function createConflicterStatusTransform() {176 return transform(file => {177 const action = file.conflicter;178 delete file.conflicter;179 delete file.binary;180 delete file.conflicterChanges;181 delete file.conflicterLog;182 if (!action && file.state) {183 return file;184 }185 if (action === 'skip') {186 delete file.state;187 delete file.isNew;188 return undefined;189 }190 return file;191 }, 'environment:conflicter-status');192}193/**194 * Transform api should be avoided by generators without a executable.195 * May break between major yo versions.196 */197function createModifiedTransform() {198 return filter(file => fileIsModified(file), 'environment:modified');199}200/**201 * Transform api should be avoided by generators without a executable.202 * May break between major yo versions.203 */204function createCommitTransform(memFsEditor) {205 return transform(file => memFsEditor.commitFileAsync(file), 'environment:commit');206}207/**208 * Conditional filter on pattern.209 *210 * @param {String} pattern - Minimatch pattern.211 * @param {Object} options - Minimatch options.212 */213function patternFilter(pattern, options) {214 const minimatch = new Minimatch(pattern, options);215 return filter(file => minimatch.match(file.path));216}217/**218 * Conditional spy on pattern.219 *220 * @param {Function} spy.221 * @param {String} pattern - Minimatch pattern.222 * @param {Object} options - Minimatch options.223 */224function patternSpy(spy, pattern, options) {225 const minimatch = new Minimatch(pattern, options);226 return passthrough(file => (minimatch.match(file.path) ? spy(file) : undefined));227}228module.exports = {229 createFileTransform,230 fileIsModified,231 getConflicterStatusForFile,232 createEachFileTransform,233 createYoResolveTransform,234 createYoRcTransform,235 createModifiedTransform,236 createCommitTransform,237 createConflicterCheckTransform,238 createConflicterStatusTransform,239 patternFilter,240 patternSpy...
app.js
Source:app.js
1"use strict";2const REST_BASE_PATH = "/api/v1";3const GET_YOS_PATH = `${REST_BASE_PATH}/identities`;4const SEND_YO_PATH = `${REST_BASE_PATH}/capture`;5const STOMP_SUBSCRIBE_PATH = "/stomp";6const STOMP_RESPONSE_PATH1 = "/stompresponse1";7const STOMP_RESPONSE_PATH2 = "/stompresponse2";8const STOMP_RESPONSE_PATH3 = "/stompresponse3";9const STATE_A = "/states?party=PartyA";10const STATE_B = "/states?party=PartyB";11const STATE_C = "/states?party=WatchDog";12const app = angular.module("yoAppModule", ["ui.bootstrap"]);13app.controller("YoAppController", function($scope, $http, $location, $uibModal) {14 const yoApp = this;15 let peers = [];16 $scope.yos1 = [];17 $scope.yos2 = [];18 $scope.yos3 = [];19 $scope.img1;20 $scope.img2;21 $scope.img3;22 $scope.e1;23 $scope.e2;24 $scope.e3;25 // Starts streaming new Yo's from the websocket.26 (function connectAndStartStreamingYos() {27 let socket = new SockJS(STOMP_SUBSCRIBE_PATH);28 let stompClient = Stomp.over(socket);29 stompClient.connect({}, function startStreamingYos(frame) {30 stompClient.subscribe(STOMP_RESPONSE_PATH1, function updateYos(update) {31 let yoState = JSON.parse(update.body);32 yoState.img=JSON.parse(yoState.data1).image;33 yoState.e=JSON.stringify(JSON.parse(yoState.data1).events);34 $scope.yos1.push(yoState);35 $scope.img1 = JSON.parse(yoState.data1).image;36 $scope.e1 = JSON.stringify(JSON.parse(yoState.data1).events);37 debugger;38 // Forces the view to refresh, showing the new Yo.39 $scope.$apply();40 });41 stompClient.subscribe(STOMP_RESPONSE_PATH2, function updateYos(update) {42 let yoState = JSON.parse(update.body);43 yoState.img=JSON.parse(yoState.data2).image;44 yoState.e=JSON.stringify(JSON.parse(yoState.data2).events);45 $scope.yos2.push(yoState);46 $scope.img2 = JSON.parse(yoState.data2).image;47 $scope.e2 = JSON.stringify(JSON.parse(yoState.data2).events);48 // Forces the view to refresh, showing the new Yo.49 $scope.$apply();50 });51 stompClient.subscribe(STOMP_RESPONSE_PATH3, function updateYos(update) {52 let yoState = JSON.parse(update.body);53 yoState.img=JSON.parse(yoState.data3).image;54 yoState.e=JSON.stringify(JSON.parse(yoState.data3).events);55 $scope.yos3.push(yoState);56 $scope.img3 = JSON.parse(yoState.data3).image;57 $scope.e3 = JSON.stringify(JSON.parse(yoState.data3).events);58 $scope.$apply();59 });60 });61 })();62 // Opens the send-Yo modal.63 yoApp.openSendYoModal = function openSendYoModal() {64 $uibModal.open({65 templateUrl: "yoAppModal.html",66 controller: "SendYoModalController",67 controllerAs: "sendYoModal",68 resolve: {69 peers: () => peers70 }71 });72 };73 // Gets a list of existing Yo's.74 function getYos() {75 return this.yos;76 }77});78// Controller for success/fail modal dialogue.79app.controller('ShowMessageController', function ($uibModalInstance, message) {80 const modalInstanceTwo = this;81 modalInstanceTwo.message = message.data;82});83app.controller("StatesController", function($scope, $http, $location, $uibModal) {84 const yoApp = this;85 let peers = [];86 $scope.yos1 = [];87 $scope.yos2 = [];88 $scope.yos3 = [];89 // Starts streaming new Yo's from the websocket.90 (function allStates() {91 $http.get(REST_BASE_PATH+STATE_A)92 .then(function(response) {93 debugger;94 $scope.yos1 = $scope.yos1.concat(response.data);95 });96 $http.get(REST_BASE_PATH+STATE_B)97 .then(function(response) {98 $scope.yos2 = $scope.yos2.concat(response.data);99 });100 $http.get(REST_BASE_PATH+STATE_C)101 .then(function(response) {102 $scope.yos3 = $scope.yos3.concat(response.data);103 });104 })();105 // Opens the send-Yo modal.106 yoApp.openSendYoModal = function openSendYoModal() {107 $uibModal.open({108 templateUrl: "yoAppModal.html",109 controller: "SendYoModalController",110 controllerAs: "sendYoModal",111 resolve: {112 peers: () => peers113 }114 });115 };116 // Gets a list of existing Yo's.117 function getYos() {118 return this.yos;119 }120});121// Intercepts unhandled-rejection errors.122app.config(["$qProvider", function ($qProvider) {123 $qProvider.errorOnUnhandledRejections(false);...
find-russian.js
Source:find-russian.js
1description("Tests find for strings with Russian letters й and Ñ in them.");2function canFind(target, specimen)3{4 getSelection().empty();5 var textNode = document.createTextNode(specimen);6 document.body.appendChild(textNode);7 document.execCommand("FindString", false, target);8 var result = getSelection().rangeCount != 0;9 getSelection().empty();10 document.body.removeChild(textNode);11 return result;12}13var letterCyrillicI = String.fromCharCode(0x0418);14var letterCyrillicSmallI = String.fromCharCode(0x0438);15var letterCyrillicShortI = String.fromCharCode(0x0419);16var letterCyrillicSmallShortI = String.fromCharCode(0x0439);17var letterCyrillicE = String.fromCharCode(0x0415);18var letterCyrillicSmallE = String.fromCharCode(0x0435);19var letterCyrillicYO = String.fromCharCode(0x0401);20var letterCyrillicSmallYO = String.fromCharCode(0x0451);21var combiningDiaeresis = String.fromCharCode(0x0308);22var combiningBreve = String.fromCharCode(0x0306);23var decomposedCyrillicShortI = letterCyrillicI + combiningBreve;24var decomposedCyrillicSmallShortI = letterCyrillicSmallI + combiningBreve;25var decomposedCyrillicYO = letterCyrillicE + combiningDiaeresis;26var decomposedCyrillicSmallYO = letterCyrillicSmallE + combiningDiaeresis;27debug('Exact matches first as a baseline');28debug('');29shouldBe('canFind(decomposedCyrillicShortI, decomposedCyrillicShortI)', 'true');30shouldBe('canFind(decomposedCyrillicSmallShortI, decomposedCyrillicSmallShortI)', 'true');31shouldBe('canFind(letterCyrillicShortI, letterCyrillicShortI)', 'true');32shouldBe('canFind(letterCyrillicSmallShortI, letterCyrillicSmallShortI)', 'true');33shouldBe('canFind("й", "йод")', 'true');34shouldBe('canFind("Ñ", "мÑмиÑ")', 'true');35debug('');36debug('Composed and decomposed forms: Must be treated as equal');37debug('');38shouldBe('canFind(decomposedCyrillicYO, decomposedCyrillicYO)', 'true');39shouldBe('canFind(decomposedCyrillicSmallYO, decomposedCyrillicSmallYO)', 'true');40shouldBe('canFind(letterCyrillicShortI, decomposedCyrillicShortI)', 'true');41shouldBe('canFind(letterCyrillicSmallShortI, decomposedCyrillicSmallShortI)', 'true');42shouldBe('canFind(letterCyrillicYO, decomposedCyrillicYO)', 'true');43shouldBe('canFind(letterCyrillicSmallYO, decomposedCyrillicSmallYO)', 'true');44shouldBe('canFind(decomposedCyrillicShortI, letterCyrillicShortI)', 'true');45shouldBe('canFind(decomposedCyrillicSmallShortI, letterCyrillicSmallShortI)', 'true');46shouldBe('canFind(decomposedCyrillicYO, letterCyrillicYO)', 'true');47shouldBe('canFind(decomposedCyrillicSmallYO, letterCyrillicSmallYO)', 'true');48debug('');49debug('Small and capital letters: Must be treated as equal');50debug('');51shouldBe('canFind(letterCyrillicSmallI, letterCyrillicI)', 'true');52shouldBe('canFind(letterCyrillicSmallYO, letterCyrillicYO)', 'true');53shouldBe('canFind(letterCyrillicI, letterCyrillicSmallI)', 'true');54shouldBe('canFind(letterCyrillicYO, letterCyrillicSmallYO)', 'true');55shouldBe('canFind(decomposedCyrillicSmallShortI, letterCyrillicI)', 'true');56shouldBe('canFind(decomposedCyrillicSmallYO, letterCyrillicYO)', 'true');57shouldBe('canFind(decomposedCyrillicShortI, letterCyrillicSmallI)', 'true');58shouldBe('canFind(decomposedCyrillicYO, letterCyrillicSmallYO)', 'true');59shouldBe('canFind(letterCyrillicSmallI + letterCyrillicSmallYO, letterCyrillicSmallI + letterCyrillicYO)', 'true');60shouldBe('canFind("й", "Ðод")', 'true');61shouldBe('canFind("Ñ", "ÐУÐÐÐ")', 'true');62shouldBe('canFind("Ð", "йод")', 'true');63shouldBe('canFind("Ð", "мÑмиÑ")', 'true');64debug('');65debug('Ð and Ð: Must be treated as equal');66debug('');67shouldBe('canFind("мÑмие", "мÑмиÑ")', 'true');68shouldBe('canFind("ÐУÐÐÐ", "ÐУÐÐÐ")', 'true');69shouldBe('canFind("мÑмиÑ", "мÑмие")', 'true');70shouldBe('canFind("ÐУÐÐÐ", "ÐУÐÐÐ")', 'true');71debug('');72debug('Ð and и: Must *not* be treated as equal');73debug('');74shouldBe('canFind("зайка", "заика")', 'false');75shouldBe('canFind("заика", "зайка")', 'false');...
writing.js
Source:writing.js
1import _ from 'lodash';2export default async function writing(yo) {3 const configMaps = _.filter(yo.context.config, { secret: false });4 const configSecrets = _.filter(yo.context.config, { secret: true });5 const publicWorkloads = _.filter(yo.context.workloads, { public: true });6 const hasData = _.includes(7 _.map(yo.context.workloads, workload => !!workload.volumes.length),8 true9 );10 yo.fs.copyTpl(11 yo.templatePath('Chart.yaml'),12 yo.destinationPath(`v${yo.context.version}/Chart.yaml`),13 yo.context14 );15 yo.fs.copyTpl(16 yo.templatePath('OWNERS'),17 yo.destinationPath(`v${yo.context.version}/OWNERS`),18 yo.context19 );20 yo.fs.copyTpl(21 yo.templatePath('README.md'),22 yo.destinationPath(`v${yo.context.version}/README.md`),23 yo.context24 );25 yo.fs.copyTpl(26 yo.templatePath('app-readme.md'),27 yo.destinationPath(`v${yo.context.version}/app-readme.md`),28 yo.context29 );30 yo.fs.copyTpl(31 yo.templatePath('questions.yaml'),32 yo.destinationPath(`v${yo.context.version}/questions.yaml`),33 {34 ...yo.context,35 publicWorkloads,36 hasData37 }38 );39 yo.fs.copyTpl(40 yo.templatePath('values.yaml'),41 yo.destinationPath(`v${yo.context.version}/values.yaml`),42 {43 ...yo.context,44 publicWorkloads,45 hasData46 }47 );48 yo.fs.copyTpl(49 yo.templatePath('templates/NOTES.txt'),50 yo.destinationPath(`v${yo.context.version}/templates/NOTES.txt`),51 yo.context52 );53 yo.fs.copyTpl(54 yo.templatePath('templates/_helpers.tpl'),55 yo.destinationPath(`v${yo.context.version}/templates/_helpers.tpl`),56 {57 ...yo.context,58 publicWorkloads59 }60 );61 if (hasData) {62 yo.fs.copyTpl(63 yo.templatePath('templates/backup.yaml'),64 yo.destinationPath(`v${yo.context.version}/templates/backup.yaml`),65 { ...yo.context, hasData }66 );67 }68 if (configMaps.length || yo.context.databases?.length) {69 yo.fs.copyTpl(70 yo.templatePath('templates/configmap.yaml'),71 yo.destinationPath(`v${yo.context.version}/templates/configmap.yaml`),72 {73 ...yo.context,74 configMaps75 }76 );77 }78 if (configSecrets.length || yo.context.databases?.length) {79 yo.fs.copyTpl(80 yo.templatePath('templates/secret.yaml'),81 yo.destinationPath(`v${yo.context.version}/templates/secret.yaml`),82 {83 ...yo.context,84 configSecrets85 }86 );87 }88 yo.context.databases.forEach(database => {89 if (database.name !== 'mysql' && database.name !== 'postgres') return;90 yo.fs.copyTpl(91 yo.templatePath(`templates/integrations/external-${database.name}.yaml`),92 yo.destinationPath(93 `v${yo.context.version}/templates/integrations/external-${database.name}.yaml`94 ),95 {96 ...yo.context,97 database98 }99 );100 });101 yo.context.workloads.forEach(workload => {102 const context = {103 ...yo.context,104 workload105 };106 yo.fs.copyTpl(107 yo.templatePath('templates/deployment.yaml'),108 yo.destinationPath(109 `v${yo.context.version}/templates/deployments/${workload.name}.yaml`110 ),111 context112 );113 yo.fs.copyTpl(114 yo.templatePath('templates/service.yaml'),115 yo.destinationPath(116 `v${yo.context.version}/templates/services/${workload.name}.yaml`117 ),118 context119 );120 if (workload.volumes.length) {121 yo.fs.copyTpl(122 yo.templatePath('templates/pvc.yaml'),123 yo.destinationPath(124 `v${yo.context.version}/templates/pvcs/${workload.name}.yaml`125 ),126 context127 );128 }129 if (workload.public) {130 yo.fs.copyTpl(131 yo.templatePath('templates/ingress.yaml'),132 yo.destinationPath(133 `v${yo.context.version}/templates/ingresses/${workload.name}.yaml`134 ),135 context136 );137 }138 });...
ratings.js
Source:ratings.js
1'use strict';2$(document).ready(function(){3 // Ratings4 $('.rating').rating({5 size:'sm'6 });7 $('#input-3').rating({8 step: 1,9 size: 'sm',10 starCaptions: { 1: 'Poor', 2: 'Average', 3: 'Good', 4: 'Very Good', 5: 'Excellent' },11 starCaptionClasses: { 1: 'text-danger', 2: 'text-warning', 3: 'text-info', 4: 'text-primary', 5: 'text-success' }12 });13 // End of rating14 // Starrability15 var updateCounter = function (rating) {16 $(this).next(".counter").text(rating);17 };18 $("#rateYo").rateYo({19 rating: 3.620 });21 $("#rateYo_width").rateYo({22 starWidth: "40px",23 rating:224 });25 $("#rateYo_normalfill").rateYo({26 normalFill: "#A0A0A0"27 });28 $("#rateYo_ratedfill").rateYo({29 ratedFill: "#ff8080",30 rating: 2.731 });32 $("#rateYo_multicolor").rateYo({33 rating : 1.6,34 spacing : "5px",35 multiColor: {36 "startColor": "#0fb0c0",37 "endColor" : "#ff8080"38 }39 });40 $("#rateYo_numstars").rateYo({41 rating:2.6,42 numStars: 743 });44 $("#rateYo_maxval").rateYo({45 maxValue: 1,46 numStars: 1,47 rating: getRandomRating(0, 1),48 onSet: updateCounter,49 onChange: updateCounter,50 starWidth: "40px"51 });52 $("#rateYo_precission").rateYo({53 precision: 2,54 rating: getRandomRating(),55 onSet: updateCounter,56 onChange: updateCounter57 });58 $("#rateYo_rating").rateYo({59 rating: "50%",60 precision: 0,61 onSet: updateCounter,62 onChange: updateCounter63 });64 $("#rateYo_halfstar").rateYo({65 rating: 1.5,66 halfStar: true67 });68 // End of starrability69 // Advanced starrability70 $("#rateYo_fullstar").rateYo({71 rating: 2,72 fullStar: true73 });74 $("#rateYo_readonly").rateYo({75 rating: 3.2,76 readOnly: true77 });78 $("#rateYo_spacing").rateYo({79 rating: 3.2,80 spacing: "10px",81 onSet: updateCounter,82 onChange: updateCounter83 });84 $("#rateYo_rtl").rateYo({85 rating: 3.2,86 rtl: true,87 onSet: updateCounter,88 onChange: updateCounter89 });90 $("#rateYo_onset").rateYo({91 onSet: function (rating, rateYoInstance) {92 swal({93 title: "Rating is set to: " + rating,94 confirmButtonColor: '#00c0ef'95 }).done();96 }97 });98 $("#rateYo_onchange").rateYo({99 rating:3.2,100 onSet: updateCounter,101 onChange: function (rating, rateYoInstance) {102 $(this).next().text(rating);103 }104 });105 var $rateYo = $("#rateYo_rate").rateYo({106 rating:2.2107 });108 $("#get_rating").on("click",function () {109 /* get rating */110 var rating = $rateYo.rateYo("rating");111 swal({112 title: "Its " + rating + " Yo!",113 confirmButtonColor: '#00c0ef'114 }).done();115 });116 $("#set_rating").on("click",function () {117 /* set rating */118 var rating = getRandomRating();119 $rateYo.rateYo("rating", rating);120 return false;121 });122 var $rateYo1 = $("#rateYo_destroy").rateYo({123 rating:3.2124 });125 $("#destroy").on("click",function () {126 $rateYo1.rateYo("destroy");127 return false;128 });129 $("#initialize").on("click",function () {130 $rateYo1.rateYo();131 return false;132 });133 function getRandomRating (min, max) {134 min = min || 0;135 max = max || 5;136 var randomRating = parseFloat(((Math.random())*max).toFixed(2));137 randomRating = randomRating < min? min : randomRating;138 return randomRating;139 }140 // Advanced starrability...
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#submit-button')5 .expect(Selector('#article-header').innerText).eql('Thank you, John Smith!');6});7import { Selector } from 'testcafe';8test('My first test', async t => {9 .typeText('#developer-name', 'John Smith')10 .click('#submit-button')11 .expect(Selector('#article-header').innerText).eql('Thank you, John Smith!');12});13import { Selector } from 'testcafe';14test('Login', async t => {15 .typeText('#username', 'user')16 .typeText('#password', 'password')17 .click('#login-button')18 .expect(Selector('#logout-button').exists).ok();19});
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#submit-button');5});6import { Selector } from 'testcafe';7test('My first test', async t => {8 .typeText('#developer-name', 'John Smith')9 .click('#submit-button');10});11import { Selector } from 'testcafe';12test('My first test', async t => {13 .typeText('#developer-name', 'John Smith')14 .click('#submit-button');15});16import { Selector } from 'testcafe';17test('My first test', async t => {18 .typeText('#developer-name', 'John Smith')19 .click('#submit-button');20});21import { Selector } from 'testcafe';22test('My first test', async t => {23 .typeText('#developer-name', 'John Smith')24 .click('#submit-button');25});26import { Selector } from 'testcafe';27test('My first test', async t => {28 .typeText('#developer-name', 'John Smith')29 .click('#submit-button');30});31import { Selector } from 'testcafe';
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#submit-button')5 .expect(Selector('#article-header').innerText).eql('Thank you, John Smith!');6});7import { Selector } from 'testcafe';8test('My first test', async t => {9 .typeText('#developer-name', 'John Smith')10 .click('#submit-button');11 const articleHeader = await Selector('#article-header');12 let headerText = await articleHeader.innerText;13 let id = await articleHeader.id;14 .expect(headerText).eql('Thank you, John Smith!')15 .expect(id).eql('article-header');16});17import { Selector } from 'testcafe';18test('My first test', async t => {19 .typeText('#developer-name', 'John Smith')20 .click('#submit-button');21 const articleHeader = await Selector('#article-header');22 let headerText = await articleHeader.innerText;23 let id = await articleHeader.id;24 .expect(headerText).eql('Thank you, John Smith!')25 .expect(id).eql('article-header');26});27import { Selector } from 'testcafe';28test('My first test', async t => {29 .typeText('#developer-name', 'John Smith')30 .click('#submit-button');
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#submit-button');5});6import { Selector } from 'testcafe';7test('My first test', async t => {8 .typeText('#developer-name', 'John Smith')9 .click('#submit-button');10});11import { Selector } from 'testcafe';12test('My first test', async t => {13 .typeText('#developer-name', 'John Smith')14 .click('#submit-button');15});16import { Selector } from 'testcafe';17test('My first test', async t => {18 .typeText('#developer-name', 'John Smith')19 .click('#submit-button');20});21import { Selector } from 'testcafe';22test('My first test', async t => {23 .typeText('#developer-name', 'John Smith')24 .click('#submit-button');25});26import { Selector } from 'testcafe';27test('
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#submit-button');5 const articleHeader = await Selector('.result-content').find('h1');6 let headerText = await articleHeader.textContent;7 let id = await articleHeader.id;8 let logo = await Selector('#article-header').find('img');9});10import { Selector } from 'testcafe';11test('My first test', async t => {12 .typeText('#developer-name', 'John Smith')13 .click('#submit-button');14 const articleHeader = await Selector('.result-content').find('h1');15 let headerText = await articleHeader.textContent;16 let id = await articleHeader.id;17 let logo = await Selector('#article-header').find('img');18});19import { Selector } from 'testcafe';20test('My first test', async t => {21 .typeText('#developer-name', 'John Smith')22 .click('#submit-button');23 const articleHeader = await Selector('.result-content').find('h1');24 let headerText = await articleHeader.textContent;25 let id = await articleHeader.id;26 let logo = await Selector('#article-header').find('img');27});28import { Selector } from 'testcafe';
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3 .typeText('#developer-name', 'John Smith')4 .click('#macos')5 .click('#submit-button');6});
Using AI Code Generation
1import { Selector } from 'testcafe';2test('My first test', async t => {3});4import { Selector } from 'testcafe';5test('My first test', async t => {6});7import { Selector } from 'testcafe';8test('My first test', async t => {9});10import { Selector } from 'testcafe';11test('My first test', async t => {12});13import { Selector } from 'testcafe';14test('My first test', async t => {15});16import { Selector } from 'testcafe';17test('My first test', async t => {18});19import { Selector } from 'testcafe';20test('My first test', async t => {21});22import { Selector } from 'testcafe';23test('My first test', async t => {24});25import { Selector } from 'testcafe';26test('My first test', async t => {
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!