Computer Science Archives

My dream!

  1. How to Set a Key Binding in Sublime Text Based on the File Type the Command Is Running on

    In my Sublime Text 3, I use JsFormat to format my javascript source code. Its key binding follows:

    I have noticed that the JsFormat used the selector context operand to make sure that the js_format command would only run on file types “.js”, “.json” or “.html”. This is to avoid key clashes with other Continue reading...

  2. LDBL_MAX -1.#QNAN0e+000 with MinGW?

    I have tried to run this with both eclipse(CDT)+MinGW and Cygwin+GCC [code lang=”c”] int main() { puts("The range of "); printf("tlong double is [%Le, %Le]∪[%Le, %Le]n", -LDBL_MAX, -LDBL_MIN, LDBL_MIN, LDBL_MAX); return EXIT_SUCCESS; } [/code] but got different results: In eclipse(CDT)+MinGW The range of long double is [-1.#QNAN0e+000, 3.237810e-319]∪[6.953674e-310, 0.000000e+000] In Cygwin+GCC The range of long Continue reading...