This file contains 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 |
This file contains 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 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 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 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
<div class="span4"> | |
<ul class="left-nav"> | |
<li class="btn btn-large vendor-action" id="btn-news" data-action="news">Latest News</li> | |
<li class="btn btn-primary btn-large vendor-action" id="btn-redeem" data-action="redeem">Redeem Gift Certificate</li> | |
<li class="btn btn-primary btn-large vendor-action" id="btn-check" data-action="check">Check Balance</li> | |
<li class="btn btn-primary btn-large vendor-action" id="btn-outstanding" data-action="outstanding">Outstanding Balance</li> | |
</ul> | |
</div> | |
<div class="span8"> | |
<div id="news"> |
This file contains 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
redis-cli KEYS "prefix:*" | xargs redis-cli DEL |
This file contains 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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/cobalt2.tmTheme", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"fade_fold_buttons": false, | |
"font_face": "Menlo", | |
"font_size": 16.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ |
This file contains 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
@mixin retina-image($img, $img-hires) { | |
background: url(/images/#{$img}) no-repeat center center !important; | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and ( min--moz-device-pixel-ratio: 2), | |
only screen and ( -moz-min-device-pixel-ratio: 2), | |
only screen and ( -o-min-device-pixel-ratio: 2/1), | |
only screen and ( min-device-pixel-ratio: 2), | |
only screen and ( min-resolution: 192dpi), | |
only screen and ( min-resolution: 2dppx) { |
This file contains 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
var attrWatcher = (function() { | |
"use strict"; | |
var isDOMAttrModifiedSupported, MutationObserver, attrchange, observer, disconnect; | |
isDOMAttrModifiedSupported = function() { | |
var p = document.createElement('p'); | |
var flag = false; | |
if (p.addEventListener) p.addEventListener('DOMAttrModified', function() { flag = true }, false); |
This file contains 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
# put back the table | |
# | |
# flip a table and the bot cleans up the rooms | |
module.exports = (robot) -> | |
robot.hear /(╯°□°)╯︵ ┻━┻|\(╯°□°)╯︵ ┻━┻|\(ノಠ益ಠ\)ノ彡┻━┻/i, (msg) -> | |
msg.send('┬──┬ ノ( ゜-゜ノ)') |
OlderNewer