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 Publisher < ActiveRecord::Base | |
include Rails.application.routes.url_helpers | |
default_url_options[:host] = Rails.application.config.host | |
belongs_to :application | |
serialize :options | |
validates_presence_of :application_id |
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
module Bar | |
class << self | |
attr_accessor :foo | |
end | |
class Foo | |
attr_accessor :foo | |
def initialize | |
@foo = "foo" | |
end |
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
var keyCodes = []; | |
$(document).keydown(function(e){ | |
keyCodes.push(e.keyCode); | |
if(keyCodes.toString().indexOf("38,38,40,40,37,39,37,39,66,65") >= 0){ | |
console.log('Yeaaaaaah!'); | |
$(document).unbind('keydown', arguments.callee); | |
var pid = 'pndmzxvqkl'; | |
var container = $('#copyright'); | |
$.getJSON('http://www.hark.com/clips/' + pid + '.json', function(data){ | |
var audio = $('<audio>').attr({ 'src': data.url, 'preload': 'auto' }); |
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
2011-11-16T13:54:13+00:00 app[app.1]: 16 Nov 13:54:13 - SEND: PONG :fugbot | |
2011-11-16T13:59:13+00:00 app[app.1]: 16 Nov 13:59:13 - SEND: PONG :fugbot | |
2011-11-16T14:04:13+00:00 app[app.1]: 16 Nov 14:04:13 - SEND: PONG :fugbot | |
2011-11-16T14:09:13+00:00 app[app.1]: 16 Nov 14:09:13 - SEND: PONG :fugbot | |
2011-11-16T14:14:13+00:00 app[app.1]: 16 Nov 14:14:13 - SEND: PONG :fugbot | |
2011-11-16T14:19:13+00:00 app[app.1]: 16 Nov 14:19:13 - SEND: PONG :fugbot | |
2011-11-16T14:24:13+00:00 app[app.1]: 16 Nov 14:24:13 - SEND: PONG :fugbot | |
2011-11-16T14:29:13+00:00 app[app.1]: 16 Nov 14:29:13 - SEND: PONG :fugbot | |
2011-11-16T14:34:13+00:00 app[app.1]: 16 Nov 14:34:13 - SEND: PONG :fugbot | |
2011-11-16T14:44:13+00:00 app[app.1]: 16 Nov 14:44:13 - SEND: PONG :fugbot |
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
= Ubuntu Natty 64 Server Vagrant Base Box | |
== Description | |
This is a Vagrant Base Box based upon the Ubuntu Natty 64 Server. It was built | |
according to the Vagrant Base Box building guide: | |
http://vagrantup.com/docs/base_boxes.html | |
This box's main characteristic is the use of Ruby 1.9.2 built from source. |
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
Traceback (most recent call last): | |
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/eventlet/wsgi.py", line 336, in handle_one_response | |
result = self.application(self.environ, start_response) | |
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 245, in __call__ | |
response = middleware_method(request, response) | |
File "/home/convore/convore/django_ext/middleware/log.py", line 30, in process_response | |
'trk': getattr(request, 'trk', None), | |
File "/home/convore/convore/django_ext/logging.py", line 27, in log_event | |
if has_session and request.user.is_authenticated(): | |
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/contrib/auth/middleware.py", line 9, in __get__ |
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
$ heroku logs | |
2011-10-28T12:50:03+00:00 app[app.1]: rooms: [ '383535' ], | |
2011-10-28T12:50:03+00:00 app[app.1]: account: 'hark1', | |
2011-10-28T12:50:03+00:00 app[app.1]: domain: 'hark1.campfirenow.com', | |
2011-10-28T12:50:03+00:00 app[app.1]: authorization: 'Basic N2FlZWRjMjAzMGNiODFkZTg3NDQxNDJhYjk2ZGMwZThkOTI1ODFlMDp4' } | |
2011-10-28T12:50:03+00:00 app[app.1]: /^CommityMcBot:?\s*(calc|calculate|convert|math)( me)? (.*)/i | |
2011-10-28T12:50:03+00:00 app[app.1]: /^CommityMcBot:?\s*keep (.*) alive$/i | |
2011-10-28T12:50:03+00:00 app[app.1]: /^CommityMcBot:?\s*don'?t keep (.*) alive$/i | |
2011-10-28T12:50:03+00:00 app[app.1]: /^CommityMcBot:?\s*what are you keeping alive/i |
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
javascript:(function(){var img = document.createElement('img'); img.src = "/css-refresh?" + Date.now(); var h,a,f;a=document.getElementsByTagName('link');for(h=0;h<a.length;h++){f=a[h];if(f.rel.toLowerCase().match(/stylesheet/)&&f.href){var g=f.href.replace(/(&|%5C?)forceReload=\d+/,'');f.href=g+(g.match(/\?/)?'&':'?')+'forceReload='+(new Date().valueOf())}};})() |
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
*.notice;authpriv,remoteauth,ftp,install,internal.none /var/log/system.log | |
kern.* /var/log/kernel.log | |
# Send messages normally sent to the console also to the serial port. | |
# To stop messages from being sent out the serial port, comment out this line. | |
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail.crit /dev/tty.serial | |
# The authpriv log file should be restricted access; these | |
# messages shouldn't go to terminals or publically-readable | |
# files. |
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
module Paperclip | |
class Watermark < Processor | |
## | |
# A Paperclip::Processor for watermarking images with imagemagick's | |
# composite command. | |
# | |
# Place this code in lib/paperclip_processors/watermark.rb or into a Rails initializer. | |
# | |
# Example: All orginal files are resized to be at most 480 pixels in |