id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Mmdn_Instance_console/4829974_10_0.txt | When you print the value you can also store it into an array, just add a line
near the console log that does that with the value printed by the console log
1 Like | |
Mmdn_Instance_console/75038-javascript-for-loop-examples-print-numbers-and-sum-array-elements9_5_0.txt | * SheCodes Tools
Free coding tools for developers
* SheCodes Connect
Connect with SheCodes Alumni | |
Mmdn_Instance_console/Mmdn_Instance_console_11_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
Mmdn_Instance_console/4829974_12_0.txt | system Closed April 25, 2022, 2:18pm 6
This topic was automatically closed 182 days after the last reply. New replies
are no longer allowed. | |
Mmdn_Instance_console/Mmdn_Instance_console_10_2.txt | gies ](/en-US/docs/Web)
* [ Learn Web Development ](/en-US/docs/Learn)
* [ MDN Plus ](/en-US/plus)
* [ Hacks Blog ](https://hacks.mozilla.org/)
[ Mozilla logo ](https://www.mozilla.org/)
* [ Website Privacy Notice ](https://www.mozilla.org/privacy/websites/)
* [ Cookies ](https://www.mozilla.org/privacy/we... | |
Mmdn_Instance_console/Mmdn_Instance_console_8_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
Mmdn_Instance_console/4421372_2_0.txt | Hi, I am trying to write a script that will return a number incrementing by
1%.
Similar to the question: If I have 1 dollar, and it gains 1% everyday, how
long will it take to reach 1 million? | |
Mmdn_Instance_console/Mmdn_Instance_console_18_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
Mmdn_Instance_console/python-for-loop-example3_83_0.txt | Python range is one of the built-in functions . When you want the for loop
to run for a specific number of times, or you need to specify a range of
objects to print out, the range function works really well.
When working with ` range() ` , you can pass between 1 and 3 integer arguments
to it: | |
Mmdn_Instance_console/75038-javascript-for-loop-examples-print-numbers-and-sum-array-elements9_25_0.txt | Asked 30 days ago in JavaScript by Em
What is a recursive function? | |
Mmdn_Instance_console/python-for-loop-example3_141_0.txt | Sign up for Infrastructure as a Newsletter.
Sign up | |
Mmdn_Instance_console/75038-javascript-for-loop-examples-print-numbers-and-sum-array-elements9_11_0.txt |
for loop examples
for loop examples printing Array sum | |
Mmdn_Instance_console/75038-javascript-for-loop-examples-print-numbers-and-sum-array-elements9_98_0.txt | setTimeout setInterval code execution delay clearInterval
### 👩💻 Technical question | |
go_runtime/nfwinuserpeekmessage_49_0.txt | **PM_QS_INPUT** | |
go_runtime/googlevignette_97_0.txt | #include <windows.h> | |
go_runtime/nfwinuserpeekmessage_97_0.txt | ## Feedback | |
go_runtime/nfwinuserpeekmessage_8_0.txt | Table of contents | |
go_runtime/nfwinuserpeekmessage_63_0.txt | If a message is available, the return value is nonzero. | |
go_runtime/go_runtime_17_0.txt | #### func [ MutexProfile
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=1031) ¶
added in go1.8
func MutexProfile(p []BlockProfileRecord) (n [int](/builtin#int), ok [bool](/builtin#bool))
MutexProfile returns n, the number of records in the current mutex profile. If
len(p) >= n,... | |
go_runtime/nfwinuserpeekmessage_59_0.txt | (QS_SENDMESSAGE << 16) | |
go_runtime/nfwinuserpeekmessage_43_0.txt | **PM_NOYIELD** | |
go_runtime/nfwinuserpeekmessage_13_0.txt | Dispatches incoming nonqueued messages, checks the thread message queue for a
posted message, and retrieves the message (if any exist). | |
go_runtime/googlevignette_46_0.txt | [ **WriteGreatCode** (73) ](/user/WriteGreatCode/) | |
go_runtime/go_runtime_30_0.txt | #### func [ StopTrace
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/trace.go;l=470) ¶
added in go1.5
func StopTrace()
StopTrace stops tracing, if it was previously enabled. StopTrace only returns
after all the reads for the trace have completed.
| |
go_runtime/win_130_0.txt |  | |
go_runtime/win_77_0.txt | This section is empty. | |
go_runtime/win_29_0.txt | [  ](https://go.dev/) | |
go_runtime/nfwinuserpeekmessage_109_0.txt | ### In this article | |
go_runtime/nfwinuserpeekmessage_26_0.txt | Type: **UINT** | |
go_runtime/win_5_0.txt | * [ Use Cases ](https://go.dev/solutions#use-cases) | |
go_runtime/win_72_0.txt | ##  Documentation ¶ | |
go_runtime/googlevignette_109_0.txt | LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) /* handle the messages */
{
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
default: /* for messages that we don't deal with */
r... | |
go_runtime/go_runtime_5_0.txt | #### func [ CPUProfile
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/cpuprof.go;l=208)
deprecated
func CPUProfile() [][byte](/builtin#byte)
CPUProfile panics. It formerly provided raw access to chunks of a pprof-format
profile generated by the runtime. The details of generating that forma... | |
go_runtime/go_runtime_40_0.txt | #### func (*Frames) [ Next
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/symtab.go;l=91) ¶
added in go1.7
func (ci *Frames) Next() (frame Frame, more [bool](/builtin#bool))
Next returns a Frame representing the next call frame in the slice of PC
values. If it has already returned all c... | |
go_runtime/googlevignette_102_0.txt | /* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; /* No menu */
wincl.cbClsExtra = 0; /* No extra bytes after the window ... | |
go_runtime/nfwinuserpeekmessage_99_0.txt | Submit and view feedback for | |
go_runtime/nfwinuserpeekmessage_0_0.txt | Skip to main content | |
go_runtime/go_runtime_22_0.txt | #### func [ ReadTrace
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/trace.go;l=586) ¶
added in go1.5
func ReadTrace() [][byte](/builtin#byte)
ReadTrace returns the next chunk of binary tracing data, blocking until data
is available. If tracing is turned off and all the data accumulated w... | |
go_runtime/win_48_0.txt | [ Go to latest ](/golang.design/x/hotkey/internal/win) Published: Dec 28,
2022 License: [ MIT ](/golang.design/x/hotkey/internal/win?tab=licenses) | |
go_runtime/showthreadphp635431R_9_0.txt |
Sub ProcessMessages()
Dim Message As Msg
'loop until bCancel is set to True
Do While Not bCancel
'wait for a message
WaitMessage
'check if it's a HOTKEY-message
If PeekMessage(Message, Me.hWnd, WM_HOTKEY, WM_HOTKEY, PM_REMOVE) Then
'minimize the form
WindowState = vbMinimized
End If
'let the operating system process o... | |
go_runtime/googlevignette_3_0.txt | * [ Tutorials ](/doc/)
* [ Reference ](/reference/)
* [ Articles ](/articles/)
* [ Forum ](/forum/) | |
go_runtime/go_runtime_4_0.txt | #### func [ Breakpoint
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/proc.go;l=5154) ¶
func Breakpoint()
Breakpoint executes a breakpoint trap.
| |
go_runtime/go_runtime_47_0.txt | #### func (*MemProfileRecord) [ InUseBytes
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=846) ¶
func (r *MemProfileRecord) InUseBytes() [int64](/builtin#int64)
InUseBytes returns the number of bytes in use (AllocBytes - FreeBytes).
| |
go_runtime/go_runtime_33_0.txt | #### func [ Version
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/extern.go;l=354) ¶
func Version() [string](/builtin#string)
Version returns the Go tree's version string. It is either the commit hash and
date at the time of the build or, when possible, a release tag like "go1.3".
| |
go_runtime/win_94_0.txt | [ https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-
postquitmessage ](https://docs.microsoft.com/en-
us/windows/win32/api/winuser/nf-winuser-postquitmessage) | |
go_runtime/nfwinuserpeekmessage_10_0.txt | * Article
* 02/09/2023 | |
go_runtime/googlevignette_155_0.txt |
The else statement can only be used after an if or else if statement, not a
while loop. If you wanted to execute something after that while loop you would
just put it directed after it, so just deleted the if statement. | |
go_runtime/showthreadphp635431R_5_0.txt | Code:
Private Const MOD_ALT = &H1
Private Const MOD_CONTROL = &H2
Private Const MOD_SHIFT = &H4
Private Const PM_REMOVE = &H1
Private Const WM_HOTKEY = &H312 | |
go_runtime/googlevignette_11_0.txt | I know how ` (GetMessage(&msg, NULL, 0, 0)) ` works, | |
go_runtime/nfwinuserpeekmessage_61_0.txt | ## Return value | |
go_runtime/win_55_0.txt | ## Details | |
go_runtime/nfwinuserpeekmessage_19_0.txt | A pointer to an [ MSG ](/en-us/windows/desktop/api/winuser/ns-winuser-msg)
structure that receives message information. | |
go_runtime/googlevignette_2_0.txt | ### **[ C++ ](/) ** | |
go_runtime/googlevignette_152_0.txt | {
}
else | |
go_runtime/nfwinuserpeekmessage_52_0.txt | **PM_QS_PAINT** | |
go_runtime/googlevignette_153_0.txt | ---|--- | |
go_runtime/showthreadphp635431R_13_0.txt | ' etc, etc
End Select
End If
...
Also remember to call UnregisterHotKey for each hotkey your created | |
go_runtime/go_runtime_50_2.txt | ast pause in a cycle.
PauseEnd [256][uint64](/builtin#uint64)
// NumGC is the number of completed GC cycles.
NumGC [uint32](/builtin#uint32)
// NumForcedGC is the number of GC cycles that were forced by
// the application calling the GC function.
NumForcedGC [uint32](/builtin#uin... | |
go_runtime/nfwinuserpeekmessage_57_0.txt | | Process all posted messages, including timers and hotkeys. | |
go_runtime/nfwinuserpeekmessage_42_0.txt | | Messages are removed from the queue after processing by **PeekMessage** . | |
go_runtime/googlevignette_13_0.txt | And whats the best one to use? | |
go_runtime/nfwinuserpeekmessage_58_0.txt | **PM_QS_SENDMESSAGE** | |
go_runtime/googlevignette_156_0.txt | And PeekMessage will return 0 if there's no messages in the queue so you will
need to have an outer while loop that runs while WM_QUIT is not equal to
uMsg.message. | |
go_runtime/googlevignette_79_0.txt | If this breaks, the function which will be called next is " GameEnd();" | |
go_runtime/googlevignette_111_0.txt | ---|--- | |
go_runtime/googlevignette_22_0.txt | ---|--- | |
go_runtime/go_runtime_13_0.txt | #### func [ Gosched
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/proc.go;l=340) ¶
func Gosched()
Gosched yields the processor, allowing other goroutines to run. It does not
suspend the current goroutine, so execution resumes automatically.
| |
go_runtime/googlevignette_31_0.txt | Well the PeekMessage loop is generally used in video games, or applications
that need to do things without the user sending a message, such as animation
that isn't used when the user does something. (Example: When sprites walk
around every five seconds, such as in RPGs) | |
go_runtime/win_37_0.txt | _ _ Community | |
go_runtime/googlevignette_12_0.txt |
But how does it differ from ` (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) ` | |
go_runtime/googlevignette_117_0.txt | [ **hanst99** (2869) ](/user/hanst99/) | |
go_runtime/googlevignette_32_0.txt |
1
2
3
4
5
6
7
8
9
10 | |
go_runtime/googlevignette_43_0.txt | 1\. What is this doing because i have not come across WM_QUIT and .message `
WM_QUIT != uMsg.message ` | |
go_runtime/googlevignette_119_0.txt | If the function retrieves the WM_QUIT message, the return value is zero. | |
go_runtime/go_runtime_61_1.txt | ensource.google/go/go/+/go1.22.1:src/runtime/float.go "float.go")
* [ hash64.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/hash64.go "hash64.go")
* [ heapdump.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/heapdump.go "heapdump.go")
* [ histogram.go ](https://cs.opensource.google/... | |
go_runtime/googlevignette_151_0.txt | while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) | |
go_runtime/googlevignette_4_0.txt | ### **[ Forum ](/forum/) ** | |
go_runtime/googlevignette_72_0.txt | [ **TpOreilly** (307) ](/user/TpOreilly/) | |
go_runtime/go_runtime_7_0.txt | #### func [ Callers
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/extern.go;l=318) ¶
func Callers(skip [int](/builtin#int), pc [][uintptr](/builtin#uintptr)) [int](/builtin#int)
Callers fills the slice pc with the return program counters of function
invocations on the calling goroutine's ... | |
go_runtime/googlevignette_21_0.txt | //GetMessage loop example.
while (GetMessage (&uMsg, NULL, 0, 0) > 0)
{
TranslateMessage (&uMsg);
DispatchMessage (&uMsg);
} | |
go_runtime/go_runtime_12_0.txt | #### func [ GoroutineProfile
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=1408) ¶
func GoroutineProfile(p []StackRecord) (n [int](/builtin#int), ok [bool](/builtin#bool))
GoroutineProfile returns n, the number of records in the active goroutine
stack profile. If len(p) >= n, G... | |
go_runtime/googlevignette_53_0.txt | while (PeekMessage (&uMsg, NULL, 0, 0, PM_REMOVE) > 0)
{
TranslateMessage (&uMsg);
DispatchMessage (&uMsg);
} | |
go_runtime/googlevignette_23_0.txt |
1
2
3
4
5
6
7
8
9 | |
go_runtime/nfwinuserpeekmessage_98_0.txt | Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the
feedback mechanism for content and replacing it with a new feedback system.
For more information see: [ https://aka.ms/ContentUserFeedback
](https://aka.ms/ContentUserFeedback) . | |
go_runtime/nfwinuserpeekmessage_91_0.txt | * * * | |
go_runtime/win_59_0.txt | Redistributable licenses place minimal restrictions on how software can be
used, modified, and redistributed. | |
go_runtime/googlevignette_78_0.txt |
---|--- | |
go_runtime/win_86_0.txt | [ https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-
getmessage ](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-
winuser-getmessage) | |
go_runtime/win_36_0.txt | * [ Packages ](/)
* Community _ _ | |
go_runtime/win_120_0.txt |  | |
go_runtime/win_101_0.txt | [ https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-
sendmessage ](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-
winuser-sendmessage) | |
go_runtime/nfwinuserpeekmessage_113_0.txt | * * [ Previous Versions ](/en-us/previous-versions/)
* [ Blog ](https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog)
* [ Contribute ](/en-us/contribute/)
* [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
* [ Terms of Use ](/en-us/legal/termsofuse)
* [ Trademarks ](https://w... | |
go_runtime/googlevignette_81_0.txt | Last edited on Mar 18, 2011 at 2:04am UTC | |
go_runtime/win_63_0.txt | When a project reaches major version v1 it is considered stable. | |
go_runtime/go_runtime_21_0.txt | #### func [ ReadMemStats
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mstats.go;l=353) ¶
func ReadMemStats(m *MemStats)
ReadMemStats populates m with memory allocator statistics.
The returned memory allocator statistics are up to date as of the call to
ReadMemStats. This is in contrast ... | |
go_runtime/googlevignette_69_0.txt |  Mar 18, 2011 at 1:12am UTC | |
go_runtime/googlevignette_36_0.txt | Last edited on Mar 18, 2011 at 12:36am UTC | |
go_runtime/go_runtime_25_1.txt | , the PC values returned should, when passed to the
symbolizer function, return the file/line of the call instruction. No
additional subtraction is required or appropriate.
On all platforms, the traceback function is invoked when a call from Go to C
to Go requests a stack trace. On linux/amd64, linux/ppc64le, linux/ar... | |
go_runtime/win_100_0.txt | SendMessage sends the specified message to a window or windows. The
SendMessage function calls the window procedure for the specified window and
does not return until the window procedure has processed the message. The
return value specifies the result of the message processing; it depends on the
message sent. | |
go_runtime/win_105_0.txt | ### Types ¶ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.