Welcome To Snipplr


Everyone's Recent Ruby Snippets Tagged file



« Prev 1 Next »
This code sample shows how Ruby developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 2617 posted 11 years ago by johansonkatherine
Checks to make sure the file is a valid image file, checks max file size, and directory write permissions, requires 'fileutils' gem.
2 1996 posted 13 years ago by kellishaver
0 1920 posted 13 years ago by scruffpuff
Rake task - Copies files from one directory to another in a batch of 50 files, giving 15 seconds break between each batch.
1 1220 posted 16 years ago by cnicolaou
If you get "JPEG marker not found!" error when you try to open an image file you must read it in binary mode.
1 1031 posted 16 years ago by PixelMin
1 1004 posted 17 years ago by neil
This is handy for testing, when you need to simulate an open file or open URI. Why, and the Pickaxe book, have better examples
1 1114 posted 17 years ago by cczona
Difficult to find in documentation but so easy
3 1582 posted 17 years ago by arnoldu
« Prev 1 Next »