Skip to content

Instantly share code, notes, and snippets.

View asargent's full-sized avatar

Al Sargent asargent

View GitHub Profile
@asargent
asargent / applitools-selenium-java
Last active May 14, 2018 23:30
Applitools Selenium Java
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import com.applitools.eyes.selenium.Eyes;
import com.applitools.eyes.RectangleSize;
public class HelloWorld {
public static void main(String[] args) {
cd my-app
npm install --save-dev @applitools/eyes.storybook
npx eyes-storybook --build
@asargent
asargent / mqtt_message_publisher.rb
Created August 21, 2013 19:43
Demo of publishing MQTT messages to local RabbitMQ broker. Scenario is a fleet of networked cars that continually transmit telemetry data back to the manufacturer for diagnostic purposes.
#!/usr/bin/ruby
require 'rubygems'
require 'mqtt'
# Credits:
# https://github.com/njh/ruby-mqtt
# How many vehicles we've sold
num_vehicles = 100
puts helloworld!
puts "Hello world"