wofi --width=900 --height=500 --gtk-dark -a --allow-images --show drun
| import os | |
| import shutil | |
| assets_dir = './assets' | |
| journal_dir = './journals' | |
| pages_dir = './pages' | |
| to_delete_dir = './to_delete' | |
| def get_all_assets() -> list[str]: |
| /*** Publishing: Hide things that aren't very useful for a read-only view */ | |
| /** Hide page properties (public pages will always have public: true) */ | |
| .content .pre-block { display: none; } | |
| /** Title */ | |
| /* Make title non-editable */ | |
| #main-container .page-title { pointer-events: none; } | |
| /** Hide useless sidebar stuff */ |
You seem very stable mentally and emotionally, at least from the outside. Is that an accurate perception? Or is that just how you appear through the lens of social media?
It's possible that I am, but the way I see it, I might have less of an emotional dynamic range than some people, I definitely also oscillate between better and worse moods, but less intense highs and lows.
You track lots of things about yourself; do you also track your mood? And do you make an effort to fight it or to stabilize it, or do you just try to "go with the flow" and let your mood dictate your workflow?
I don't track my moods, but as my moods usually follow my tracked input/output, so moods can be inferred. I am happiest when I get to dedicate myself fully to any one task. So, that being said, tracking the way I do, can be seen as stabilizing my moods? I never have professional frustration, and I can very easily imagine that affecting my moods. To go with the flow, you have to be able to see the fl
| # To run $ sh perfect-loki.sh | |
| # update repositories | |
| sudo apt-get update | |
| # Removing apps | |
| echo '\n[?]Do you want to remove Epiphany Browser? [Y/n] ' | |
| read answer | |
| if echo "$answer" | grep -iq "^n" ;then | |
| echo '[>>>>>>>>>>>>>>>>>>>>] Not removing Epiphany Browser' |
It took me quite some time to figure out how to print properly from a web application. I will explain here how I did it, so you don't have to spend the same time.
Google Cloud Print API uses OAuth 2.0 for authorization.
As explained [here][1] on the Google Developer page, the best way to use OAuth with the Google API is with a Google service account. Create a service account as explained on the Google Developer page.
To use OAuth a library is required. Google has published the [Google API PHP client library][2]. If you want to use the examples from the Developer pages, you need to use version 1 of the library. In this article I use version 2 of the library.
epub.js is working on integrating Hypothesis into their reader. Although ePub content is HTML and therefore they can use Hypothesis' existing code for annotating web content, their reader is somewhat different than a typical web page and consequently the built-in method of scrolling to an annotation when the user selects it in the sidebar does not work.
epub.js' reader consists of viewer controls, with an <iframe> in the middle
of the page, which displays the HTML for the current chapter. The <iframe>
can be set to be the full height of the document.
The current integration works by embedding Hypothesis in the outer document,
and also loading Hypothesis into the <iframe> but only loading Annotator.Guest
in the <iframe> instead of the sidebar. The guest then connects to the
sidebar in the host document.
| [Desktop Entry] | |
| Version=1.0 | |
| Encoding=UTF-8 | |
| Name=Popcorn Time | |
| Name[en_US]=Popcorn Time | |
| GenericName=BitTorrent Stream Player | |
| GenericName[en_US]=BitTorrent Stream Player | |
| Comment=Run the Popcorn Time application | |
| Comment[en_US]=Run the Popcorn Time application | |
| Type=Application |
| /** | |
| * This class provides the URI, const values and some methods to work with TickTick's Content Provider. | |
| * | |
| * A guide is available on https://docs.google.com/document/d/1zo0JdIWnQWi-D0v7xikknEnsLj4RmrzOuqzScdR_tm8 | |
| */ | |
| public class TickTickProviderHelper { | |
| private static final Uri TASK_URI = Uri.parse("content://com.ticktick.task.data/tasks"); | |
| private static final Uri PROJECT_URI = Uri.parse("content://com.ticktick.task.data/tasklist"); | |
| private static final String TASK_CONTENT_ITEM_TYPE = "vnd.android.cursor.item/ticktick.task.task"; |