I hereby claim:
- I am asux on github.
- I am asux (https://keybase.io/asux) on keybase.
- I have a public key whose fingerprint is 28C1 659A 5D5C 1D14 992B 6C32 D849 8251 A425 E31E
To claim this, I am signing this object:
# frozen_string_literal: true | |
module Bl | |
module Core | |
module Logic | |
class SortCollection | |
include Dry::Monads::Result::Mixin | |
include Dry::Monads::Validated::Mixin | |
include Dry::Monads::List::Mixin | |
include Dry::Monads::Do::All |
# frozen_string_literal: true | |
module Bl | |
module Core | |
module Logic | |
class SortCollection | |
include Dry::Monads::Result::Mixin | |
ALLOWED_ORDER_BY = %i[created_at updated_at rating votes_count last_activity_date answers_count].freeze | |
ALLOWED_ORDER_DIRS = %i[asc desc].freeze |
curl -v https://www.lumosity.com/ 2.4.1 | |
* Trying 52.3.47.247... | |
* TCP_NODELAY set | |
* Connected to www.lumosity.com (52.3.47.247) port 443 (#0) | |
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | |
* Server certificate: *.lumosity.com | |
* Server certificate: RapidSSL SHA256 CA | |
* Server certificate: GeoTrust Global CA | |
> GET / HTTP/1.1 | |
> Host: www.lumosity.com |
I hereby claim:
To claim this, I am signing this object:
Simple API design for WebGroup.
Store has categories and products beloned to. Each product may has several tags.
All api calls returns data as JSON or XML. You must set Accept
header to determine response format, eg Accept: application/json
.
If unsupported format given, server returns 406 Not acceptable
.
def with_visitor | |
@depth = @depth.to_i + 1 | |
@visitor ||= Interface::Millennial::Visitor.new(self) | |
yield @visitor | |
@visitor | |
ensure | |
@depth = @depth - 1 | |
if @visitor and @depth == 0 | |
@visitor.finish if @visitor | |
@visitor = nil |
group :development do | |
gem 'capistrano' | |
gem 'capistrano_colors' | |
gem 'capistrano-unicorn',require: false | |
gem 'capistrano-deploy', require: false | |
gem 'rvm-capistrano', require: false | |
gem 'sextant' | |
gem 'awesome_print' | |
gem 'quiet_assets' |
#!/usr/bin/env ruby | |
# /usr/local/bin/open_subl | |
require 'cgi' | |
require 'uri' | |
begin | |
query = CGI.parse(URI.parse(ARGV.first).query) | |
url = query['url'].first | |
file = URI.parse(url).path | |
line = query['line'].first | |
column = query['column'].first |
# Go back to the last commit that we want to form the initial commit (detach HEAD) | |
git checkout <sha1_for_B> | |
# reset the branch pointer to the initial commit, | |
# but leaving the index and working tree intact. | |
git reset --soft <sha1_for_A> | |
# amend the initial tree using the tree from 'B' | |
git commit --amend |
#!/sbin/runscript | |
### BEGIN INIT INFO | |
# Provides: thin | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: thin initscript | |
# Description: thin | |
### END INIT INFO |