Researched by Robert Quattlebaum darco@deepdarc.com.
Last updated 2020-02-03.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Usage: swift remove_alpha_channel.swift filename.png | |
| import Foundation | |
| import CoreImage | |
| let arguments = CommandLine.arguments | |
| let filename = arguments[1] | |
| let dataProvider = CGDataProvider(filename: filename)! | |
| let cgImage = CGImage(pngDataProviderSource: dataProvider, decode: nil, shouldInterpolate: true, intent: .defaultIntent)! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public extension UIImage { | |
| public struct FlipOptions: OptionSet { | |
| public typealias RawValue = Int | |
| public let rawValue: RawValue | |
| public init(rawValue: RawValue) { | |
| self.rawValue = rawValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Star Micronics | |
| * | |
| * CUPS Filter | |
| * | |
| * [ Linux ] | |
| * compile cmd: gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertostar rastertostar.c -lcupsimage -lcups | |
| * compile requires cups-devel-1.1.19-13.i386.rpm (version not neccessarily important?) | |
| * find cups-devel location here: http://rpmfind.net/linux/rpm2html/search.php?query=cups-devel&submit=Search+...&system=&arch= | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Psync;1;0 # **RESERVED COMMAND** | |
| <HEADER>Psmgr;1 # **RESERVED COMMAND** | |
| Ppws;1537499426 # **RESERVED COMMAND** | |
| Pps;0;n # Printer status after reply. (0=disable 1=enable);(n=force no persistent, 0=disable printer status extension;1=enable printer status extension) | |
| Pcla;1 # **RESERVED COMMAND** | |
| Psid;2 # **RESERVED COMMAND** Set current session identification number | |
| Pr;0;t # Read ribbon value (0=RIBBON_YMCKO);(t=Previous parameter is a number, not a string) | |
| Pwres;300;300;0 # Card resolution? | |
| Psk;10 # Monochrome print speed (10=fastest, 1=slowest) | |
| Piqla;a;d # Print quality level adjust (a=activate adjustment, d=disable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Mac.h" | |
| Mac::Mac(){ | |
| for(int i=0;i<6;i++){ | |
| adress[i] = 0x00; | |
| } | |
| } | |
| Mac::Mac(uint8_t first, uint8_t second, uint8_t third, uint8_t fourth, uint8_t fifth, uint8_t sixth){ | |
| adress[0] = first; |

