Skip to content

Instantly share code, notes, and snippets.

<?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>
@adamloving
adamloving / Gruntfile.coffee
Created July 19, 2013 23:52
The best thing I added to my Gruntfile this week.
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}\""
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