I hereby claim:
- I am samacs on github.
- I am samacs (https://keybase.io/samacs) on keybase.
- I have a public key ASC91Jfd2B3qg3G5ZZSR2jCzkDi8EVTuRGaBVmtJhTGk-Qo
To claim this, I am signing this object:
module Searchable | |
extend ActiveSupport::Concern | |
included do | |
scope :filtered, lambda { |values| | |
current = all | |
filters.each do |key, method| | |
if values.try(:key?, key) | |
current = current.send(method, values[key]) if | |
curent.respond_to?(method) |
#!/bin/bash | |
RUBY_VERSION=2.4.1 | |
RAILS_VERSION=5.1.4 | |
PB_VERSION=9.6 | |
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7 | |
apt-add-repository multiverse |
I hereby claim:
To claim this, I am signing this object:
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
I have a gRPC server exposing three services:
// cmd/account/main.go
func main () {
service := micro.NewService(
micro.Name("io.coderoso.srv.v1.account"),
)
accountHandler := handler.NewAccountHandler()
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"sort" | |
"strconv" | |
"strings" |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// Language: Go | |
// | |
// Running: |
package main | |
import "fmt" | |
// Language: Go | |
// | |
// Running: | |
// | |
// Assuming `elements := []int{1, 2, 3, 4}` | |
// |
{ | |
"units": [ | |
{ | |
"id": "dc5f57a0-7c4a-4fb1-9958-c8ca4be5f257", | |
"price": 27.5, | |
"name": "108", | |
"description": "Air Cooled, Heated, Light in Unit, Stacked Space, 3rd floor", | |
"width": 5, | |
"length": 5, | |
"height": 8, |
// 20190529183835 | |
// https://jsonplaceholder.typicode.com/posts | |
[ | |
{ | |
"userId": 1, | |
"id": 1, | |
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", | |
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto" | |
}, |