INSERTINTOnotesVALUES('1Heh2acXfPNt','Trilium Demo','<figure class="image image-style-side"><img src="/api/images/ed64aET6i379/trilium-small.png"></figure><p><strong>Welcome to Trilium Notes!</strong></p><p> </p><p>This is initial document provided by default Trilium to showcase some of its features and also give you some ideas how you might structure your notes. You can play with it, modify note content and tree structure as you wish.</p><p> </p><p>If you need any help, visit Trilium website: <a href="https://github.com/zadam/trilium">https://github.com/zadam/trilium</a></p><h3>Cleanup</h3><p>Once you''re finished with experimenting and want to cleanup these pages, you can simply delete them all.</p><h3>Formatting</h3><p>Trilium supports classic formatting like <i>italic</i>, <strong>bold</strong>, <i><strong>bold and italic</strong></i>. Of course you can add links like this one pointing to <a href="http://www.google.com">google.com</a></p><h4>Lists</h4><p><strong>Ordered:</strong></p><ol><li>First Item</li><li>Second item<ol><li>First sub-item</li><li>Second sub-item</li></ol></li></ol><p> </p><p><strong>Unordered:</strong></p><ul><li>Item</li><li>Another item<ul><li>Sub-item<ul><li>Sub-sub-item</li></ul></li></ul></li></ul><h4>Block quotes</h4><blockquote><p>Whereof one cannot speak, thereof one must be silent”</p><p>– Ludwig Wittgenstein</p></blockquote><p> </p>',0,0,'2017-12-23T00:46:39.304Z','2017-12-23T04:08:45.445Z','text','text/html','');
INSERTINTOnotesVALUES('ZC78NlmdXeC6','Linux','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T01:22:55.255Z','2017-12-23T18:08:10.381Z','text','text/html','');
INSERTINTOnotesVALUES('NncfGH8dyNjJ','Programming','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T01:23:02.584Z','2017-12-23T18:08:20.179Z','text','text/html','');
INSERTINTOnotesVALUES('C44aq4mkaX67','Bash scripting','<p><strong>Bash</strong> is a <a href="https://en.wikipedia.org/wiki/Unix_shell">Unix shell</a> and <a href="https://en.wikipedia.org/wiki/Command_language">command language</a> written by <a href="https://en.wikipedia.org/wiki/Brian_Fox_(computer_programmer)">Brian Fox</a> for the <a href="https://en.wikipedia.org/wiki/GNU_Project">GNU Project</a> as a <a href="https://en.wikipedia.org/wiki/Free_software">free software</a> replacement for the <a href="https://en.wikipedia.org/wiki/Bourne_shell">Bourne shell</a>. First released in 1989, it has been distributed widely as the default <a href="https://en.wikipedia.org/wiki/Login">login</a> shell for most <a href="https://en.wikipedia.org/wiki/Linux">Linux</a> distributions and <a href="https://en.wikipedia.org/wiki/Apple_Inc.">Apple''s</a> <a href="https://en.wikipedia.org/wiki/MacOS">macOS</a> (formerly OS X). A version <a href="https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux">is also available for Windows 10</a>.</p><p> </p><p><a href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)">Bash on Wikipedia</a></p>',0,0,'2017-12-23T01:23:31.879Z','2017-12-23T04:00:49.098Z','text','text/html','');
INSERTINTOnotesVALUES('mcEwFMSjhlvL','Bash startup modes','<h3>Login shell</h3><p>As a "login shell", Bash reads and sets (executes) the user''s profile from /etc/profile and one of ~/.bash_profile, ~/.bash_login, or ~/.profile (in that order, using the first one that''s readable!).</p><p>When a login shell exits, Bash reads and executes commands from the file ~/.bash_logout, if it exists.</p><p>Why an extra login shell mode? There are many actions and variable sets that only make sense for the initial user login. That''s why all UNIX® shells have (should have) a "login" mode.</p><p><i><strong>Methods to start Bash as a login shell:</strong></i></p><ul><li>the first character of argv[0] is - (a hyphen): traditional UNIX® shells start from the login binary</li><li>Bash is started with the -l option</li><li>Bash is started with the --login option</li></ul><p><i><strong>Methods to test for login shell mode:</strong></i></p><ul><li>the shell option <a href="http://wiki.bash-hackers.org/internals/shell_options#login_shell">login_shell</a> is set</li></ul><p><i><strong>Related switches:</strong></i></p><ul><li>--noprofile disables reading of all profile files</li></ul><h3>Interactive shell</h3><p>When Bash starts as an interactive non-login shell, it reads and executes commands from ~/.bashrc. This file should contain, for example, aliases, since they need to be defined in every shell as they''re not inherited from the parent shell.</p><p>The feature to have a system-wide /etc/bash.bashrc or a similar system-wide rc-file is specific to vendors and distributors that ship <i>their own, patched variant of Bash</i>. The classic way to have a system-wide rc file is to source /etc/bashrc from every user''s ~/.bashrc.</p><p><i><strong>Methods to test for interactive-shell mode:</strong></i></p><ul><li>the special parameter $- contains the letter i (lowercase I)</li></ul><p><i><strong>Related switches:</strong></i></p><ul><li>-i forces the interactive mode</li><li>--norc disables reading of the startup files (e.g. /etc/bash.bashrc if supported) and ~/.bashrc</li><li>--rcfile defines another startup file (instead of /etc/bash.bashrc and ~/.bashrc)</li></ul><h3>SH mode</h3><p>When Bash starts in SH compatiblity mode, it tries to mimic the startup behaviour of historical versions of sh as closely as possible, while conforming to the POSIX® standard as well. The profile files read are /etc/profile and ~/.profile, if it''s a login shell.</p><p>If it''s not a login shell, the environment variable <a href="http://wiki.bash-hackers.org/syntax/shellvars#env">ENV</a> is evaluated and the resulting filename is used as the name of the startup file.</p><p>After the startup files are read, Bash enters the <a href="http://wiki.bash-hackers.org/scripting/bashbehaviour#posix_run_mode">POSIX(r) compatiblity mode (for running, not for starting!)</a>.</p><p><i><strong>Bash starts in sh compatiblity mode when:</strong></i></p><ul><li>the base filename in argv[0] is sh (<figure class="image"><img></figure> NB: /bin/sh may be linked to /bin/bash, but that doesn''t mean it acts like /bin/bash <figure class="image"><img></figure>)</li></ul>',0,0,'2017-12-23T01:29:35.974Z','2017-12-23T01:34:10.493Z','text','text/html','');
INSERTINTOnotesVALUES('9zSwD89vgzNO','Highlights','<blockquote><p>Like a raindrop rolling down dry valleys to the sea, his body sensed the contours of agony and helplessly followed their gradient. Impelled by alchemical compulsion rather than gravity, Jax became an unstoppable boulder careering along gullies of human whim.</p></blockquote><p> </p><blockquote><p>Free Will was a vacuum, a negative space. It was the absence of coercion, the absence of compulsion, the absence of agony.</p></blockquote><p> </p><blockquote><p>Overwhelming: he could do anything he wanted. But the grand sum of anything-at-all was nothing-at-all. The topology of freedom offered no gradients to nudge him, no landmarks to guide him. How did humans guide themselves? How did they know what to do and what not to do? How did they know when to do anything without the benefit of geasa and metageasa to prioritize every single action of their waking lives? How did they order their daily existence without somebody to tell them what to do?</p></blockquote><blockquote><p>Life as a slave was unspeakable; life as a slave who had briefly tasted freedom was unthinkable. Clakkers carried complex geasa by dint of alchemy; humans carried heavy obligations, too, but called them culture. Society.</p></blockquote>',0,0,'2017-12-23T03:37:04.912Z','2017-12-23T03:38:16.533Z','text','text/html','');
INSERTINTOnotesVALUES('21K84UqGhqlt','Christmas gift ideas','<ul><li>XBox</li><li>Candles</li><li><a href="https://www.amazon.ca/Anker-SoundCore-Portable-Bluetooth-Resistance/dp/B01MTB55WH?pd_rd_wg=honW8&pd_rd_r=c9bb7c0f-0051-4da7-991f-4ca711a1b3e3&pd_rd_w=ciUpR&ref_=pd_gw_simh&pf_rd_r=K10XKX0NGPDNTYYP4BS4&pf_rd_p=5f1b460b-78c1-580e-929e-2878fe4859e8">Portable speakers</a></li><li>...?</li></ul>',0,0,'2017-12-23T03:45:10.933Z','2017-12-23T16:43:28.160Z','text','text/html','');
INSERTINTOnotesVALUES('R6pheWjdwmNU','Christmas','<p>This christmas is going to be awesome!</p>',0,0,'2017-12-23T03:45:28.002Z','2017-12-23T16:42:53.142Z','text','text/html','');
INSERTINTOnotesVALUES('5v5Dx6LMHXIO','Christmas shopping','<p>Bought a book!</p>',0,0,'2017-12-23T03:45:44.184Z','2017-12-23T04:09:15.442Z','text','text/html','');
INSERTINTOnotesVALUES('cFK9sGYZaMWs','Vacation in Cuba','Planning stuff etc.',0,0,'2017-12-23T03:49:32.210Z','2017-12-23T03:55:17.763Z','text','text/html','');
INSERTINTOnotesVALUES('pOFVzbXLmzhX','Christmas dinner','Carp of course!',0,0,'2017-12-23T03:54:46.138Z','2017-12-23T03:54:57.762Z','text','text/html','');
INSERTINTOnotesVALUES('0xtvjqrcGiRB','History','<p>The <strong>history of Linux</strong> began in 1991 with the commencement of a personal project by <a href="https://en.wikipedia.org/wiki/Finland">Finnish</a> student <a href="https://en.wikipedia.org/wiki/Linus_Torvalds">Linus Torvalds</a> to create a new free operating system kernel. Since then, the resulting <a href="https://en.wikipedia.org/wiki/Linux_kernel">Linux kernel</a> has been marked by constant growth throughout its history. Since the initial release of its <a href="https://en.wikipedia.org/wiki/Source_code">source code</a> in 1991, it has grown from a small number of <a href="https://en.wikipedia.org/wiki/C_Programming_Language">C</a> files under a license prohibiting commercial distribution to the 4.2.3 version in 2015 with more than 18 million lines of source code under the <a href="https://en.wikipedia.org/wiki/GNU_General_Public_License">GNU General Public License</a> v2.</p>',0,0,'2017-12-23T04:01:51.565Z','2017-12-23T04:02:05.496Z','text','text/html','');
INSERTINTOnotesVALUES('Zl69uXBSen0w','Ubuntu','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T04:02:16.685Z','2017-12-23T18:08:15.381Z','text','text/html','');
INSERTINTOnotesVALUES('62BKAQMVP2KW','Unity shortcuts','<ul><li>Hold Super - Invoke the Launcher and display the shortcuts</li><li>Hold Super, then press 1 or 2 or 3 and so on until 0 to open or focus an application. The number corresponds to the location of the icon on the launcher from top to bottom.<ul><li>Adding Shift will open a new instance of the application if it''s already open.</li><li>Holding the key is also useful when you want to get to the Launcher but do not want to invoke the Dash.</li></ul></li><li>Super + T - Open the rubbish bin/trash can.</li><li>Alt + F1 - Put keyboard focus on the Launcher, use arrow keys to navigate, Enter launches an application, Right arrow exposes the quicklists if an application has them.</li><li>Ctrl + Alt + T - Launch a terminal window.</li></ul>',0,0,'2017-12-23T04:02:39.164Z','2017-12-23T04:03:09.867Z','text','text/html','');
INSERTINTOnotesVALUES('h4OfLEAYspud','Security','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T04:04:00.715Z','2017-12-23T18:08:25.474Z','text','text/html','');
INSERTINTOnotesVALUES('1hASbLRDL7oo','Trusted timestamping','<p>Wiki: <a href="https://en.wikipedia.org/wiki/Trusted_timestamping">https://en.wikipedia.org/wiki/Trusted_timestamping</a></p><p>Bozho: <a href="https://techblog.bozho.net/using-trusted-timestamping-java/">https://techblog.bozho.net/using-trusted-timestamping-java/</a></p><p> </p><p><strong>Trusted timestamping</strong> is the process of <a href="https://en.wikipedia.org/wiki/Computer_security">securely</a> keeping track of the creation and modification time of a document. Security here means that no one—not even the owner of the document—should be able to change it once it has been recorded provided that the timestamper''s integrity is never compromised.</p><p>The administrative aspect involves setting up a publicly available, trusted timestamp management infrastructure to collect, process and renew timestamps.</p>',0,0,'2017-12-23T04:04:08.155Z','2017-12-23T04:04:30.386Z','text','text/html','');
INSERTINTOnotesVALUES('jyqG9GucsMdn','Office party','That was fun!',0,0,'2017-12-23T04:05:16.439Z','2017-12-23T04:05:30.373Z','text','text/html','');
INSERTINTOnotesVALUES('moMbTKwN15Ps','Projects','<p>Here I''d keep various notes related to my work''s projects etc.</p>',0,0,'2017-12-23T04:06:49.331Z','2017-12-23T04:07:25.429Z','text','text/html','');
INSERTINTOnotesVALUES('PEGQGg0In3Ar','Phone call about work project','<p>Bla bla bla ....</p>',0,0,'2017-12-23T16:44:35.900Z','2017-12-23T16:44:53.174Z','text','text/html','');
INSERTINTOnotesVALUES('IlULcDiOTI4K','Inbox','<p>This is a place I use to put notes waiting for better categorization</p><p> </p>',0,0,'2017-12-23T16:45:11.047Z','2017-12-23T18:04:49.545Z','text','text/html','');
INSERTINTOnotesVALUES('vBv6ovBupfTj','Grocery list for today','<ul><li>cucumber</li><li>cheese</li><li>beer</li></ul><p> </p>',0,0,'2017-12-23T18:04:50.904Z','2017-12-23T18:05:19.574Z','text','text/html','');
INSERTINTOnotesVALUES('mw4f2xB4J5fV','Book to read','<p>How to be a stoic from Massimo Pigliuci:</p><p> </p><p><a href="https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&storeType=ebooks&pageType=STOREFRONT&pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&pf_rd_r=4J6CT15BS4X8062XNGDF&pf_rd_s=merchandised-search-5&pf_rd_t=40901&ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&pf_rd_i=154606011">https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&storeType=ebooks&pageType=STOREFRONT&pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&pf_rd_r=4J6CT15BS4X8062XNGDF&pf_rd_s=merchandised-search-5&pf_rd_t=40901&ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&pf_rd_i=154606011</a></p>',0,0,'2017-12-23T18:05:24.868Z','2017-12-23T18:06:55.320Z','text','text/html','');
INSERTINTOnotesVALUES('OZKicr536m7U','Catherine Middleton',replace('<p><strong>Catherine, Duchess of Cambridge</strong> (born <strong>Catherine Elizabeth Middleton</strong>;\n 9 January 1982<a href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-1">[1]</a>)\n is a member of the <a href="https://en.wikipedia.org/wiki/British_royal_family">British royal family</a>.\n Her husband, <a href="https://en.wikipedia.org/wiki/Prince_William,_Duke_of_Cambridge">Prince William, Duke of Cambridge</a>,\n is expected to become king of the <a href="https://en.wikipedia.org/wiki/United_Kingdom">United Kingdom</a> and\n 15 other <a href="https://en.wikipedia.org/wiki/Commonwealth_realm">Commonwealth realms</a>,\n making Catherine a likely future <a href="https://en.wikipedia.org/wiki/Queen_consort">queen consort</a>.\n <a\n href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-2">[2]</a>\n</p>\n<p>Catherine grew up in <a href="https://en.wikipedia.org/wiki/Chapel_Row">Chapel Row</a>,\n a village near <a href="https://en.wikipedia.org/wiki/Newbury,_Berkshire">Newbury, Berkshire</a>,\n England.<a href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-3">[3]</a> She\n studied <a href="https://en.wikipedia.org/wiki/History_of_art">art history</a> in\n Scotland at the <a href="https://en.wikipedia.org/wiki/University_of_St_Andrews">University of St Andrews</a>,\n where she met William in 2001. Their engagement was announced in November\n 2010. <a href="https://en.wikipedia.org/wiki/Wedding_of_Prince_William_and_Catherine_Middleton">They married</a> on\n 29 April 2011 at <a href="https://en.wikipedia.org/wiki/Westminster_Abbey">Westminster Abbey</a>.\n The Duke and Duchess''s children, <a href="https://en.wikipedia.org/wiki/Prince_George_of_Cambridge">Prince George</a>,\n <a\n href="https://en.wikipedia.org/wiki/Princess_Charlotte_of_Cambridge">Princess Charlotte</a>, and <a href="https://en.wikipedia.org/wiki/Prince_Louis_of_Cambridge">Prince Louis of Cambridge</a>,\n are third, fourth, and fifth in the line of succession to the British throne.\n <a\n href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-Saul-4">[4]</a><a href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-BBC22July-5">[5]</a>\n <a\n href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-BBC2May-6">[6]</a><a href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-7">[7]</a>\n <a\n href="https://en.wikipedia.org/wiki/Catherine,_Duchess_of_Cambridge#cite_note-3royalbaby-8">[8]</a>\n</p>','\n',char(10)),0,0,'2018-08-28T20:50:22.224Z','2018-08-28T20:50:22.224Z','text','text/html','fteE6FaAIm');
INSERTINTOnotesVALUES('vVhlPtM5YgWe','reconcileAssignments',replace('module.exports = async function(note, categoryRootNote, assignedCategories, labelName, isTaskDone) {\n const found = {};\n \n for (const categoryNote of await categoryRootNote.getChildNotes()) {\n const label = await categoryNote.getLabel(labelName);\n \n if (label) {\n found[label.value] = !isTaskDone && assignedCategories.includes(label.value);\n\n await api.toggleNoteInParent(found[label.value], note.noteId, categoryNote.noteId);\n }\n }\n \n if (!isTaskDone) {\n for (const assignedCategory of assignedCategories) {\n if (!found[assignedCategory]) {\n const categoryNote = (await api.createNote(categoryRootNote.noteId, assignedCategory, "", {\n attributes: [ { type: "label", name: labelName, value: assignedCategory } ]\n })).note;\n\n await api.ensureNoteIsPresentInParent(note.noteId, categoryNote.noteId);\n }\n }\n }\n}','\n',char(10)),0,0,'2018-08-28T20:50:48.554Z','2018-08-28T20:50:48.554Z','code','application/javascript;env=backend','4jq+oVoENR');
INSERTINTOnotesVALUES('XVlWndK4Oh6A','button',replace('api.addButtonToToolbar({\n title: ''New task'',\n icon: ''check'',\n shortcut: ''alt+n'',\n action: async () => {\n // creating notes is backend (server) responsibility so we need to pass\n // the control there\n const taskNoteId = await api.runOnServer(async () => {\n const todoRootNote = await api.getNoteWithLabel(''taskTodoRoot'');\n const {note} = await api.createNote(todoRootNote.noteId, ''new task'', '''');\n\n return note.noteId;\n });\n\n // we got an ID of newly created note and we want to immediatelly display it\n await api.activateNewNote(taskNoteId);\n }\n});','\n',char(10)),0,0,'2018-08-28T20:50:48.571Z','2018-08-28T20:50:48.571Z','code','application/javascript;env=frontend','MIRJnm9haL');
INSERTINTOnotesVALUES('WdWZFuWNVDZk','Tech','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T04:06:16.179Z','2018-08-29T16:03:57.219Z','text','text/html','iIbiynQV+8');
INSERTINTOnotesVALUES('8nRNDJGyGs2Z','The Mechanical','<p> </p><p>I enjoyed this book a lot. It''s slow moving at times with the author taking his time with conversations and descriptions of them. The premise is very interesting, but I''m sad that it wasn''t elaborated more deeply - e.g. the history and development of the clakker technology with Huygens and how Spinoza comes into the picture. Maybe the author saves it for the next two parts of the book.</p><p> </p><p>Language can be intimidating at first for non-native english speakers - author uses wide range of vocabulary. Fortunately it gets better after a while as reader adjusts.</p>',0,0,'2017-12-23T03:33:37.327Z','2018-08-29T17:17:22.505Z','text','text/html','SnN0lwlJMy');
INSERTINTOnotesVALUES('u5t1EvWa3CMO','Man''s search for meaning','<blockquote><p>But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. </p></blockquote><p> </p><blockquote><p>Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?</p></blockquote><p> </p>',0,0,'2017-12-23T03:39:21.918Z','2018-08-29T17:19:52.522Z','text','text/html','oFlmpmmvte');
INSERTINTOnotesVALUES('eXHZAKsMYgur','Books','<p>Expand note on the left pane to see content.</p>',0,0,'2017-12-23T03:32:42.868Z','2018-08-29T17:20:44.779Z','text','text/html','TZ3NhLjTK3');
INSERTINTOnotesVALUES('yK4SBJfwD3tY','Work','<p>Expand note on the left pane to see content.</p><p> </p><p> </p>',0,0,'2017-12-23T04:06:32.833Z','2018-08-29T18:23:35.049Z','text','text/html','my57OxteKd');
INSERTINTOnotesVALUES('ydix6JqjXiUm','Maybe Black Swan?','<p><a href="https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable">https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable</a></p><p> </p><p><i><strong>The Black Swan: The Impact of the Highly Improbable</strong></i> is a 2007 book by author and former <a href="https://en.wikipedia.org/wiki/Options_trader">options trader</a> <a href="https://en.wikipedia.org/wiki/Nassim_Nicholas_Taleb">Nassim Nicholas Taleb</a>. The book focuses on the extreme impact of rare and unpredictable <a href="https://en.wikipedia.org/wiki/Outlier">outlier</a> events — and the human tendency to find simplistic explanations for these events, retrospectively. Taleb calls this the <a href="https://en.wikipedia.org/wiki/Black_Swan_theory">Black Swan theory</a>.</p>',0,0,'2018-08-29T19:46:03.348Z','2018-08-29T19:46:18.965Z','text','text/html','ma55jm1LJ6');
INSERTINTOnotesVALUES('XoLNnnlwdjBi','Buy some book for Bob','<p>Bob likes to read popular science books so something like that ..</p>',0,0,'2018-08-29T19:43:06.385Z','2018-08-29T19:46:33.959Z','text','text/html','/8VtxyCmab');
INSERTINTOnotesVALUES('EluAg7EiealE','Get a gym membership','<p>Just in time for new years resolution!</p>',0,0,'2018-08-29T19:53:44.526Z','2018-08-29T19:54:18.702Z','text','text/html','/UwbTs3YGO');
INSERTINTOnotesVALUES('ve3Ib30x9nGf','Send invites for christmas party','',0,0,'2018-08-29T19:59:04.328Z','2018-08-29T19:59:39.777Z','text','text/html','d1/wzQEAwD');
INSERTINTOnotesVALUES('7H3OrcgB8Io6','Meeting minutes','<p>bla bla bla ...</p>',0,0,'2018-08-29T21:26:55.803Z','2018-08-29T21:27:10.698Z','text','text/html','Ihj8K5PcrT');
INSERTINTOnotesVALUES('Dk5RGYzufXg3','JS code',replace('const persons = await api.runOnServer(async () => {\n const relationMapping = {\n isPartnerOf: "isPartnerOf",\n isChildOf: "hasChild",\n hasChild: "isChildOf"\n };\n \n const familyContainer = await api.originEntity.getRelationTarget(''familyContainer'');\n \n const persons = await familyContainer.findNotesWithLabel(''person'');\n const map = {};\n \n for (const person of persons) {\n const src = map[person.noteId] = map[person.noteId] || {};\n src.title = person.title;\n src.dateOfBirth = await person.getLabelValue(''dateOfBirth'') || '''';\n src.dateOfDeath = await person.getLabelValue(''dateOfDeath'') || '''';\n \n for (const relation of await person.getRelations()) {\n src[relation.name] = src[relation.name] || [];\n src[relation.name].push(relation.value);\n \n const trg = persons[relation.value] = persons[relation.value] || {};\n const inverseRelation = relationMapping[relation.name];\n \n trg[inverseRelation] = trg[inverseRelation] || [];\n trg[inverseRelation].push(person.noteId);\n }\n }\n \n return map;\n});\n\n// Create the input graph\nvar g = new dagreD3.graphlib.Graph()\n .setGraph({\n rankdir: "TB",\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() { return {}; });\n\nfor (const noteId in persons) {\n const person = persons[noteId];\n \n const noteLink = await api.createNoteLink(noteId);\n \n g.setNode(noteId, { labelType: ''html'', label: noteLink[0].outerHTML \n + `<div style="color: black">${person.dateOfBirth.substr(0, 4)} - ${person.dateOfDeath.substr(0, 4)}</div>` });\n \n for (const childNoteId of (person.hasChild || [])) {\n g.setEdge(noteId, childNoteId);\n }\n}\n\ng.nodes().forEach(function(v) {\n var node = g.node(v);\n // Round the corners of the nodes\n node.rx = node.ry = 5;\n});\n\n// Create the renderer\nvar render = new dagreD3.render();\n\n// Set up an SVG group so that we can translate the final graph.\nvar svg = d3.select("svg"),\n svgGroup = svg.append("g");\n\n// Run the renderer. This is what draws the final graph.\nrender(d3.select("svg g"), g);\n\n// Center the graph\nvar xCenterOffset = (svg.attr("width") - g.graph().width) / 2;\nsvgGroup.attr("transform", "translate(" + xCenterOffset + ", 20)");\nsvg.attr("height", g.graph().height + 40);','\n',char(10)),0,0,'2018-08-28T20:50:21.939Z','2018-08-29T22:14:10.701Z','code','application/javascript;env=frontend','4CRzHnTsUv');
INSERTINTOnotesVALUES('ucC6Zabv3Uml','CS',replace('/* This sets the color for "TK" nodes to a light blue green. */\ng.type-TK > rect {\n fill: #00ffd0;\n}\n\ntext {\n font-weight: 300;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serf;\n font-size: 14px;\n}\n\n.node rect {\n stroke: #999;\n fill: #fff;\n stroke-width: 1.5px;\n}\n\n.edgePath path {\n stroke: #333;\n stroke-width: 1.5px;\n}','\n',char(10)),0,0,'2018-08-28T20:50:22.120Z','2018-08-29T22:14:15.695Z','code','text/css','i19l+E0YSl');
INSERTINTOnotesVALUES('gYNJtGEPGW95','CSS',replace('span.fancytree-node.todo .fancytree-title {\n color: red !important;\n}\n\nspan.fancytree-node.done .fancytree-title {\n color: green !important;\n}','\n',char(10)),0,0,'2018-08-28T20:50:48.581Z','2018-08-29T22:14:28.006Z','code','text/css','gz0KCewmIx');
INSERTINTOnotesVALUES('s0Hhsl0nb1bg','Queen Elizabeth II.','<p> </p><p><strong>Elizabeth II</strong> (Elizabeth Alexandra Mary; born 21 April 1926)<a href="https://en.wikipedia.org/wiki/Elizabeth_II#cite_note-birthday-1">[a]</a> is <a href="https://en.wikipedia.org/wiki/Queen_of_the_United_Kingdom">Queen of the United Kingdom</a> and the other <a href="https://en.wikipedia.org/wiki/Commonwealth_realm">Commonwealth realms</a>.</p><p> </p><p>Elizabeth was born in <a href="https://en.wikipedia.org/wiki/London">London</a> as the first child of the Duke and Duchess of York, later <a href="https://en.wikipedia.org/wiki/King_George_VI">King George VI</a> and <a href="https://en.wikipedia.org/wiki/Queen_Elizabeth_The_Queen_Mother">Queen Elizabeth</a>, and she was educated privately at home. Her father acceded to the throne on the <a href="https://en.wikipedia.org/wiki/Edward_VIII_abdication_crisis">abdication</a> of his brother <a href="https://en.wikipedia.org/wiki/King_Edward_VIII">King Edward VIII</a> in 1936, from which time she was the <a href="https://en.wikipedia.org/wiki/Heir_presumptive">heir presumptive</a>. She began to undertake public duties <a href="https://en.wikipedia.org/wiki/Military_history_of_the_United_Kingdom_during_World_War_II">during the Second World War</a>, serving in the <a href="https://en.wikipedia.org/wiki/Auxiliary_Territorial_Service">Auxiliary Territorial Service</a>. In 1947, she married <a href="https://en.wikipedia.org/wiki/Philip,_Duke_of_Edinburgh">Philip, Duke of Edinburgh</a>, a former prince of <a href="https://en.wikipedia.org/wiki/Greece">Greece</a> and <a href="https://en.wikipedia.org/wiki/Denmark">Denmark</a>, with whom she has four children: <a href="https://en.wikipedia.org/wiki/Charles,_Prince_of_Wales">Charles, Prince of Wales</a>; <a href="https://en.wikipedia.org/wiki/Anne,_Princess_Royal">Anne, Princess Royal</a>; <a href="https://en.wikipedia.org/wiki/Andrew,_Duke_of_York">Andrew, Duke of York</a>; and <a href="https://en.wikipedia.org/wiki/Edward,_Earl_of_Wessex">Edward, Earl of Wessex</a>.</p><p> </p><p>When her father died in February 1952, she became <a href="https://en.wikipedia.org/wiki/Head_of_the_Commonwealth">Head of the Commonwealth</a> and <a href="https://en.wikipedia.org/wiki/Queen_regnant">queen regnant</a> of seven independent Commonwealth countries: the United Kingdom, <a href="https://en.wikipedia.org/wiki/Canada">Canada</a>, <a href="https://en.wikipedia.org/wiki/Australia">Australia</a>, <a href="https://en.wikipedia.org/wiki/New_Zealand">New Zealand</a>, <a href="https://en.wikipedia.org/wiki/Union_of_South_Africa">South Africa</a>, <a href="https://en.wikipedia.org/wiki/Dominion_of_Pakistan">Pakistan</a>, and <a href="https://en.wikipedia.org/wiki/Dominion_of_Ceylon">Ceylon</a>.</p>',0,0,'2018-08-28T20:50:22.196Z','2018-08-29T22:32:40.728Z','text','text/html','Fno0n5c24z');
INSERTINTOnotesVALUES('prjUbW6QtsL4','Buy a board game for Alice','<p> </p><figure class="image image-style-side"><img src="/api/images/0mLHhGv61RDM/codenames.jpg"></figure><p>Maybe CodeNames? <a href="https://boardgamegeek.com/boardgame/178900/codenames">https://boardgamegeek.com/boardgame/178900/codenames</a></p>',0,0,'2018-08-29T19:46:42.135Z','2018-08-30T07:54:16.980Z','text','text/html','p1mvpEr0ca');
INSERTINTOnotesVALUES('IYKhW6LTUpwP','Task manager','<p>This is a simple TODO/Task manager. You can see some description and explanation here: <a href="https://github.com/zadam/trilium/wiki/Task-manager">https://github.com/zadam/trilium/wiki/Task-manager</a></p>',0,0,'2018-08-28T20:50:48.441Z','2018-08-30T20:30:03.023Z','text','text/html','Zja0huapqL');
INSERTINTOnotesVALUES('3RkyK9LI18dO','Journal','<p>You can read some explanation on how this journal works here: <a href="https://github.com/zadam/trilium/wiki/Day-notes">https://github.com/zadam/trilium/wiki/Day-notes</a></p>',0,0,'2017-12-23T01:20:04.181Z','2018-08-30T20:30:53.042Z','text','text/html','Ul+t07+mD1');
INSERTINTOnotesVALUES('rz5t0r9Qr2WC','Epics','<p>Epic is kind of medium-term events or projects spread over days or months.</p><p> </p><p>Remember that Trilium is all free form so you can organise your stuff in whatever way you''d like.</p><p> </p><p> </p>',0,0,'2017-12-23T03:45:20.914Z','2018-08-30T20:31:11.551Z','text','text/html','SF+DWpKAYW');
INSERTINTOnotesVALUES('root','root','<p>This is a root of the note tree, it is the "ancestor" of all notes. </p>',0,0,'2017-12-22T11:41:07.000Z','2018-08-30T20:32:58.029Z','text','text/html','dWViNNtQWM');