I hereby claim:
- I am ajacksified on github.
- I am ajacksified (https://keybase.io/ajacksified) on keybase.
- I have a public key whose fingerprint is 5407 F376 63D5 1E24 8134 EB7D 8624 00BA CA1B D833
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Allows Hubot to talk back. Passive script. | |
cleverbot = require('cleverbot-node') | |
class Messages | |
constructor: (@robot) -> | |
@cache = [] | |
@robot.brain.on 'loaded', => | |
if @robot.brain.data?.messages | |
@cache = @robot.brain.data.messages |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Drag and Drop Example</title> | |
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/ui-lightness/jquery-ui.css" rel="stylesheet" /> | |
<style> | |
#container { | |
height: 400px; | |
width: 700px; |
# Description | |
# Searches Yelp API to find you things. | |
# | |
# Dependencies: | |
# "yelp": "0.1.1" | |
# | |
# Configuration: | |
# HUBOT_YELP_CONSUMER_KEY=key | |
# HUBOT_YELP_CONSUMER_SECRET=secret | |
# HUBOT_YELP_TOKEN=token |
# Description | |
# Searches Yelp API to find you things. | |
# | |
# Dependencies: | |
# "yelp": "0.1.1" | |
# | |
# Configuration: | |
# HUBOT_YELP_CONSUMER_KEY=key | |
# HUBOT_YELP_CONSUMER_SECRET=secret | |
# HUBOT_YELP_TOKEN=token |
class ScoreKeeper | |
constructor: (@robot) -> | |
@cache = { scoreLog: {}, scores: {} } | |
@robot.brain.on 'loaded', => | |
@robot.brain.data.scoreLog ||= {} | |
@robot.brain.data.scores ||= {} | |
@cache.scores = @robot.brain.data.scores || {} | |
@cache.scoreLog = @robot.brain.data.scoreLog || {} |
# Description: | |
# "Travis CI alert hook" | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: | |
# POST /hubot/travis [data] | |
# | |
# Authors: |
serializeForm: ($el) -> | |
return _.reduce($el.serializeArray(), (memo, v) -> | |
if v.name.match(/\[\]/) | |
v.name = v.name.replace(/\[\]/,'') | |
memo[v.name] ?= [] | |
memo[v.name].push(v.value) | |
else | |
memo[v.name] = v.value | |
memo | |
, {}); |
App.Views.About ||= {} | |
class App.Views.About.BaseView extends App.Views.Base.BaseView | |
initialize: () -> | |
if @model | |
@model.bind('reset', @render) | |
@render() | |
render: => |
# Generates commands to track days since an event | |
# | |
# it's been <number> days since <event> - Set the day when the event happened | |
# <event> on <date> - Set the date the event happened (yyyy-mm-dd) | |
# how long since <event>? - Display the number of days since the event | |
# when was/is/did <event>? | |
module.exports = (robot) -> | |
robot.respond /(.*?) on ((19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01]))$/, (msg) -> | |
event = msg.match[1] |