Skip to content

Instantly share code, notes, and snippets.

-- Click “System Preferences” in the Dock.
delay 0.5
set timeoutSeconds to 0.000000
set uiScript to "click UI Element \"System Preferences\" of list 1 of application process \"Dock\""
my doWithTimeout( uiScript, timeoutSeconds )
-- Click the “Network” button.
delay 0.5
set timeoutSeconds to 0.000000
set uiScript to "click UI Element \"Network\" of scroll area 1 of window \"System Preferences\" of application process \"System Preferences\""
@puliaiev
puliaiev / hobbit.js
Last active August 29, 2015 14:07
hobbit.js
'use strict';
var http = require('http');
var xml2js = require('xml2js');
var processData = function (json_data, next) {
console.log("make json...");
var parser = new xml2js.Parser();
parser.parseString(json_data, function (err, result) {
var movies = result['planeta-kino'].movies[0].movie;
// console.dir(movies);
FROM python:2-onbuild
EXPOSE 8080
CMD [ "python", "./runner.py" ]