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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="JAVA_MODULE" version="4"> | |
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/java" isTestSource="false" /> | |
</content> | |
<orderEntry type="jdk" jdkName="1.7" jdkType="JavaSDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> |
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
SUCCESS_PHRASES = ['all good', 'works for me', 'keep it coming', 'yeah baby', 'i like it', | |
'you\'re good', 'that\'s it', 'nailed it', 'mmm hmmm', 'sweet', 'keep it up', 'yep'] | |
# ... | |
exec: | |
notify_ok: | |
cmd: -> | |
phrase = SUCCESS_PHRASES[Math.round(Math.random()*(SUCCESS_PHRASES.length-1))] | |
"say -v Vicki \"#{phrase}\"" |
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
require 'zmq' | |
context = ZMQ::Context.new | |
pub = context.socket ZMQ::PUB | |
pub.setsockopt ZMQ::IDENTITY, 'ping-pinger' | |
pub.bind 'tcp://*:5555' | |
i=0 | |
loop do | |
pub.send "ping pinger #{i+=1}" ; sleep 1 | |
end |