« first day (1814 days earlier)      last day (3128 days later) » 

10:09 PM
@MadaraUchiha lol I would wear women's wear for 180k
 
10:32 PM
@StanleyDharan go to www.regex101.com and play around
 
anyone know of a good lua <-> javascript converter
 
@CSᵠ thats actually really useful! ill use it next time, the second half of my workshop seems to not require a regExp but rather just some simple string methods!
 
that's good
 
@CSᵠ oh no nvm read that wrong it does :( slightly more difficult then the previous requirement, it requires atleast 1 match in the string (vs. the whole input having to match like previously)
 
example link on regex101 ? @StanleyDharan
 
10:44 PM
@StanleyDharan I love nvm
 
!!make mead or be lazy and watch netflix
 
@rlemon be lazy and watch netflix
 
@CSᵠ I was thinking of something like this but as it says does not match regex101.com/r/fN1pR9/1
 
why the ? sign?
 
@CSᵠ because the requirement was that a-z A-Z an 0-9 be included in the string, so I thought since ? is 0 or 1 times i'd use that
 
10:49 PM
well, fisr of all you bounded your match from start to finish
^ to $
that means everything needs to match
in order to match 0 or 1, don't bound it at all, or maybe just at the starting point @StanleyDharan
 
@CSᵠ okay so kinda like this? regex101.com/r/fN1pR9/3
 
@StanleyDharan that's a way... but what is your exact requirement?
 
that would mtch a only a single character right?
 
yes, and only if possible
 
10:52 PM
if you don't include the '?` it would be mandatory to match 1 char
 
if I dont include it i'd match only once?
the '?'*
 
? means optional
 
oh okay
 
@StanleyDharan can you explain...
 
so from what I'm understanding on the regex101 site when I ran the expression you helped me make it had only 1 match
 
10:55 PM
ok..
 
so im guessing itll look through the string and find the first thing to match the requirement of the regex and itll stop looking after?
is that what you meant by explain? or did u mean the requirements?
 
@StanleyDharan yes, your req aren't clear
look at this one: regex101.com/r/fN1pR9/4
 
oh okay, so the requirements are that a user would enter a string, the string has to be between 6-10 chars and can contain anything, aslong as in the string it has atleast one of the following:
an upper case, lower case and a number
 
can I somehow change a constructor without changing references to that constructor?
if it sounds retarded, spare me the details
:>
can be anything, magic, broke, whatever
 
so the version u just put up (version 4) that would look for A-Za-z 0-9 and stop when it found anything that matchs it (the first match) and returns true?
@Mosho what do you mean? i've only dont constructors in c++ but I can try to help
 
11:06 PM
@Mosho what do you mean?
 
I'm not even sure myself
I'm probably retarded
 
How would you guys implement a zoom function in canvas that can still detect when a mouse is over a given sprite? I tried this: jsfiddle.net/ejp9bphm but when you zoom in a bit the accuracy of the mouse over detection gets worse and worse
 
@Mosho What do you need?
 
I want to change the behavior of new SomeClass
without affecting whatever calls it
I'll just monkey patch it
replace the original constructor with something I control
 
I don't know how to disable emulation now tha tI turned it on in chrome..
I even closed and re-opened that tab and it came back. I feel dumb. anyone know?
 
11:10 PM
top left of dev tools
 
ahh, ty.
missed the little blue phone icon.
 
or "disable" button under the emulation tab in the drawer
 
ohh, yea.. that was off the screen, have to make the pane taller to see it
 
@CSᵠ hey I think I figured it out! regex101.com/r/fN1pR9/5
 
@StanleyDharan need 3 matches?
 
11:18 PM
@CSᵠ it needs to match once for each requirement, so yah
well to the best on my knowledge anyways
 
this is what I came up with
const DynamicClass = function(...args) {
	return new DynamicClass.__constructor(...args);
};
wtf is that
 
that makes me sad :(
 
im confused on what thats supposed to mean...
 
You can overwrite DynamicClass.__constructor
 
11:26 PM
which is the point
 
But it's weird to infect your code like that
 
it's very meta
if you have a better solution, I'm all ears
 
Wouldn't Object.create work?
 
there's code that I don't own or control, and it calls new DynamicClass and I want to change what it gets when I want
 
But you can change DynamicClass?
 
11:29 PM
no, I export it and keep a copy
 
can anyone explain why this goes into an infinite loop? jsfiddle.net/tgzumzov
 
function NewDynamicClass() {}; NewDynamicClass.prototype = DynamicClass.prototype
 
@StanleyDharan I guess cause you wrote it that way
@StanleyDharan also, WHAT THE FUCK is that code meant to be.
 
@StanleyDharan where is x defined?
 
@copy but the code I don't control won't be calling new newDynamicClass()
 
11:31 PM
@phenomnomnominal ive used that method to constantly prompt a user to re enter info till it meets the requirements before though
 
it'll still call new DynamicClass()
 
@Luggage scope of the function
 
@StanleyDharan that's literally the worst.
 
@Mosho You said you export it
 
@phenomnomnominal couldnt think of any other way
 
11:32 PM
there was once some worse code, but the author fixed it.
 
@copy once, then I need to keep it up to date
I'm making a hot reloading/swapping plugin for systemjs
don't know if this is the right approach but I have have a bunch I'm trying out
 
Oh, huh. Good luck then
 
11:44 PM
@Mosho can I look?
 
it's barely a PoC
no tests, no documentation
I'm planning to have something out next week
here it is though:
though it works pretty well for react
 
welp figured out what was wrong LOL
 
@Nick vintnerscircle.com/catalog/… just got one of these
I highly recommend it
makes cleaning bottles a freaking breeze
 
@rlemon cider turned out perfectly carbonated, but it has a slight sour taste (like vinegar). My mother and father say that it's not vinegar though.
It still tastes good though
 
could be you're mistaking the champagne taste
 
11:58 PM
@Nick there may be a touch of vinegar
 
did you use champagne yeast like I suggested??
 
Yeah
 
yeah, my gf says the same thing
I like it personally.
 
Alright
I guess it turned out great, then
 
anyways, my mead recipe is fucking fantastic :D
:pats own back:
 
11:59 PM
The cinnamon-clove flavour is a bit strong, so I'll tone it down next time, but it turned out great otherwise
 
so far everyone who has tried it likes it
 
The lemon mint one?
 
yea
can't taste the mint
so I'm dropping that
 

« first day (1814 days earlier)      last day (3128 days later) »