Skip to content

Instantly share code, notes, and snippets.

View elmacnifico's full-sized avatar

Paul H. Müller elmacnifico

View GitHub Profile
Date Country Clicks Installs Sessions Daily Active Users Monthly Active Users
2014-08-20 de 1
2014-08-20 de 6
2014-08-20 de 2
2014-08-20 de 26
2014-08-20 no 1
2014-08-20 tr 1
2014-08-20 vn 1
2014-08-20 ae 2 31 13 93
2014-08-20 al 11
<html>
<head
</head>
<body>
<img src="" id="graph"/>
<script>
var myImageElement = document.getElementById("graph");
var url = "http://graph.adjust.io/render";
function render(){
myImageElement.src = url+window.location.search+"&rand="+Math.random();
/Users/phm/.rvm/gems/ruby-1.9.3-p125@jekyll/gems/rubypython-0.5.3/lib/rubypython/rubypyproxy.rb:198:in `method_missing': ClassNotFound: no lexer for alias 'Array```.' found (RubyPython::PythonError)
from /Users/phm/.rvm/gems/ruby-1.9.3-p125@jekyll/gems/pygments.rb-0.2.12/lib/pygments/ffi.rb:135:in `lexer_for'
from /Users/phm/.rvm/gems/ruby-1.9.3-p125@jekyll/gems/pygments.rb-0.2.12/lib/pygments/ffi.rb:91:in `highlight'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/pygments_code.rb:24:in `pygments'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/pygments_code.rb:14:in `highlight'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/backtick_code_block.rb:37:in `block in render_code_block'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/backtick_code_block.rb:13:in `gsub'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/backtick_code_block.rb:13:in `render_code_block'
from /Users/phm/Projekte/adeven/adeven.github.com/plugins/octopress_filters.rb:12:in `pre_fi
@elmacnifico
elmacnifico / gist:1226437
Created September 19, 2011 12:52
redis member stuff
class Poller
def self.call(env)
if env["PATH_INFO"] =~ /^\/pictures\/viewed/
request = Rack::Request.new(env)
params = request.params
$redis.sadd('views', [params['uuid'], params['pic_id']])
[200, {"Content-Type" => "text/json"}, ["OK"]]
else
[404, {"Content-Type" => "text/html"}, ["Not Found"]]