-
Add
Enable=Source
to /etc/bluetooth/audio.conf right after[General]
. -
Find address in form XX:XX:XX:XX:XX:XX of phone with
hcitool scan
. -
Pair and trust smartphone with
sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
andsudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
. -
Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink:
import javafx.animation.*; | |
import javafx.application.Application; | |
import javafx.beans.property.SimpleDoubleProperty; | |
import javafx.beans.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.collections.*; | |
import javafx.concurrent.*; | |
import javafx.event.*; | |
import javafx.geometry.*; | |
import javafx.scene.Scene; |
comment.block.antlr | |
comment.block.applescript | |
comment.block.bibtex | |
comment.block.c | |
comment.block.css | |
comment.block.d | |
comment.block.documentation | |
comment.block.documentation.javadoc | |
comment.block.documentation.js | |
comment.block.documentation.json |
Summary | How to control (or Understand) your GIST page's files list order. |
Notice | not official documentation. |
CertSimple just wrote a blog post arguing ES2017's async/await was the best thing to happen with JavaScript. I wholeheartedly agree.
In short, one of the (few?) good things about JavaScript used to be how well it handled asynchronous requests. This was mostly thanks to its Scheme-inherited implementation of functions and closures. That, though, was also one of its worst faults, because it led to the "callback hell", an seemingly unavoidable pattern that made highly asynchronous JS code almost unreadable. Many solutions attempted to solve that, but most failed. Promises almost did it, but failed too. Finally, async/await is here and, combined with Promises, it solves the problem for good. On this post, I'll explain why that is the case and trace a link between promises, async/await, the do-notation and monads.
First, let's illustrate the 3 styles by implementing
// based on https://users.cs.fiu.edu/~weiss/dsaa_c++4/code/AvlTree.h | |
#ifndef AVL_TREE_HEADER_MAIN | |
#define AVL_TREE_HEADER_MAIN | |
#include <algorithm> | |
#include <initializer_list> | |
#include <iostream> | |
#include <iterator> | |
#include <memory> |