Share your repls and programming experiences

← Back to all posts
Is it christmas?
h
TaylorLiang (647)

This website tells you if its Christmas. Its accurate: 96.7741935% of the time!
EDIT: @joshwood pointed out its 99.726027398% accurate
EDIT 2: @joshwood pointed out again its: 99.726214921% accurate!
EDIt 3: Thanks to (once again) @joshwood, theres a file for how accurate it is!
EDIT 4: @EthanCulp changed it again. Check file.

edit 5: no change

edit 6: will give cycles for more decimals
edit 8: @DJWang gave more decimals

Commentshotnewtop
DJWang (941)

I have a gazillion more decimals, but don't want to spam the comments section. And how do you give cycles?

TaylorLiang (647)

@DJWang also, i dont care if you spam chat

DJWang (941)

@TaylorLiang Seriously, ok fine then.

99.726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754967549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157427549623545516769336071184120465434633812457221081451060917180013689253935660506502395619438740588637919233401779603011635865845311430527036276522929500342231348391512662559890485968514715947980835044490075290896646132785763175906913073237508555783709787816563997262149212867898699520876112251882272416153319644079397672826830937713894592744695414099931553730321697467488021902806297056810403832991101984941820670773442847364818617385352498288843258042436687200547570157422354551676933% accurate. Sorry moderators! Won't do it again!

ChezCoder (128)

Me: Hey mom, is it christmas?
Mom: I don't know hunny, it's TOTALLY NOT LIKE WE CAN JUST LOOK AT THE CALENDAR.
Me: Makes this stupidness.

Above was a joke. Not meant to offend you. This project just shows me how stupid people can get.

Warhawk947 (248)

@ChezCoder isn't that offensive tho?

Zavexeon (930)

@ChezCoder

This project just shows me how stupid people can get.

This almost sounds as if you are calling them stupid.

AdCharity (942)

@Zavexeon well ngl look at the code - literally hard coded a number.

joshwood (115)

I believe it's actually accurate 99.726027398% of the time.
1 - (1/365) = 0.99726027398

TaylorLiang (647)

@joshwood oh yeah, I was thinking in the month of december.

joshwood (115)

Actually, if you take leap years into account it's even more accurate.
1 - ( 4 / (365 * 4 + 1) ) = 0.99726214921

99.726214921% accurate, to be exact!

joshwood (115)

@TaylorLiang It's not always December, is it? :P
Nice repl, though - made me laugh.

joshwood (115)

lol will you edit it again if I give you more decimals?

99.726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933607118412046543463381245722108145106091718001368925393566050650239561943874058863791923340177960301163586584531143052703627652292950034223134839151266255989048596851471594798083504449007529089664613278576317590691307323750855578370978781656399726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757015742642026009582477754962354551676933% accurate (approximation calculated via WolframAlpha)

EthanCulp (14)

@joshwood Actually, technically, this is the most accurate it can get:
99.726214921286789869952087611225188227241615331964407939767282683093771389459274469541409993155373032169746748802190280629705681040383299110198494182067077344284736481861738535249828884325804243668720054757 [rest truncated due to length] %
Calculated via WolframAlpha, but better, with 51285 digits of accuracy!

joshwood (115)

@EthanCulp I suppose we could just do this 1457/1461 too lol. But he should def add your digits. It's important for.. uh science or something

EthanCulp (14)

Yes, the science of Santology! @joshwood

joshwood (115)

@EthanCulp Ah yes, I actually have a Bachelors of Science in Santology.

BD103 (18)

What the...............never mind. It seems the work is done here. :D @joshwood

TheBlacksmith (15)

I don't see how it can be more accurate than 99.726214921%. If you calculate ((3644)+1)/((3654)+1). How did you do it?

TaylorLiang (647)

@TheBlacksmith ask @EthanCulp and @joshwood. My best guess is wolfram alpha

joshwood (115)

Yeah, it was wolfram alpha. You can ask it to continue to generate decimals if you want. @TheBlacksmith

AdCharity (942)

lmao wow seems like a joke with no code in it... honestly tho it would be cooler if u applied some styling to it to make it seem more legit (ie: adding word-break: break-all; to make the decimals fill the whole screen)

TaylorLiang (647)

@AdCharity I tried centering it, but It wouldn't work

AdCharity (942)

@TaylorLiang lmao I said word break not center. plus u didn't define a specific width, so it'll just expand infinitely

TaylorLiang (647)

@AdCharity I know, but me no understand css that well

AdCharity (942)

@TaylorLiang kk then just add a width: 100%; height: auto; done

TaylorLiang (647)

@AdCharity ok, thanks. Me do when me get home

WFSOverpowEr (0)

why is this static? you can easily make it automatically change using simple javascript

ChezCoder (128)

@WFSOverpowEr this is supposed to be a joke. It's pretty obvious if it's christmas or not. TaylorLang was just trying to be funny by making finding out if it's christmas super dramatic and serious.