A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord| #EXTINF:-1,Nickelodeon | |
| http://B29273.cdn.telefonica.com/29273/NICK_SUB.m3u8 | |
| #EXTINF:-1,Disney Junior | |
| http://B29285.cdn.telefonica.com/29285/DSNJR_SUB.m3u8 | |
| #EXTINF:-1,40TV | |
| http://B31312.cdn.telefonica.com/31312/40TV_SUB.m3u8 | |
| #EXTINF:-1,Disney XD | |
| http://B31309.cdn.telefonica.com/31309/DSNYXD_SUB.m3u8 | |
| #EXTINF:-1,Canal Cocina | |
| http://B31305.cdn.telefonica.com/31305/COCINA_SUB.m3u8 |
| import Foundation | |
| extension String | |
| { | |
| var length: Int { | |
| get { | |
| return countElements(self) | |
| } | |
| } | |
| gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf file1.pdf file2.pdf file3.pdf | |
| # -q -dNOPAUSE -dBATCH -> means just quietly and close ghostscript after running | |
| # -sOutputFile=merged.pdf is the merged file | |
| # file1.pdf file2.pdf file3.pdf is the list of files thar are going to be merged. |