Here's what I did to get things working.
Yep, over at: https://developer.apple.com
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
I hereby claim:
To claim this, I am signing this object:
all_hypos = [ | |
[ "have perpetual cheese-breath", "sweat chocolate" ], | |
[ "be forced to eat blood for one year", "eat bugs for the rest of your life" ], | |
[ "always smell of poop", "look like a reptile" ] | |
] |
require 'rubygems' | |
require 'active_support/all' | |
class MyEngine < Object | |
class Configuration | |
include ActiveSupport::Configurable | |
def self.method_missing(meth, *args) | |
self.config.send meth, *args | |
end | |
end |
# untained_csv_each(File.open('my.csv'),'Date') do |row| | |
# # do something with row | |
# end | |
def untainted_csv_each(file,line_match,&block) | |
tmp_file = File.open(file.path+"-tmp","w+") | |
garbage_passed = false | |
file.each do |line| | |
garbage_passed = true if line =~ /^"(.*)#{line_match}"/ && !garbage_passed |
function wysiwymTslt(strKey) { | |
var locale = $('html').attr('lang'); | |
return { | |
'bold': { en: 'Bold', fr: '' }, | |
'italic': { en: 'Italic', fr: '' }, | |
'italics': { en: 'italics', fr: '' }, | |
'link': { en: 'Link', fr: '' }, | |
'blockquote': { en: 'Blockquote', fr: '' }, | |
'large_code_block': { en: 'Large Code Block', fr: '' }, | |
'quote': { en: 'Quote', fr: '' }, |
"first is fleet of foot/ the second believes in love/ the third is blue and the fourth is red/ when looked on from above/ the fifth is King presiding/ the sixth and seventh his fathers/ the eighth his crowned brother/ circling with the others/ who do they worship?"
"it cannot be held / but it can be broken / its eyes are everywhere / no one is above it / but not everyone is behind it / ..."
"riddle me this: / what is it that you can hold and keep, / but disappears as soon as you / pass it to another?"
class Foo | |
def hello | |
do_something_really_destructive! | |
end | |
protected | |
def bar | |
do_something_really_destructive! |
Delayed::Worker.logger = ActiveSupport::BufferedLogger.new("log/#{Rails.env}_delayed_jobs.log", Rails.logger.level) | |
Delayed::Worker.logger.auto_flushing = 1 | |
if caller.last =~ /.*\/script\/delayed_job:\d+$/ | |
Rails.logger = Delayed::Worker.logger | |
ActiveRecord::Base.logger = Delayed::Worker.logger | |
end |
<html> | |
<head> | |
<title>my title</title> | |
</head> | |
<body> | |
<script> | |
document.body.style.background = 'lightgreen'; | |
document.write("<div style='font-family:Arial,sans-serif;font-size:14pt;font-weight:bold;'>Hello, world! Isn't life great?</div>"); | |
</script> | |
<noscript> |