Skip to content

Instantly share code, notes, and snippets.

View solak's full-sized avatar

Tomasz Solak solak

  • Berlin, Germany
View GitHub Profile
{
"query":"search term",
"date_from":"1960-01-01",
"date_to":"2014-01-01",
"category_id":2
}

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:

def display_errors
controller.render format => resource.errors.extend(ErrorsRepresenter), :status => :unprocessable_entity
end
" 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*#'
{
"title": "Delivery staging",
"services": {
"query": {
"idQueue": [
1
],
"list": {
"0": {
"query": "",
# (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 = ""
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'