Skip to content

Instantly share code, notes, and snippets.

View gabu's full-sized avatar
Working from Sapporo

Shoya Tsukada gabu

Working from Sapporo
View GitHub Profile
SPP Bluetooth Library Started
Bluetooth Dongle Initialized
No response to HCI Reset
HCI Reset complete
Local Bluetooth Address: 00:1B:DC:0F:5B:4C
The name is set to: Arduino
Wait For Incoming Connection Request
Incoming Connection Request
Remote Name: SO-05D
Connected to Device: 20:54:76:33:DC:40
@itkrt2y
itkrt2y / association.rb
Last active July 11, 2024 11:53
Association dataloader with graphql-ruby
# official docs: https://graphql-ruby.org/dataloader/sources.html
# app/graphql/sources/association.rb
class Sources::Association < ::GraphQL::Dataloader::Source
def initialize(association_name, scope = nil)
@association_name = association_name
@scope = scope
end
def fetch(records)