U2744 SNOWFLAKE

British Columbia, Canada

Age: 17

Code formatting is 𝚗𝚘𝚝 for emphasis!

30m
comment Is it possible to set static value input type="file"
'' is an empty string. If you want to check for that and convert it to 'empty' for some reason, you can always use an if statement. (($('[name=myfilename]').val() || 'empty') is shorter here, I guess.)
36m
comment How would you reference 'this' when the function calling 'this' is inside a child object's object?
@aamirl: get categories() is equivalent to this; I just used Object.defineProperty because it doesn’t require you to set the entire prototype using the same object literal.
38m
revised Sort array without using sort() method
General cleanup.
40m
revised How would you reference 'this' when the function calling 'this' is inside a child object's object?
A better name!
40m
comment How would you reference 'this' when the function calling 'this' is inside a child object's object?
@RobG: Sorry, the point was that it was just to match the question, not about one name versus another! I’ll edit that in, anyways; it’s my preferred style.
43m
comment How would you reference 'this' when the function calling 'this' is inside a child object's object?
@RobG: I actually called it self, as in the question. storefront is better, yes.
44m
comment How would you reference 'this' when the function calling 'this' is inside a child object's object?
@zerkms: I’m not sure about an IIFE, but bind() could do it.
49m
answered How would you reference 'this' when the function calling 'this' is inside a child object's object?
4h
comment My frameset code is not working
Please pick a different book. Nobody should be using framesets anymore.
6h
comment Give an option to wear multiple hats
upload.wikimedia.org/wikipedia/en/c/c1/…
7h
comment Version.CompareTo incorrect
It’s definitely false.
9h
comment Json encoding, customizing dumps method
In Python 3, it’s as easy as 'avatar': list(b'1w\xed…'). In Python 2, I have no idea. map(ord, '…')?
9h
comment Json encoding, customizing dumps method
JSON supports strings of Unicode text only; you’d store a sequence of bytes as an array of integers.
9h
revised Why doesn't range() return a list?
deleted 1 character in body
12h
comment how to use javascript to check if the first character in a textbox is a number?
if (/^\d/.test(document.forms[0].elements[2].value))
20h
reviewed Reject suggested edit on VI replace or remove the first character from line to line
20h
comment Convert GTK# Color to System.Drawing.Color
If it’s developer.gnome.org/pygtk/stable/class-gdkcolor.html, mygtkcolor.Red / 65535 * 255, I suppose.
20h
comment Convert GTK# Color to System.Drawing.Color
What’s the full name of mygtkcolor’s type?
23h
awarded Citizen Patrol
1d
revised Online Nginx regex validator
edited tags
1 2 3 4 5