copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
Change line spacing inside the document - LaTeX Stack Exchange A friendly reminder for everyone using the memoir class that it provides its own mechanisms for line spacing: \begin{Spacing}{0 9} tightly spaced text \end{Spacing} There are also SingleSpace , OnehalfSpace and DoubleSpace environments; starred versions of those that do not automatically add \vskip\baselineskip at the end; various crutches to
vi - How go to line N? - Unix Linux Stack Exchange Replace line_num with the line number, for example: vi +14 file py You can also use the ex command line to go to a line (For information about the ex mode, see Use the vi text editor) For instance, if you wanted to go to line 14, you could press Esc and then enter::14 There is also a vi command
Insert a new line without \newline command - TeX But long lines are well formatted Test: This is a long sentence to test the text wrap in a pragraph \\ This is a new line with \verb|\\| \newline This is another \verb|\newline| \par This is a new paragraph This is another paragraph Blank lines (no matter how many) means a new paragraph, \textbf{not a new line}
Linux: set date through command line - Unix Linux Stack Exchange System time You can use date to set the system date The GNU implementation of date (as found on most non-embedded Linux-based systems) accepts many different formats to set the time, here a few examples:
How can I read line by line from a variable in bash? IFS=' ' set -f for line in $(jobs); do # process line done set +f unset IFS Explanation: setting IFS to a single newline makes word splitting occur at newlines only (as opposed to any whitespace character under the default setting)
Simple command line HTTP server - Unix Linux Stack Exchange serve static files using your current directory (or a specified directory) as the server root 2 be able to be run with a single, one line command (dependencies are fine if they're a one-time thing) 3 serve basic file types (html, css, js, images) with proper mime types, require no configuration (from files or otherwise) beyond the command
What are your favorite command line features or tricks? Adding to the list of hot-keys: Ctrl+W to cut one word backwards, Alt+F to go forward one word, Alt+B to go one word backward in a line I like Ctrl+Y and Shift+Insert because you can have two copied lines One with Ctrl+U ( paste it with Ctrl+Y) and at the same time you can copy another word ( select the line ) paste with (Shift+Insert) –
Remove line containing certain string and the following line If any line immediately following a match should be removed then your sed program will have to consider consecutive matches In other words, if you remove a line following a match which also matches, then probably you should remove the line following that as well It is implemented simply enough - but you have to look-behind a little
Can I uniformly stretch a sentence that nearly fills a line - to fill . . . When working with only a single line of text that you wish to stretch across the text block, there's the stretch option of \makebox: \documentclass{article} \setlength{\parindent}{0pt}% Just for this example \begin{document} This is a rather short sentence that will not fill a line
bash - Insert empty line between command line prompts - Unix Linux . . . When using the command line, often it gets very cluttered Making it inconvenient to examine past commands and their outputs for example I would like to have a newline added each time before the command prompt is shown Like so: <clutter> <blank line> name@machine:~$ I use the bash shell How can this be achieved?