I hereby claim:
- I am oriolgual on github.
- I am oriolgual (https://keybase.io/oriolgual) on keybase.
- I have a public key ASBYUUGCVOTq29wGMNVCmEUXuMp8SGlcW1OqDiTYJta6JAo
To claim this, I am signing this object:
function agile_setAccount(b, a) { | |
agile_id.set(b, a); | |
agile_setEmailFromUrl() | |
} | |
function agile_setEmailFromUrl() { | |
if (window.location.href.search("fwd=cd") !== -1) { | |
try { | |
var a = decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURI("data").replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1")); | |
if (a) { |
source "https://www.rubygems.org" | |
ruby '2.2.4' | |
gem 'byebug' | |
gem 'capybara' | |
gem 'selenium-webdriver' |
version: '2' | |
services: | |
app: | |
command: bash -c "rm -f tmp/pids/server.pid && bundle install --path /bundle && bundle exec rails s -p 3000 -b '0.0.0.0'" | |
build: | |
context: . | |
args: | |
rails_env: development | |
volumes: | |
- .:/code |
def append_info_to_payload(payload) | |
super | |
payload[:remote_ip] = request.remote_ip | |
payload[:user_id] = current_user.try(:id) | |
payload[:organization_id] = current_organization.try(:id) | |
payload[:app] = current_organization.name | |
payload[:referer] = request.referer.to_s | |
payload[:request_id] = request.uuid | |
payload[:user_agent] = request.user_agent | |
payload[:xhr] = request.xhr? ? 'true' : 'false' |
{ | |
"age": { | |
"18-24": 82, | |
"25-34": 655, | |
"35-44": 210, | |
"45-54": 47, | |
"55+": 2 | |
}, | |
"position": { | |
"Developer": 485, |
module Decidim | |
class OrganizationComponents < Rectify::Query | |
def self.for(organization) | |
new(organization).query | |
end | |
def initialize(organization) | |
@organization = organization | |
end |
I hereby claim:
To claim this, I am signing this object:
# Add this to Core's QueryExtensions | |
module Decidim | |
module QueryExtensions | |
type.field :metrics, [Decidim::Core::MetricType] | |
argument :names, types[String], "The names of the metrics you want to retrieve" | |
resolve lambda { | _, args, ctx| | |
manifests = if args[:names].blank? | |
metrics_registry.all | |
else |
require "open-uri" | |
require "json" | |
if ARGV.length < 3 | |
puts "Usage: ruby circle-to-rspec.rb CIRCLE_CI_TOKEN RSPEC_STEP_NAME BUILD_URL" | |
puts "You can get your CircleCI token at https://circleci.com/account/api" | |
exit(0) | |
end | |
circle_token = ARGV[0] |
begin | |
require "open-uri" | |
require "nokogiri" | |
require "typhoeus" | |
rescue Exception | |
puts "Some gems are missing, run gem install nokogiri typhoeus" | |
exit(1) | |
end | |
links = %w( |