Skip to content

Instantly share code, notes, and snippets.

@pihentagy
pihentagy / main.dart
Created Aug 26, 2021
yielding from deep
View main.dart
void subsub() {
print("I need to yield here"); // how to yield here?
}
String sub() {
subsub();
return "stuff";
}
Stream<String> greeter() async* {
@pihentagy
pihentagy / obsidian.css
Created Oct 9, 2020
Clutter free edit mode
View obsidian.css
/* inline formatting, link targets and [[ ]] disappears if not active line*/
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-string.cm-url,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-link,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hmd-barelink,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-comment
{ display: none; }
/* hide all html tags -- IT IS COMMENTED OUT BY DEFAULT */
/* div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-tag{ display: none; } */
@pihentagy
pihentagy / bash-debug.sh
Created Jun 26, 2014
Bash command trace to file
View bash-debug.sh
# bash -x to file
exec 99>/tmp/mylogfile
BASH_XTRACEFD=99 # magic bash environment variable
set -o xtrace # start tracing from here onward