Welcome To Snipplr


Everyone's Recent Snippets Tagged line



« Prev 1 2 3
  1. FAV

    [php] [txtfile] Lire un fichier avec la fonction file

    Read a file with the file function
    PHP 12 views posted 5 months ago by martinbrait
  2. FAV

    [php] [txtfile] lire la première ligne de texte d'un fichier sur le serveur

    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.
    PHP 3 views posted 5 months ago by martinbrait
  3. FAV

    How to Set Line Spacing of a Paragraph in an Excel Shape or Textbox inside .NET Apps

    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...
    C# 3 views posted 3 years ago by sherazam
  4. FAV

    How to Add Rectangle or Line Object to An Existing PDF File using .NET

    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...
    C# 3 views posted 3 years ago by sherazam
  5. FAV

    # print every line after replacing each field with its absolute value

    Awk 6 views posted 3 years ago by secdebian
  6. FAV

    Send email from gmail account via command line

    This scripts can be used to send email from your gmail account by authenticating. It can be modified to login to any SMTP server.
    Perl saved by 3 people 7 views posted 5 years ago by jsinix
  7. FAV

    Button With Line Breaks in HTML

    To get button with line breaks you can use carriage return characters to break the line: &#x00A; or just <br> with a <button> tag:
    HTML 4 views posted 6 years ago by apphp-snippets
  8. FAV

    Remove carriage return and linefeed characters within quoted strings

    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...
    SAS 3 views posted 6 years ago by webonomic
  9. FAV

    Generic pretty print based on chars per line

    Generic method for printing a list to the console based on the number of characters per line.
    Java 2 views posted 6 years ago by borysn
  10. FAV

    AS3 Drawing Shapes (ARC, BURST, DASHED-LINE, GEAR, POLYGON, STAR, WEDGE, LINE)

    Credit for this goes to Adobe, Ric Ewing, Kevin Williams, Aden Forshaw and Sidney de Koning.
    ActionScript 3 16 views posted 7 years ago by adrianparr
  11. FAV

    Justify one line of text in CSS

    This simply justifies a single line of text via CSS.
    CSS saved by 2 people 10 views posted 8 years ago by Kerrick
  12. FAV

    Easy single line LAMP installation

    One-line code for installing LAMP server for Ubuntu OS.
    Other 3 views posted 8 years ago by ninacess
  13. FAV

    Remove Blank Lines in VI/VIM

    Here is a common Regex I use to remove all blank lines in a file using VIM
    Regular Expression 3 views posted 8 years ago by jasonpottergmailcom
  14. FAV

    AS3 Convert TextField LineBreaks to CRLF for Display as Plain Text (Notepad) on Windows

    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
    ActionScript 3 6 views posted 8 years ago by adrianparr
  15. FAV

    Timeline Manipulation

    Class version of TimelineManipulation.
    ActionScript 3 9 views posted 8 years ago by okhy
  16. FAV

    Viewing an image under Windows 7 from a command line

    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.
    DOS Batch 11 views posted 8 years ago by m1b
  17. FAV

    Timeline Manipulation

    ActionScript 3 5 views posted 8 years ago by okhy
  18. FAV

    Bresenham\'s Line Algorithm

    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...
    JavaScript 3 views posted 8 years ago by nefd
  19. FAV

    Remove blank lines

    JavaScript 3 views posted 8 years ago by devnull69
  20. FAV

    Read Command Line Arguments

    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.
    PHP 1 views posted 8 years ago by tcam27
  21. FAV

    Get length from first line textfield

    ActionScript 3 3 views posted 8 years ago by hejaaa
  22. FAV

    transfer files via ssh

    Command to transfer files between servers using the command line.
    Bash 5 views posted 8 years ago by frigga
  23. FAV

    Command Line to Compile for Playbook using Blackberry SDK

    Bash 1 views posted 8 years ago by dim
  24. FAV

    Rename files from command line

    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.
    Bash 2 views posted 8 years ago by alassiter
  25. FAV

    Count files in a directory

    A very simple quick way to count the number of files in a directory.
    Bash 2 views posted 8 years ago by alassiter
  26. FAV

    robotic script done notification

    Bash saved by 3 people 6 views posted 9 years ago by adkatrit
  27. FAV

    Interpolate Points on a Line

    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...
    JavaScript 3 views posted 9 years ago by parkerkrhoyt
  28. FAV

    Prevent line breaks in links

    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.
    CSS 1 views posted 9 years ago by blueocto
  29. FAV

    Convert associative array to object (class) in a single line

    This method is easy to write, but not very efficient, as you can imagine.
    PHP saved by 10 people 3 views posted 9 years ago by dyteq
  30. FAV

    Aligning divs on one line using a floated left unorderd list

    The css style's in the <style></style> tags are important for this snippet to work.
    HTML saved by 5 people 2 views posted 9 years ago by bobbym245
« Prev 1 2 3