I hereby claim:
- I am daniel-bytes on github.
- I am danielbytes (https://keybase.io/danielbytes) on keybase.
- I have a public key ASDCF74YZgZPz3I55FBxL-8uimfBWg5Lq0xwFBFPq0-hbAo
To claim this, I am signing this object:
| int main(int argc, const char* argv[]) | |
| { | |
| std::string input; | |
| SerialOsc osc("test", 13000); | |
| MonomeDemo device(&osc); | |
| while (input != "q") { | |
| std::cout << "type 'q' to quit." << std::endl; | |
| std::getline(std::cin, input); | |
| } |
| class MonomeDemo | |
| : public SerialOsc::Listener | |
| { | |
| public: | |
| MonomeDemo(SerialOsc *osc) | |
| : osc(osc) | |
| { | |
| osc->start(this); | |
| } |
| void SerialOsc::start(Listener *listener) | |
| { | |
| this->listener = listener; | |
| if (listener == nullptr || listenSocket != nullptr) { | |
| return; | |
| } | |
| for (int i = 0; i < portsToScan; i++) { | |
| int tempPort = listenPort + i; |
| class Product | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| include AASM | |
| field :name, type: String | |
| field :state, type: String | |
| field :price, type: Integer | |
| field :inventory, type: Integer, default: 0 |
| module Products | |
| class Update < Mutations::Command | |
| required do | |
| model :product | |
| integer :adjust_inventory | |
| end | |
| def validate | |
| if adjust_inventory == 0 | |
| return add_error(:adjust_inventory, :invalid, 'Inventory adjustment factory cannot be zero') |
| class StateTransitionEvent | |
| include Mongoid::Document | |
| include Mongoid::Timestamps::Created | |
| field :entity_type, type: String | |
| field :entity_id, type: BSON::ObjectId | |
| field :entity_attributes, type: Hash | |
| field :event, type: String | |
| field :from, type: String | |
| field :to, type: String |
| def publish_event(event, prefix: '') | |
| routing_key = build_routing_key(event, prefix) | |
| payload = build_event_payload(event) | |
| channel_pool.with do |channel| | |
| channel. | |
| topic(eventbus_exchange, durable: true). | |
| publish(payload, routing_key: routing_key) | |
| end | |
| end |
I hereby claim:
To claim this, I am signing this object:
| Engine_GendyTutorial : CroneEngine { | |
| var rez_x=100, rez_y=0.5, fill=50; | |
| var <synth; | |
| *new { arg context, doneCallback; | |
| ^super.new(context, doneCallback); | |
| } | |
| alloc { | |
| SynthDef(\GendyTutorial, {|inL, inR, out, rez_x=100, rez_y=0.5| |
| engine.name = "GendyTutorial" | |
| function init() | |
| -- map our supercollider controls to norns parameters | |
| params:add_control("x", controlspec.new(100,2000,"lin",0,0,"")) | |
| params:set_action("x", function(x) engine.x(x) end) | |
| params:add_control("y", controlspec.new(0.01, 1.0,"lin",0,0,"")) | |
| params:set_action("y", function(x) engine.y(x) end) | |