I hereby claim:
- I am prognostikos on github.
- I am prognostikos (https://keybase.io/prognostikos) on keybase.
- I have a public key ASCFuqFtBo3dqi365nkqVNF4X2vgD3v-9VF1s-jLBwzxZgo
To claim this, I am signing this object:
| require "active_support/security_utils" | |
| require "digest/sha2" | |
| require "openssl/hmac" | |
| require "uri" | |
| module Vipps | |
| # Validates webhook requests, documented at: | |
| # https://developer.vippsmobilepay.com/docs/APIs/webhooks-api/request-authentication/ | |
| # | |
| class ValidatesWebhook |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I thought of objects being like biological cells and/or individual computers on a network, only able to communicate with messages (so messaging came at the very beginning -- it took a while to see how to do messaging in a programming language efficiently enough to be useful) - Allen Kay
| /** | |
| * Angular needs to send the Rails CSRF token with each post request. | |
| * | |
| * Here we get the token from the meta tags (make sure <%= csrf_meta_tags %> | |
| * is present in your layout.) | |
| */ | |
| angular.module('myapp',[]). | |
| // configure our http requests to include the Rails CSRF token | |
| config(["$httpProvider", function(p) { | |
| var m = document.getElementsByTagName('meta'); |
| ----------------------------------------- | |
| Boilerplate code (in rails_app_root/lib) | |
| ----------------------------------------- | |
| module ContextAccessor | |
| def context | |
| Thread.current[:context] | |
| end | |
| end |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |