« first day (2752 days earlier)      last day (1337 days later) » 

 
6 hours later…
8:21 AM
Thanks a lot for letting me in
0
Q: React native color wheel not working if it is used multiple times

masud_moniI was having Invariant Violation issue on regular installation, thus I imported the script as a component and used it like the following import ColorWheel from '../../components/ColorWheel'; <View style={{flexDirection:'row', justifyContent: 'center'}}> <View style={{width:'50%', paddingHori...

can anyone please help me with this unusual issue?
 
3 messages moved from Android
 
9:02 AM
Hi! I am reading a js code, do I understand it correctly:
ƒ getBinding(r) {
var i = this;
do {
var a = i.getOwnBinding(r);
if (a) return a
} while (i = i.parent)
}
What does getOwnBinding do? What does getting own's binding mean?

Does it checks if i has the argument r, and then if it does, a equals the value of r, right?
And what how a class' own parent can equal the class itself (i = i.parent)?
 
1 message moved from JavaScript
 
 
5 hours later…
1:59 PM
@zgoforth i'm kinda wrapping my head around your algo. so what's going on in line
if (!sortedObj[program]) {
sortedObj[program] = [];
}
 
1 message moved from JavaScript
 
@zgoforth i'm kinda wrapping my head around your algo. so what's going on in line
if (!sortedObj[program]) {
sortedObj[program] = [];
}
 
1 message moved from JavaScript
 
 
7 hours later…
10:05 PM
A simple test shows this is not true:

let iterations = 0;
const n = 10;

for (let i = 0; i < n; i++) {
for (let j = i + 1; j < n; j++) {
iterations++;
}
}

console.log(iterations)
> VM140:1 45
```
 
@JoshuaWade Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@JoshuaWade Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@JoshuaWade Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved from JavaScript
 
6 messages moved from JavaScript
 

« first day (2752 days earlier)      last day (1337 days later) »