This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Layer tap requires a basic keycode, so LT(1,CW_TOGG) doesn't | |
| // work. Work around this by intercepting a valid keycode (here | |
| // I arbitrarily chose the left shift key) with this handler. | |
| bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
| switch (keycode) { | |
| case LT(1,KC_LSFT): | |
| // Layer tap with shift key invokes caps word. | |
| if (record->tap.count && record->event.pressed) { | |
| caps_word_toggle(); | |
| return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ** 2011 March 16 | |
| ** | |
| ** The author disclaims copyright to this source code. In place of | |
| ** a legal notice, here is a blessing: | |
| ** | |
| ** May you do good and not evil. | |
| ** May you find forgiveness for yourself and forgive others. | |
| ** May you share freely, never taking more than you give. | |
| ** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.hc.core5.http.*; | |
| import org.apache.hc.core5.http.impl.bootstrap.AsyncServer; | |
| import org.apache.hc.core5.http.impl.bootstrap.AsyncServerBootstrap; | |
| import org.apache.hc.core5.http.message.BasicHttpResponse; | |
| import org.apache.hc.core5.http.nio.AsyncRequestConsumer; | |
| import org.apache.hc.core5.http.nio.AsyncServerRequestHandler; | |
| import org.apache.hc.core5.http.nio.entity.NoopEntityConsumer; | |
| import org.apache.hc.core5.http.nio.ssl.BasicServerTlsStrategy; | |
| import org.apache.hc.core5.http.nio.ssl.FixedPortStrategy; | |
| import org.apache.hc.core5.http.nio.support.BasicRequestConsumer; |