Skip to content

Instantly share code, notes, and snippets.

@glabra
Last active August 29, 2015 14:04
Show Gist options
  • Save glabra/70f2bf9c6f5525ebbdb7 to your computer and use it in GitHub Desktop.
Save glabra/70f2bf9c6f5525ebbdb7 to your computer and use it in GitHub Desktop.
天安門事件
=begin
/*****
tiananmen.rb
*****/
Great Firewall
=end
Earthquake.init do
output_filter do |item|
next unless item["text"]
if item["text"].match(/天.*安.*門/)
raise Exception.new("TiananmenSquareMassacreException")
exit!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment