This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
// Ejecutar | |
// casperjs descargarBoleta.js --ruc=ruc --password=password --taxCode=135,133 | |
var casper = require('casper').create({ | |
clientScripts: ['jquery.js'], | |
logLevel: 'debug', | |
verbose: true | |
}); | |
casper.options.waitTimeout = 30000; |
var casper = require('casper').create({ | |
clientScripts: ['jquery.js'], | |
}); | |
var data = {}; | |
var ruc = casper.cli.get('ruc'); | |
var password = casper.cli.get('password'); | |
casper.start('https://marangatu.set.gov.py/eset/').thenEvaluate(function login(ruc, password) { |
void printb(unsigned char byte) { | |
unsigned char mask = 128; | |
for (int i = 0; i < 8; i++) { | |
printf("%d", byte & (mask >> i) ? 1 : 0); | |
} | |
printf("\n"); | |
} |
void printbint(unsigned int u32int) { | |
unsigned int mask = 1 << 31; | |
for (int i = 0; i < 32; i++) { | |
printf("%d", u32int & (mask >> i) ? 1 : 0); | |
if ((i + 1) % 8 == 0) { | |
printf(" "); | |
} | |
} | |
printf("\n"); | |
} |
import sys | |
from Cocoa import NSDictionary, NSNumber | |
from AppKit import NSRunningApplication, NSImageCompressionFactor, NSBitmapImageRep, NSPNGFileType | |
app = NSRunningApplication.runningApplicationWithProcessIdentifier_(int(sys.argv[1])) | |
icon = app.icon() | |
image_data = icon.TIFFRepresentation() | |
image_rep = NSBitmapImageRep.imageRepWithData_(image_data) | |
image_props = NSDictionary.dictionaryWithObject_forKey_(NSNumber.numberWithFloat_(1.0), NSImageCompressionFactor) |