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
| for(var person in myChair){ | |
| alert('GET OUT OF MY CHAIR!!!'); | |
| // http://www.hark.com/clips/spytzjhbxv-outta-my-chair | |
| } |
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
| # Bounce Break script | |
| # | |
| # bounce me - Send a random bouncebreak.com image | |
| htmlparser = require "htmlparser" | |
| module.exports = (robot) -> | |
| robot.respond /(bounce|bouncebreak)( me)?/i, (msg) -> | |
| bounceBreakCall msg, (image_url) -> | |
| msg.send image_url |
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
| class Mapping < ActiveRecord::Base | |
| belongs_to :user | |
| require "CSV" | |
| has_attached_file :csv_file, | |
| :path => ":rails_root/public/system/mapping/:id/:filename", | |
| :url => "/system/mapping/:id/:filename" | |
| # after_create :create_csv | |
| def get_csv_headers |
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
| class CsvFile < ActiveRecord::Base | |
| belongs_to :user | |
| require "CSV" | |
| has_attached_file :csv_file, | |
| :path => ":rails_root/public/system/csvfile/:id/:filename", | |
| :url => "/system/csvfile/:id/:filename" | |
| after_create :parse_csv | |
| def parse_csv |
NewerOlder