Skip to content

Instantly share code, notes, and snippets.

View solak's full-sized avatar

Tomasz Solak solak

  • Berlin, Germany
View GitHub Profile
class GooglePlayVerification
require 'google/api_client'
# Refer:
# https://code.google.com/p/google-api-ruby-client/issues/detail?id=72
# and
# http://jonathanotto.com/blog/google_oauth2_api_quick_tutorial.html
# and
# http://milancermak.wordpress.com/2012/08/24/server-side-verification-of-google-play-subsc/
GOOGLE_KEY = 'xxx-xxx.apps.googleusercontent.com'
# (create oauth2 tokens from Google Console)
client_id = ""
client_secret = ""
# (paste the scope of the service you want here)
# e.g.: https://www.googleapis.com/auth/gan
scope = ""
{
"title": "Delivery staging",
"services": {
"query": {
"idQueue": [
1
],
"list": {
"0": {
"query": "",
" folding settings
set foldtext='➫'
highlight Folded gui=none guibg=#002b36
highlight FoldColumn gui=none
autocmd FileType ruby,eruby
\ set foldmethod=expr |
\ set foldexpr=getline(v:lnum)=~'^\\s*#'
def display_errors
controller.render format => resource.errors.extend(ErrorsRepresenter), :status => :unprocessable_entity
end

Keybase proof

I hereby claim:

  • I am solak on github.
  • I am solak (https://keybase.io/solak) on keybase.
  • I have a public key whose fingerprint is 12DF 507B 928F BDE7 0578 C942 18A7 E3B1 839F 9CD2

To claim this, I am signing this object:

{
"query":"search term",
"date_from":"1960-01-01",
"date_to":"2014-01-01",
"category_id":2
}
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unter Drohnen</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
1960: 16
1943: 17
1940: 45
1949: 57
2089: 33
1968: 36
1965: 46
2104: 42
2143: 19
2077: 23
select
bookings.id,
host_total_including_fee,
guest_total_in_host_currency,
host_total,
guest_fee_in_host_currency,
host_fee,
guest_total,
guest_total_including_fee_without_voucher,
host_total_including_fee_in_guest_currency,