Hey, I need ideas for 9 monads for MY, the list of the commands I have thought of is here: https://bitbucket.org/zacharyjtaylor/my-language/src/04abed761cfb87c5a6965a415192c3368138270a/commands.txt?at=master&fileviewer=file-view-default Any ideas?
On my computer, print(math.random())always produces 0.001251220703125
The normal work around is to use math.randomseed(os.time()), but that still causes a 1 second space in which re-running the program will use the same seed.
Because Lua has no way to get the time in any higher precision than Seconds, although you can get the delta time in MS.
local obMeta = {}
obMeta.__index = obMeta
function obMeta:constructor(x,y)
self.x = x
self.y = y
end
function obMeta:__tostring()
return "x: "..self.x.." y: "..self.y
end
function Obj(...)
local ob = setmetatable({}, obMeta)
if ob.constructor then
ob:constructor(...)
end
return ob
end
print(Obj(3, 4))
I haven't used it as much as I'd like as I've been distracted by JavaScript projects, but from what I tried it seems fast to write and fast to run, with compile time error detection. I'm definitely going to be using it more once I get round to it
It has a few unusual ways of avoiding errors, like making variable names nearly case insensitive, and forbidding tabs. Won't be popular with everyone...
Forces you to indent (like python) but won't let you do it with tabs. I use an editor that converts tabs to spaces and it doesn't bother me too much
The OEIS is a great resource, and a lot of challenges on PPCG are based on or around sequences that are included on the OEIS.
I thought it might be a good idea to compile a list of sequences that have challenges. This could be useful for a number of reasons.
You could use the list to check if...
I am trying to submit a question to code-golf and it gives me the following message:
it will not let me continue without selecting one of those tags. Is there a reason for this? Is it a bug?
OK, here's a random question: Why is it impossible to buy a GPU for the real MSRP? a GTX 1070 should cost 400$, but no matter how hard I search, I can only find places charging six, seven, eight, even up to nine hundred for them. It doesn't make sense
Make a Captcha that: is randomly called Syncronously/ASyncronously, and randomly fails with no concernable reason. That'll really piss off people trying to write bots.
Yeah, the incompetent idiots at my school disabled cmd.exe, successfully. But, they let you use powershell. They tried disabling most `.exe`'s, they allow them to be run from the HOME DRIVE and flash drives. stupid.
Yeah. Our school district is complete crap. They think they're the best in the state on test scores ... well ... they don't offer Alg I to 7th graders. Seriously. dumb
@StepHen well rip, I wasn't allowed to take any hs courses in grade 8-. it took me like 3 months just to skip grade 9 math and get them to not be dumb. I think I was one of the last people allowed to skip and then they stopped letting people skip
Well I give up trying, Chromebooks are fine I guess.
@ZacharyT I took Saxon, so Geometry was in Alg I and Alg II, and then I took Advanced Math which is Trig and Pre Clac, and then I spent 3 years slogging through Calc, just to (I think) flop the AP Test :P joys of not having a math teacher
ok wtf when I spoof my mac address to a device that works, it disconnects, then when I unspoof, it works again. is having multiple devices on the same mac address bad?
well brb, i'm going to take my chromebook off the router.
Aw man, TestMySite has had some serious Google-ification done to it since the last time I used it... before they would give you a few tips on how to improve the site and include a link to send you more info, now they just say "Your site does so-and-so well. It's slower than this other site. Click here to get your report (and occasional emails with helpful tips on how to improve my online presence, mainly advertisements for other Google products and services)"