I hereby claim:
- I am makefunstuff on github.
- I am swks (https://keybase.io/swks) on keybase.
- I have a public key ASCfA8L6PnpiHPUBVLxAdCuUcvRKlnO6LEpRbYoH6n0l4Ao
To claim this, I am signing this object:
| // reference: https://gist.github.com/msmshazan/dfd5362004be37ff5e016b6a42be5083 | |
| package d3d11_triangle | |
| import "core:strings" | |
| import "core:runtime" | |
| import "core:fmt" | |
| import "core:sys/windows" | |
| import d3d11 "vendor:directx/d3d11" | |
| import dxgi "vendor:directx/dxgi" | |
| import d3dc "vendor:directx/d3d_compiler" |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <mpg123.h> | |
| #include <alsa/asoundlib.h> | |
| #define PCM_DEVICE "default" | |
| int main(int argc, char *argv[]) { | |
| if (argc < 2) { | |
| printf("Usage: %s <mp3 file>\n", argv[0]); |
| call plug#begin() | |
| Plug 'drewtempelmeyer/palenight.vim' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'wlangstroth/vim-racket' | |
| Plug 'sheerun/vim-polyglot' | |
| Plug 'rust-lang/rust.vim' | |
| Plug 'preservim/tagbar' | |
| Plug 'universal-ctags/ctags' | |
| Plug 'luochen1990/rainbow' | |
| Plug 'vim-syntastic/syntastic' |
| #!/bin/bash | |
| set -e | |
| CURRENT_NAME="CurrentName" | |
| CURRENT_OTP="current_name" | |
| NEW_NAME="NewName" | |
| NEW_OTP="new_name" |
I hereby claim:
To claim this, I am signing this object:
| def FlowExample do | |
| def process(tickets_batch) do | |
| customer_flow = create_customer_flow(tickets_batch) | |
| messages_flow = create_messages_flow(tickets_batch) | |
| Flow.bounded_join(:inner, | |
| customer_flow, | |
| messages_flow, | |
| &(&1.number), | |
| &(&1.number), |
| defmodule NaiveSolution do | |
| def process(tickets_batch) do | |
| tickets | |
| |> Enum.map(&async_process/1) | |
| |> Enum.map(&Task.await/1) | |
| end | |
| def async_process(ticket) do | |
| Task.async fn() -> | |
| ticket |
| [ | |
| %OurImportModule.Ticket{ | |
| id: 23, | |
| imported: false, | |
| title: "Awesome ticket", | |
| messages_url: "http://ticket-api.com/23/messages, | |
| customer_url: "https://ticket-api.com/23/customer | |
| }, | |
| ... | |
| ] |
I hereby claim:
To claim this, I am signing this object:
| Bot.on :message do |message| | |
| if message.quick_reply && message.quick_reply.match?('time') | |
| message.reply(text: 'Thank you I will notify you very soon, have a good and productive day!') | |
| end | |
| if message.quick_reply && message.quick_reply == 'setup_started' | |
| User.find_or_create_by(facebook_id: message.sender['id']) | |
| message.reply( | |
| text: 'When should I ask you about your day?', |