Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Kenji

  1. K

    How can I include the input and output file commandline arguments for my C++ program's run and debug configuration? [duplicate]

    I want to track my code using run and debug. But I cannot include the input and output file in the command line when I use the run and debug. Thats why the argc is 1. enter image description here Does anyone know how to include the input and output file in it?
  2. K

    javascript how to express many-digit exponentials to 2 decimal places

    You can use Intl.NumberFormat with engineering notation: const display = (n) => new Intl.NumberFormat('en', { notation: 'engineering', maximumFractionDigits: 2 }).format(n); console.log(display(3.173538947635389377E+98));
  3. K

    How to speed up VueJS SPA?

    I have a website written in Laravel and InertiaJS (VueJS). It has more than 60 pages. InertiaJS stores all pages and components in these three files: /js/manifest.js /js/vendor.js /js/app.js The problem is the size of these files (Specially app.js) are getting so huge! The app.js is about...
  4. K

    JavaScript add space to a string after 2 characters but ignore newline character

    You need to update your code. let str = '23456\n734526754'; str = str.replace(/([^\n\s]{1,2})(?=\S)/g, "$1 "); console.log(str);
  5. K

    How do I show only the y axis and hide everything else - including the plot itself and the x axis?

    This will get you most of the way there: ggplot()+ geom_blank(data=data, aes(y=reorder(name,desc(name))))+ theme_minimal() Then you just need to drop the gridlines and label: ggplot()+ geom_blank(data=data, aes(y=reorder(name,desc(name))))+ theme_minimal()+ theme(panel.grid =...
  6. K

    How do I show only the y axis and hide everything else - including the plot itself and the x axis?

    Is this what you are looking for? name <- c("A", "B", "C", "D", "E") values <- c(1, 2, 3, 4, 5) df1<-data.frame(name, values) library(ggplot2) library(dplyr) ggplot(df1, aes(values, y=reorder(name,desc(name)))) + geom_blank()+ theme_void()+ theme(axis.text.x=element_blank()...
Top