Welcome To Snipplr


Everyone's Recent Snippets Tagged line



« Prev 1 2 3
Read a file with the file function
0 1197 posted 5 years ago by martinbrait
read the first line of text of a file on the server To read the first line of text in your file: The fgets () function retrieves the first 4096 characters from the first line of your file.
0 1302 posted 5 years ago by martinbrait
This technical tip shows how to Set Line Spacing of the Paragraph in a Shape or Textbox in .NET applications. You can set the line space of the paragraph, its space before and space after using the TextParagraph.LineSpace, TextParagraph.SpaceBefore a...
0 2078 posted 8 years ago by sherazam
This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
0 1951 posted 8 years ago by sherazam
This scripts can be used to send email from your gmail account by authenticating. It can be modified to login to any SMTP server.
1 1247 posted 9 years ago by jsinix
To get button with line breaks you can use carriage return characters to break the line: &#x00A; or just <br> with a <button> tag:
0 1486 posted 10 years ago by apphp-snippets
If a flat file contains embedded carriage return (CR) and linefeed characters (LF) inside double quotes, SAS will interpret them as end of line markers. This may cause your file to be read incorrectly. This example replaces CR/LF characters within...
0 2071 posted 11 years ago by webonomic
Generic method for printing a list to the console based on the number of characters per line.
0 811 posted 11 years ago by borysn
Credit for this goes to Adobe, Ric Ewing, Kevin Williams, Aden Forshaw and Sidney de Koning.
0 1895 posted 12 years ago by adrianparr
This simply justifies a single line of text via CSS.
1 1120 posted 12 years ago by Kerrick
One-line code for installing LAMP server for Ubuntu OS.
0 884 posted 12 years ago by ninacess
Here is a common Regex I use to remove all blank lines in a file using VIM
0 948 posted 12 years ago by jasonpottergmailcom
Linebreaks differ between Flash TextField and a plain text file like Notepad. In this example we convert the html linebreaks in Flash to \r\n
0 1410 posted 12 years ago by adrianparr
Class version of TimelineManipulation.
0 899 posted 12 years ago by okhy
Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
0 1739 posted 13 years ago by m1b
0 708 posted 13 years ago by okhy
Code obtained from a [stackoverflow question](http://stackoverflow.com/questions/4672279/bresenham-algorithm-in-javascript). This is a javascript implementation of the [Bresenham line algorithm](http://en.wikipedia.org/wiki/Bresenham's_line_algorithm...
0 1120 posted 13 years ago by nefd
0 1078 posted 13 years ago by devnull69
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
0 755 posted 13 years ago by tcam27
Command to transfer files between servers using the command line.
0 862 posted 13 years ago by frigga
A couple of snippets useful for file management. I use these to make sure I understand how many files I'm about to modify, and then rename them.
0 763 posted 13 years ago by alassiter
A very simple quick way to count the number of files in a directory.
0 819 posted 13 years ago by alassiter
1 762 posted 13 years ago by adkatrit
This function will interpolate the points on a line. When tracking mouse movements, not every point is captured. This is especially true the faster the mouse moves. This function will allow you to fill in the gap of points between two recorded pos...
0 1577 posted 13 years ago by parkerkrhoyt
This little trick will prevent line breaks on your links. I recommend using this with long text to avoid having links break into 2 lines.
0 781 posted 13 years ago by blueocto
This method is easy to write, but not very efficient, as you can imagine.
2 1340 posted 13 years ago by dyteq
The css style's in the <style></style> tags are important for this snippet to work.
1 1038 posted 13 years ago by bobbym245
« Prev 1 2 3