« first day (1635 days earlier)      last day (2482 days later) » 

06:39
`
function returnMeetings(query) {
return new Promise((reject, resolve) => {
Meeting.find(query, (err, foundMeetings) => {
if (err) {
return reject(err)
}
console.log(`The resolved meetings are ${foundMeetings}`)
return resolve(foundMeetings);
})
})
}
`
1 message moved from JavaScript
07:12
@JonathanSolorzano

<script type="text/javascript">
var url = "www.example.com/training/product.html";
url = url.substring(0, url.lastIndexOf("."));
alert(url);
</script>
1 message moved from JavaScript
07:52
Write a function named maxOccurDigit that returns the digit that occur the most. If there is no such digit, it will return -1. For example maxOccurDigit(327277) would return 7 because 7 occurs three times in the number and all other digits occur less than three times. Other examples:
maxOccurDigit(33331) returns 3
maxOccurDigit(3232, 6) returns -1
maxOccurDigit(5) returns 5
maxOccurDigit(-9895) returns 9

The function signature is
maxOccurDigit(int n)
1 message moved from Java
examples:
maxOccurDigit(33331) returns 3
maxOccurDigit(3232, 6) returns -1
maxOccurDigit(5) returns 5
maxOccurDigit(-9895) returns 9
The function signature is
maxOccurDigit(int n)
2 messages moved from Java
08:04
thank you tavo
 
3 hours later…
 
1 hour later…
@Natty tp
13:23
-1
Q: How to align the menu data on homepage bootstrap

Ahmad i am working on my MVConlineShop, and that's what i made so far: Question : how to align these categories on the same bar , can you please help me? this is my CategoryLayout partial view: @model IEnumerable<MVCOnlineShop.Models.Category> @{ ViewBag.Title = "Categories"; } <ul> @foreach...

1 message moved from JavaScript
 
1 hour later…
14:56
This is correct destructuring inside a function const f = ({ o,a=o.a } = {a:y}) => {
console.log(o)
console.log(a)
};

f({o:{a: 0 }});
1 message moved from JavaScript
 
1 hour later…
 
2 hours later…
18:11
4 messages moved from R Public
 
1 hour later…
19:38
what you should do is try not sucking
@Puppy thanks for this valuable feedback. You are now an expert in C++ and think that allows you to look down on other people?
"are now"? have been for some time
but looking down on you has nothing to do with that, it's primarily because I hate spammers
@Puppy a hater and arrogant, lol...
a hater of spammers? certainly
have been for quite some time
@Puppy talking to you is not going to solve my issue, lol
19:46
certainly is not
if you could come to that realization before spamming in the Lounge next time, I'd appreciate it
@Puppy you don't deserve to appreciate much, with that attitude.
what you feel I deserve is, fortunately, immaterial
@Puppy actually... you just don't deserve anything.
20:48
13 messages moved from C++ Questions and Answers
 
1 hour later…
A K
A K
22:54
let merged = [];

logSources.forEach(item => {
let temp = [item.pop()];
while(item.drained){
temp = item.pop();
}
for(let i = 0, len = temp.length; i < len; i++){
merged.push(temp[i]);
}
});

merged.sort((a, b) => a.date - b.date).forEach(item => printer.print(item));

That's my extremely naive apporach
1 message moved from JavaScript

« first day (1635 days earlier)      last day (2482 days later) »