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
// ------ | |
// Broadcasts discovery requests for Logitech Media Server and listens to replies and publish messages | |
// will send all updates as a hash to the callback. | |
// The content of the hash is | |
// IPAD: The address of the server | |
// NAME: The name of the server | |
// JSON: The port to connect to for the JSON API | |
// UUID: The unique identifier of the server instance. | |
// ------ | |
const GLib = imports.gi.GLib; |
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 class MagicalLand { | |
public static void main(String[] args) { | |
for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if (Unicorn.pat()) { | |
System.out.println("UNICORN #1: PAT THIS UNICORN ONCE"); | |
} | |
} | |
for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if (Unicorn.pat()) { |