trilium/db/main_notes.sql

107 lines
4.1 MiB
MySQL
Raw Normal View History

2018-08-29 05:36:28 +08:00
INSERT INTO notes VALUES('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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</p>',0,0,'2017-12-23T00:46:39.304Z','2017-12-23T04:08:45.445Z','text','text/html','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('eouCLkjbruai','Java','',0,0,'2017-12-23T01:23:28.291Z','2017-12-23T01:23:31.944Z','text','text/html','');
INSERT INTO notes VALUES('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>&nbsp;</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','');
INSERT INTO notes VALUES('I6Cw88AirBBl','While loop',replace('<p>Documentation: <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html</a></p><p>&nbsp;</p><p>#!/bin/bash\n\n</p><p># This script opens 4 terminal windows.\n\n</p><p>&nbsp;</p><p>i="0"\n\n</p><p>while [ $i -lt 4 ]\n</p><p>do\n</p><p>&nbsp; &nbsp; xterm &amp;\n</p><p>&nbsp; &nbsp; i=$[$i+1]\n</p><p>done</p>','\n',char(10)),0,0,'2017-12-23T01:24:04.681Z','2017-12-23T01:26:07.786Z','text','text/html','');
INSERT INTO notes VALUES('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>&nbsp;NB: /bin/sh may be linked to /bin/bash, but that doesn''t mean it acts like /bin/bash&nbsp;<figure class="image"><img></figure>)</li></ul>',0,0,'2017-12-23T01:29:35.974Z','2017-12-23T01:34:10.493Z','text','text/html','');
INSERT INTO notes VALUES('CF2lUIJAr6Ey','Python','',0,0,'2017-12-23T01:34:37.658Z','2017-12-23T01:34:40.465Z','text','text/html','');
INSERT INTO notes VALUES('xkXwueRoDNeN','Christmas shopping','<p>&nbsp;</p>',0,0,'2017-12-23T01:35:40.306Z','2017-12-23T16:43:08.157Z','text','text/html','');
INSERT INTO notes VALUES('2WU27ekfy07E','To read','<p>Checkout Kindle daily deals: <a href="https://www.amazon.com/gp/feature.html?docId=1000677541">https://www.amazon.com/gp/feature.html?docId=1000677541</a></p><p>&nbsp;</p><ul><li>Cixin Liu - <a href="https://www.amazon.com/Dark-Forest-Remembrance-Earths-Past/dp/0765386690/ref=pd_bxgy_14_img_2?_encoding=UTF8&amp;pd_rd_i=0765386690&amp;pd_rd_r=AB0J179TM9NTEAMHE240&amp;pd_rd_w=FAhxX&amp;pd_rd_wg=pLGK7&amp;psc=1&amp;refRID=AB0J179TM9NTEAMHE240">The Dark Forest</a></li><li>Ann Leckie - <a href="https://www.amazon.com/Ancillary-Sword-Imperial-Radch-Leckie/dp/0316246654/ref=pd_sim_14_1?_encoding=UTF8&amp;pd_rd_i=0316246654&amp;pd_rd_r=D7KDTGZFP7YM1YSYVY4G&amp;pd_rd_w=jkn28&amp;pd_rd_wg=JVhtw&amp;psc=1&amp;refRID=D7KDTGZFP7YM1YSYVY4G">Ancillary Sword</a></li></ul>',0,0,'2017-12-23T03:32:49.379Z','2017-12-23T03:59:01.970Z','text','text/html','');
INSERT INTO notes VALUES('TjWEndYCCg7g','Reviews','',0,0,'2017-12-23T03:33:23.584Z','2017-12-23T03:33:35.089Z','text','text/html','');
INSERT INTO notes VALUES('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>&nbsp;</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>&nbsp;</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','');
INSERT INTO notes VALUES('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&amp;pd_rd_r=c9bb7c0f-0051-4da7-991f-4ca711a1b3e3&amp;pd_rd_w=ciUpR&amp;ref_=pd_gw_simh&amp;pf_rd_r=K10XKX0NGPDNTYYP4BS4&amp;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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('MLQjmREtcnJ3','Shopping','',0,0,'2017-12-23T03:47:48.208Z','2017-12-23T03:47:51.917Z','text','text/html','');
INSERT INTO notes VALUES('pTTjrxgnvURB','Vacation days','<p>25. 12., 26. 12., 1. 1. - statutory holidays</p><p>27. 12. - 29. 12., 2. 1. - vacation days</p>',0,0,'2017-12-23T03:47:55.932Z','2017-12-23T03:49:46.419Z','text','text/html','');
INSERT INTO notes VALUES('cFK9sGYZaMWs','Vacation in Cuba','Planning stuff etc.',0,0,'2017-12-23T03:49:32.210Z','2017-12-23T03:55:17.763Z','text','text/html','');
INSERT INTO notes VALUES('pOFVzbXLmzhX','Christmas dinner','Carp of course!',0,0,'2017-12-23T03:54:46.138Z','2017-12-23T03:54:57.762Z','text','text/html','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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>&nbsp;</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','');
INSERT INTO notes VALUES('jyqG9GucsMdn','Office party','That was fun!',0,0,'2017-12-23T04:05:16.439Z','2017-12-23T04:05:30.373Z','text','text/html','');
INSERT INTO notes VALUES('r4BnsmSQeVr1','HR','<p>HR stuff&nbsp;</p>',0,0,'2017-12-23T04:06:37.427Z','2017-12-23T16:42:23.145Z','text','text/html','');
INSERT INTO notes VALUES('QbL3pTvhgzM8','Processes','<p>No content.</p><p>&nbsp;</p>',0,0,'2017-12-23T04:06:43.841Z','2017-12-23T16:42:15.893Z','text','text/html','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('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','');
INSERT INTO notes VALUES('IlULcDiOTI4K','Inbox','<p>This is a place I use to put notes waiting for better categorization</p><p>&nbsp;</p>',0,0,'2017-12-23T16:45:11.047Z','2017-12-23T18:04:49.545Z','text','text/html','');
INSERT INTO notes VALUES('vBv6ovBupfTj','Grocery list for today','<ul><li>cucumber</li><li>cheese</li><li>beer</li></ul><p>&nbsp;</p>',0,0,'2017-12-23T18:04:50.904Z','2017-12-23T18:05:19.574Z','text','text/html','');
INSERT INTO notes VALUES('mw4f2xB4J5fV','Book to read','<p>How to be a stoic from Massimo Pigliuci:</p><p>&nbsp;</p><p><a href="https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&amp;storeType=ebooks&amp;pageType=STOREFRONT&amp;pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&amp;pf_rd_r=4J6CT15BS4X8062XNGDF&amp;pf_rd_s=merchandised-search-5&amp;pf_rd_t=40901&amp;ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&amp;pf_rd_i=154606011">https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&amp;storeType=ebooks&amp;pageType=STOREFRONT&amp;pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&amp;pf_rd_r=4J6CT15BS4X8062XNGDF&amp;pf_rd_s=merchandised-search-5&amp;pf_rd_t=40901&amp;ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&amp;pf_rd_i=154606011</a></p>',0,0,'2017-12-23T18:05:24.868Z','2017-12-23T18:06:55.320Z','text','text/html','');
INSERT INTO notes VALUES('gDrEI7LFWqrP','Family Tree','<svg id="svg" width=960 height=600></svg>',0,0,'2018-08-28T20:50:21.928Z','2018-08-28T20:50:21.928Z','render','text/html','MCQaiN6h8N');
INSERT INTO notes VALUES('N029F9ANGn8b','d3',X'2f2f2068747470733a2f2f64336a732e6f72672056657273696f6e20352e352e302e20436f707972696768742032303138204d696b6520426f73746f636b2e0a2866756e6374696f6e2028676c6f62616c2c20666163746f727929207b0a09747970656f66206578706f727473203d3d3d20276f626a6563742720262620747970656f66206d6f64756c6520213d3d2027756e646566696e656427203f20666163746f7279286578706f72747329203a0a09747970656f6620646566696e65203d3d3d202766756e6374696f6e2720262620646566696e652e616d64203f20646566696e65285b276578706f727473275d2c20666163746f727929203a0a0928666163746f72792828676c6f62616c2e6433203d20676c6f62616c2e6433207c7c207b7d2929293b0a7d28746869732c202866756e6374696f6e20286578706f72747329207b202775736520737472696374273b0a0a7661722076657273696f6e203d2022352e352e30223b0a0a66756e6374696f6e20617363656e64696e6728612c206229207b0a202072657475726e2061203c2062203f202d31203a2061203e2062203f2031203a2061203e3d2062203f2030203a204e614e3b0a7d0a0a66756e6374696f6e206269736563746f7228636f6d7061726529207b0a202069662028636f6d706172652e6c656e677468203d3d3d20312920636f6d70617265203d20617363656e64696e67436f6d70617261746f7228636f6d70617265293b0a202072657475726e207b0a202020206c6566743a2066756e6374696f6e28612c20782c206c6f2c20686929207b0a202020202020696620286c6f203d3d206e756c6c29206c6f203d20303b0a202020202020696620286869203d3d206e756c6c29206869203d20612e6c656e6774683b0a2020202020207768696c6520286c6f203c20686929207b0a2020202020202020766172206d6964203d206c6f202b206869203e3e3e20313b0a202020202020202069662028636f6d7061726528615b6d69645d2c207829203c203029206c6f203d206d6964202b20313b0a2020202020202020656c7365206869203d206d69643b0a2020202020207d0a20202020202072657475726e206c6f3b0a202020207d2c0a2020202072696768743a2066756e6374696f6e28612c20782c206c6f2c20686929207b0a202020202020696620286c6f203d3d206e756c6c29206c6f203d20303b0a202020202020696620286869203d3d206e756c6c29206869203d20612e6c656e6774683b0a2020202020207768696c6520286c6f203c20686929207b0a2020202020202020766172206d6964203d206c6f202b206869203e3e3e20313b0a202020202020202069662028636f6d7061726528615b6d69645d2c207829203e203029206869203d206d69643b0a2020202020202020656c7365206c6f203d206d6964202b20313b0a2020202020207d0a20202020202072657475726e206c6f3b0a202020207d0a20207d3b0a7d0a0a66756e6374696f6e20617363656e64696e67436f6d70617261746f72286629207b0a202072657475726e2066756e6374696f6e28642c207829207b0a2020202072657475726e20617363656e64696e6728662864292c2078293b0a20207d3b0a7d0a0a76617220617363656e64696e67426973656374203d206269736563746f7228617363656e64696e67293b0a766172206269736563745269676874203d20617363656e64696e674269736563742e72696768743b0a766172206269736563744c656674203d20617363656e64696e674269736563742e6c6566743b0a0a66756e6374696f6e2070616972732861727261792c206629207b0a20206966202866203d3d206e756c6c292066203d20706169723b0a20207661722069203d20302c206e203d2061727261792e6c656e677468202d20312c2070203d2061727261795b305d2c207061697273203d206e6577204172726179286e203c2030203f2030203a206e293b0a20207768696c65202869203c206e292070616972735b695d203d206628702c2070203d2061727261795b2b2b695d293b0a202072657475726e2070616972733b0a7d0a0a66756e6374696f6e207061697228612c206229207b0a202072657475726e205b612c20625d3b0a7d0a0a66756e6374696f6e2063726f73732876616c756573302c2076616c756573312c2072656475636529207b0a2020766172206e30203d2076616c756573302e6c656e6774682c0a2020202020206e31203d2076616c756573312e6c656e6774682c0a20202020202076616c756573203d206e6577204172726179286e30202a206e31292c0a20202020202069302c0a20202020202069312c0a202020202020692c0a20202020202076616c7565303b0a0a202069662028726564756365203d3d206e756c6c2920726564756365203d20706169723b0a0a2020666f7220286930203d2069203d20303b206930203c206e303b202b2b693029207b0a20202020666f72202876616c756530203d2076616c756573305b69305d2c206931203d20303b206931203c206e313b202b2b69312c202b2b6929207b0a20202020202076616c7565735b695d203d207265647563652876616c7565302c2076616c756573315b69315d293b0a202020207d0a20207d0a0a202072657475726e2076616c7565733b0a7d0a0a66756e6374696f6e2064657363656e64696e6728612c206229207b0a202072657475726e2062203c2061203f202d31203a2062203e2061203f2031203a2062203e3d2061203f203020
INSERT INTO notes VALUES('bFTtwsnNgw9T','dagreD3',X'2866756e6374696f6e2866297b696628747970656f66206578706f7274733d3d3d226f626a656374222626747970656f66206d6f64756c65213d3d22756e646566696e656422297b6d6f64756c652e6578706f7274733d6628297d656c736520696628747970656f6620646566696e653d3d3d2266756e6374696f6e222626646566696e652e616d64297b646566696e65285b5d2c66297d656c73657b76617220673b696628747970656f662077696e646f77213d3d22756e646566696e656422297b673d77696e646f777d656c736520696628747970656f6620676c6f62616c213d3d22756e646566696e656422297b673d676c6f62616c7d656c736520696628747970656f662073656c66213d3d22756e646566696e656422297b673d73656c667d656c73657b673d746869737d672e64616772654433203d206628297d7d292866756e6374696f6e28297b76617220646566696e652c6d6f64756c652c6578706f7274733b72657475726e202866756e6374696f6e206528742c6e2c72297b66756e6374696f6e2073286f2c75297b696628216e5b6f5d297b69662821745b6f5d297b76617220613d747970656f6620726571756972653d3d2266756e6374696f6e222626726571756972653b69662821752626612972657475726e2061286f2c2130293b696628692972657475726e2069286f2c2130293b76617220663d6e6577204572726f72282243616e6e6f742066696e64206d6f64756c652027222b6f2b222722293b7468726f7720662e636f64653d224d4f44554c455f4e4f545f464f554e44222c667d766172206c3d6e5b6f5d3d7b6578706f7274733a7b7d7d3b745b6f5d5b305d2e63616c6c286c2e6578706f7274732c66756e6374696f6e2865297b766172206e3d745b6f5d5b315d5b655d3b72657475726e2073286e3f6e3a65297d2c6c2c6c2e6578706f7274732c652c742c6e2c72297d72657475726e206e5b6f5d2e6578706f7274737d76617220693d747970656f6620726571756972653d3d2266756e6374696f6e222626726571756972653b666f7228766172206f3d303b6f3c722e6c656e6774683b6f2b2b297328725b6f5d293b72657475726e20737d29287b313a5b66756e6374696f6e28726571756972652c6d6f64756c652c6578706f727473297b0a2f2a2a0a202a20406c6963656e73650a202a20436f707972696768742028632920323031322d3230313320436872697320506574746974740a202a0a202a205065726d697373696f6e20697320686572656279206772616e7465642c2066726565206f66206368617267652c20746f20616e7920706572736f6e206f627461696e696e67206120636f70790a202a206f66207468697320736f66747761726520616e64206173736f63696174656420646f63756d656e746174696f6e2066696c657320287468652022536f66747761726522292c20746f206465616c0a202a20696e2074686520536f66747761726520776974686f7574207265737472696374696f6e2c20696e636c7564696e6720776974686f7574206c696d69746174696f6e20746865207269676874730a202a20746f207573652c20636f70792c206d6f646966792c206d657267652c207075626c6973682c20646973747269627574652c207375626c6963656e73652c20616e642f6f722073656c6c0a202a20636f70696573206f662074686520536f6674776172652c20616e6420746f207065726d697420706572736f6e7320746f2077686f6d2074686520536f6674776172652069730a202a206675726e697368656420746f20646f20736f2c207375626a65637420746f2074686520666f6c6c6f77696e6720636f6e646974696f6e733a0a202a0a202a205468652061626f766520636f70797269676874206e6f7469636520616e642074686973207065726d697373696f6e206e6f74696365207368616c6c20626520696e636c7564656420696e0a202a20616c6c20636f70696573206f72207375627374616e7469616c20706f7274696f6e73206f662074686520536f6674776172652e0a202a0a202a2054484520534f4654574152452049532050524f564944454420224153204953222c20574954484f55542057415252414e5459204f4620414e59204b494e442c2045585052455353204f520a202a20494d504c4945442c20494e434c5544494e4720425554204e4f54204c494d4954454420544f205448452057415252414e54494553204f46204d45524348414e544142494c4954592c0a202a204649544e45535320464f52204120504152544943554c415220505552504f534520414e44204e4f4e494e4652494e47454d454e542e20494e204e4f204556454e54205348414c4c205448450a202a20415554484f5253204f5220434f5059524947485420484f4c44455253204245204c4941424c4520464f5220414e5920434c41494d2c2044414d41474553204f52204f544845520a202a204c494142494c4954592c205748455448455220494e20414e20414354494f4e204f4620434f4e54524143542c20544f5254204f52204f54484552574953452c2041524953494e472046524f4d2c0a202a204f5554204f46204f5220494e20434f4e4e454354494f4e20574954482054484520534f465457415245204f522054484520555345204f52204f54484552204445414c494e475320494e0a202a2054484520534f4654574152452e0a202a2f0a6d6f64756c652e6578706f727473203d20207b0a202067726170686c69623a2072657175697
INSERT INTO notes VALUES('YULCKCrWJJZ6','Members','',0,0,'2018-08-28T20:50:22.174Z','2018-08-28T20:50:22.174Z','text','text/html','j06mJ+DdSI');
INSERT INTO notes VALUES('wHb2YBwhjxiD','King George VI.','',0,0,'2018-08-28T20:50:22.180Z','2018-08-28T20:50:22.180Z','text','text/html','05ZGftq366');
INSERT INTO notes VALUES('cUYFEvsdY6N6','Queen Elizabeth','',0,0,'2018-08-28T20:50:22.185Z','2018-08-28T20:50:22.185Z','text','text/html','OSYGkfGRQj');
INSERT INTO notes VALUES('8APXN4n4Hnb8','Prince Phillip','',0,0,'2018-08-28T20:50:22.191Z','2018-08-28T20:50:22.191Z','text','text/html','NZaKcnIGv3');
INSERT INTO notes VALUES('baafKkgNGYLm','Prince Charles','',0,0,'2018-08-28T20:50:22.201Z','2018-08-28T20:50:22.201Z','text','text/html','uB3Pzx81AP');
INSERT INTO notes VALUES('Ab7WuV47mQOf','Princess Diana','',0,0,'2018-08-28T20:50:22.208Z','2018-08-28T20:50:22.208Z','text','text/html','GN/I0AU343');
INSERT INTO notes VALUES('w7t110kWsK8e','Prince William','',0,0,'2018-08-28T20:50:22.214Z','2018-08-28T20:50:22.214Z','text','text/html','U2C+eB7DMK');
INSERT INTO notes VALUES('at7bZyjJfIrM','Prince Harry','',0,0,'2018-08-28T20:50:22.218Z','2018-08-28T20:50:22.218Z','text','text/html','oVDOoJAVO+');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('oato1D7kuNU2','Prince George','',0,0,'2018-08-28T20:50:22.230Z','2018-08-28T20:50:22.230Z','text','text/html','tWjA2mGn4f');
INSERT INTO notes VALUES('C1I7GPA8ORO4','Princess Charlotte','',0,0,'2018-08-28T20:50:22.235Z','2018-08-28T20:50:22.235Z','text','text/html','Cs0Agwx2FB');
INSERT INTO notes VALUES('gQNQaMBzRYdb','Prince Louis','',0,0,'2018-08-28T20:50:22.240Z','2018-08-28T20:50:22.240Z','text','text/html','87qHgMt8/5');
INSERT INTO notes VALUES('HgaAwBX5zVcP','chartjs',X'2f2a210a202a2043686172742e6a730a202a20687474703a2f2f63686172746a732e6f72672f0a202a2056657273696f6e3a20322e372e320a202a0a202a20436f7079726967687420323031382043686172742e6a7320436f6e7472696275746f72730a202a2052656c656173656420756e64657220746865204d4954206c6963656e73650a202a2068747470733a2f2f6769746875622e636f6d2f63686172746a732f43686172742e6a732f626c6f622f6d61737465722f4c4943454e53452e6d640a202a2f0a2166756e6374696f6e2874297b696628226f626a656374223d3d747970656f66206578706f727473262622756e646566696e656422213d747970656f66206d6f64756c65296d6f64756c652e6578706f7274733d7428293b656c7365206966282266756e6374696f6e223d3d747970656f6620646566696e652626646566696e652e616d6429646566696e65285b5d2c74293b656c73657b2822756e646566696e656422213d747970656f662077696e646f773f77696e646f773a22756e646566696e656422213d747970656f6620676c6f62616c3f676c6f62616c3a22756e646566696e656422213d747970656f662073656c663f73656c663a74686973292e43686172743d7428297d7d2866756e6374696f6e28297b72657475726e2066756e6374696f6e207428652c692c6e297b66756e6374696f6e2061286f2c73297b69662821695b6f5d297b69662821655b6f5d297b766172206c3d2266756e6374696f6e223d3d747970656f6620726571756972652626726571756972653b696628217326266c2972657475726e206c286f2c2130293b696628722972657475726e2072286f2c2130293b76617220753d6e6577204572726f72282243616e6e6f742066696e64206d6f64756c652027222b6f2b222722293b7468726f7720752e636f64653d224d4f44554c455f4e4f545f464f554e44222c757d76617220643d695b6f5d3d7b6578706f7274733a7b7d7d3b655b6f5d5b305d2e63616c6c28642e6578706f7274732c66756e6374696f6e2874297b76617220693d655b6f5d5b315d5b745d3b72657475726e206128697c7c74297d2c642c642e6578706f7274732c742c652c692c6e297d72657475726e20695b6f5d2e6578706f7274737d666f722876617220723d2266756e6374696f6e223d3d747970656f6620726571756972652626726571756972652c6f3d303b6f3c6e2e6c656e6774683b6f2b2b2961286e5b6f5d293b72657475726e20617d287b313a5b66756e6374696f6e28742c652c69297b766172206e3d742835293b66756e6374696f6e20612874297b69662874297b76617220653d5b302c302c305d2c693d312c613d742e6d61746368282f5e23285b612d66412d46302d395d7b337d29242f69293b69662861297b613d615b315d3b666f722876617220723d303b723c652e6c656e6774683b722b2b29655b725d3d7061727365496e7428615b725d2b615b725d2c3136297d656c736520696628613d742e6d61746368282f5e23285b612d66412d46302d395d7b367d29242f6929297b613d615b315d3b666f7228723d303b723c652e6c656e6774683b722b2b29655b725d3d7061727365496e7428612e736c69636528322a722c322a722b32292c3136297d656c736520696628613d742e6d61746368282f5e726762613f5c285c732a285b2b2d5d3f5c642b295c732a2c5c732a285b2b2d5d3f5c642b295c732a2c5c732a285b2b2d5d3f5c642b295c732a283f3a2c5c732a285b2b2d5d3f5b5c645c2e5d2b295c732a293f5c29242f6929297b666f7228723d303b723c652e6c656e6774683b722b2b29655b725d3d7061727365496e7428615b722b315d293b693d7061727365466c6f617428615b345d297d656c736520696628613d742e6d61746368282f5e726762613f5c285c732a285b2b2d5d3f5b5c645c2e5d2b295c255c732a2c5c732a285b2b2d5d3f5b5c645c2e5d2b295c255c732a2c5c732a285b2b2d5d3f5b5c645c2e5d2b295c255c732a283f3a2c5c732a285b2b2d5d3f5b5c645c2e5d2b295c732a293f5c29242f6929297b666f7228723d303b723c652e6c656e6774683b722b2b29655b725d3d4d6174682e726f756e6428322e35352a7061727365466c6f617428615b722b315d29293b693d7061727365466c6f617428615b345d297d656c736520696628613d742e6d61746368282f285c772b292f29297b696628227472616e73706172656e74223d3d615b315d2972657475726e5b302c302c302c305d3b6966282128653d6e5b615b315d5d292972657475726e7d666f7228723d303b723c652e6c656e6774683b722b2b29655b725d3d6428655b725d2c302c323535293b72657475726e20693d697c7c303d3d693f6428692c302c31293a312c655b335d3d692c657d7d66756e6374696f6e20722874297b69662874297b76617220653d742e6d61746368282f5e68736c613f5c285c732a285b2b2d5d3f5c642b29283f3a646567293f5c732a2c5c732a285b2b2d5d3f5b5c645c2e5d2b29255c732a2c5c732a285b2b2d5d3f5b5c645c2e5d2b29255c732a283f3a2c5c732a285b2b2d5d3f5b5c645c2e5d2b295c732a293f5c292f293b69662865297b76617220693d7061727365466c6f617428655b345d293b72657475726e5b64287061727365496e7428655b315d292c302c333630292c64287061727365466c6f617428655b325d292c302c313030292c64287061727365466c6f617428655b335d292c302c313030292c642869734e614
INSERT INTO notes VALUES('L9qettZi0csz','TODO','',0,0,'2018-08-28T20:50:48.468Z','2018-08-28T20:50:48.468Z','text','text/html','pYhbMrsilQ');
INSERT INTO notes VALUES('Dyahpf7LroQY','Locations','',0,0,'2018-08-28T20:50:48.478Z','2018-08-28T20:50:48.478Z','text','text/html','T5ttXvR2+2');
INSERT INTO notes VALUES('nUgD4SYx2gt7','Tags','',0,0,'2018-08-28T20:50:48.506Z','2018-08-28T20:50:48.506Z','text','text/html','f5a1WP0Pz5');
INSERT INTO notes VALUES('9HHqPxJkLAkl','Done','',0,0,'2018-08-28T20:50:48.527Z','2018-08-28T20:50:48.527Z','text','text/html','3M1b9ysLaG');
INSERT INTO notes VALUES('hL4rychNFWZs','Implementation','',0,0,'2018-08-28T20:50:48.537Z','2018-08-28T20:50:48.537Z','text','text/html','8fnUKl/ty7');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('HbtlYiMvmm4V','task template','',0,0,'2018-08-28T20:50:48.588Z','2018-08-28T20:50:48.588Z','text','text/html','HRae/qx7tU');
INSERT INTO notes VALUES('8LOr7xUMuWD4','Weight Tracker','',0,0,'2018-08-28T20:50:36.063Z','2018-08-28T20:54:28.613Z','render','text/html','lE5vjoJhJ1');
INSERT INTO notes VALUES('WkdQrYTnsgxP','Person template','',0,0,'2018-08-28T20:50:22.248Z','2018-08-28T20:50:22.248Z','text','text/html','esiFC4lNuK');
INSERT INTO notes VALUES('gYVdjKAJeImD','attribute changed',replace('if (!["task", "location", "tag", "todoDate", "doneDate"].includes(api.originEntity.name)) {\n return;\n}\n\nconst note = await api.originEntity.getNote();\n \nconst attributes = await note.getAttributes();\n\nconst todoDate = await note.getLabelValue(''todoDate'');\nconst doneDate = await note.getLabelValue(''doneDate'');\nconst isTaskDone = !!doneDate;\n\nconst doneRootNote = await api.getNoteWithLabel(''taskDoneRoot'');\nawait api.toggleNoteInParent(isTaskDone, note.noteId, doneRootNote.noteId);\n\nconst todoRootNote = await api.getNoteWithLabel(''taskTodoRoot'');\nawait api.toggleNoteInParent(!isTaskDone, note.noteId, todoRootNote.noteId);\n\nconst location = await note.getLabelValue(''location'');\nconst locationRootNote = await api.getNoteWithLabel(''taskLocationRoot'');\n\nawait reconcileAssignments(note, locationRootNote, location ? [location] : [], ''taskLocationNote'', isTaskDone);\n\nconst tags = attributes.filter(attr => attr.type === ''label'' && attr.name === ''tag'').map(attr => attr.value);\nconst tagRootNote = await api.getNoteWithLabel(''taskTagRoot'');\n\nawait reconcileAssignments(note, tagRootNote, tags, ''taskTagNote'', isTaskDone);\n\nawait note.toggleLabel(isTaskDone, "cssClass", "done");\n\nconst doneTargetNoteId = isTaskDone ? (await api.getDateNote(doneDate)).noteId : null;\nawait api.setNoteToParent(note.noteId, ''DONE'', doneTargetNoteId);\n\nawait note.toggleLabel(!isTaskDone, "cssClass", "todo");\n\nconst todoTargetNoteId = (!isTaskDone && todoDate) ? (await api.getDateNote(todoDate)).noteId : null;\nawait api.setNoteToParent(note.noteId, ''TODO'', todoTargetNoteId);\n\napi.refreshTree();','\n',char(10)),0,0,'2018-08-28T20:50:48.544Z','2018-08-28T21:09:56.952Z','code','application/javascript;env=backend','fQ4P19nxKC');
2018-08-30 02:44:35 +08:00
INSERT INTO notes VALUES('HJusZTbBU494','2017','',0,0,'2017-12-23T01:20:50.709Z','2018-08-29T10:50:44.040Z','text','text/html','saDLHhHxyV');
INSERT INTO notes VALUES('6ZuXjCSWgjB4','11 - November','',0,0,'2017-12-23T03:44:45.351Z','2018-08-29T10:50:53.409Z','text','text/html','luxpsFeYil');
INSERT INTO notes VALUES('3oldoiMUPOlr','12 - December','',0,0,'2017-12-23T01:20:55.775Z','2018-08-29T10:50:59.032Z','text','text/html','HYUoWI4aLr');
INSERT INTO notes VALUES('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');
2018-08-30 03:36:42 +08:00
INSERT INTO notes VALUES('TlGCAdcfxkOT','Book template','',0,0,'2018-08-29T17:11:16.540Z','2018-08-29T17:11:22.540Z','text','text/html','C8OpYciam7');
INSERT INTO notes VALUES('8nRNDJGyGs2Z','The Mechanical','<p>&nbsp;</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>&nbsp;</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');
INSERT INTO notes VALUES('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.&nbsp;</p></blockquote><p>&nbsp;</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>&nbsp;</p>',0,0,'2017-12-23T03:39:21.918Z','2018-08-29T17:19:52.522Z','text','text/html','oFlmpmmvte');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('Lt8IUldw7d7H','Day template','',0,0,'2018-08-29T17:23:45.189Z','2018-08-29T17:23:52.521Z','text','text/html','1V3BTW/Qzw');
INSERT INTO notes VALUES('GpGnjmcAPeWG','28 - Tuesday','',0,0,'2017-12-23T03:44:57.036Z','2018-08-29T17:28:22.525Z','text','text/html','JdiPCl+HVd');
INSERT INTO notes VALUES('Iha4YwchR413','21 - Thursday','',0,0,'2017-12-23T03:44:21.176Z','2018-08-29T17:28:27.526Z','text','text/html','nf9l6wd8vt');
INSERT INTO notes VALUES('rUsGgtpohm7T','23 - Saturday','',0,0,'2018-08-29T17:29:32.934Z','2018-08-29T17:29:42.287Z','text','text/html','BugaZKKDJ+');
INSERT INTO notes VALUES('sXti7HgialF2','24 - Sunday - Christmas Eve!','',0,0,'2018-08-29T17:29:43.127Z','2018-08-29T17:29:57.523Z','text','text/html','RfShVwTOAB');
INSERT INTO notes VALUES('1Fi3MpUkZkLk','20 - Wednesday','',0,0,'2018-08-29T17:29:02.025Z','2018-08-29T17:30:42.516Z','text','text/html','xiDILk3qhD');
INSERT INTO notes VALUES('yK4SBJfwD3tY','Work','<p>Expand note on the left pane to see content.</p><p>&nbsp;</p><p>&nbsp;</p>',0,0,'2017-12-23T04:06:32.833Z','2018-08-29T18:23:35.049Z','text','text/html','my57OxteKd');
INSERT INTO notes VALUES('uP3V8BqwXC05','Buy milk','',0,0,'2018-08-29T19:42:32.712Z','2018-08-29T19:42:38.958Z','text','text/html','PGFo1+haU8');
INSERT INTO notes VALUES('Z4CC9azzMNhg','tesco','',0,0,'2018-08-29T19:42:47.853Z','2018-08-29T19:42:47.853Z','text','text/html','I6EArEtFH/');
INSERT INTO notes VALUES('q6A62bZE2R1r','groceries','',0,0,'2018-08-29T19:42:51.137Z','2018-08-29T19:42:51.137Z','text','text/html','mSbxrm1pq+');
INSERT INTO notes VALUES('tQmqkQOMHgQJ','mall','',0,0,'2018-08-29T19:43:40.321Z','2018-08-29T19:43:40.321Z','text','text/html','tRORZ6Y92z');
INSERT INTO notes VALUES('Lom0LEnCes1l','christmas','',0,0,'2018-08-29T19:43:44.020Z','2018-08-29T19:43:44.020Z','text','text/html','V8diNwZGLR');
INSERT INTO notes VALUES('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>&nbsp;</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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('vkoNZlNO5TO4','gym','',0,0,'2018-08-29T19:54:19.614Z','2018-08-29T19:54:19.614Z','text','text/html','6ZdjkVrgjU');
INSERT INTO notes VALUES('cUWgYJfpp8G8','28 - Thursday','',0,0,'2018-08-29T19:55:04.659Z','2018-08-29T19:55:04.659Z','text','text/html','g96BaV8SGj');
INSERT INTO notes VALUES('cmYy3Z22F4MY','Dentist appointment','',0,0,'2018-08-29T19:56:35.605Z','2018-08-29T19:56:43.698Z','text','text/html','rNyV4tYv7n');
INSERT INTO notes VALUES('2V9Zg9CXdNvn','health','',0,0,'2018-08-29T19:57:02.268Z','2018-08-29T19:57:02.268Z','text','text/html','QQYGpa/4DF');
INSERT INTO notes VALUES('d04CnuZxPXj2','shopping','',0,0,'2018-08-29T19:58:59.133Z','2018-08-29T19:58:59.133Z','text','text/html','wWU276L2X9');
INSERT INTO notes VALUES('TTl2nD4CqzC9','work','',0,0,'2018-08-29T19:59:38.878Z','2018-08-29T19:59:38.878Z','text','text/html','hIuAZE3DRY');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('MG0wntwILQW6','22 - Friday','',0,0,'2017-12-23T01:21:10.517Z','2018-08-29T20:01:14.789Z','text','text/html','Jus3ysHko7');
INSERT INTO notes VALUES('cwPuYRAGKtUi','19 - Tuesday','',0,0,'2018-08-29T17:29:16.628Z','2018-08-29T17:29:24.733Z','text','text/html','zzBNYSR1hq');
2018-08-30 06:42:02 +08:00
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('tX80udgxnW5n','18 - Monday','<p>Miscellaneous notes done on monday ...</p><p>&nbsp;</p><p>Interesting video: <a href="https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be">https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be</a></p><p>&nbsp;</p><p>&nbsp;</p>',0,0,'2018-08-29T17:29:24.548Z','2018-08-29T21:28:50.683Z','text','text/html','3ZuNMUCKI6');
INSERT INTO notes VALUES('qEi5St9PBPCP','Button',replace('api.addButtonToToolbar({\n title: ''Weight Tracker'',\n icon: ''star'',\n action: () => api.activateNote(''8LOr7xUMuWD4'')\n});','\n',char(10)),0,0,'2018-08-28T20:50:36.150Z','2018-08-28T21:01:26.563Z','code','application/javascript;env=frontend','N9f0m+DlQA');
INSERT INTO notes VALUES('YBAcWV8TjYEp','Implementation','<canvas id="canvas"></canvas>',0,0,'2018-08-28T20:55:00.059Z','2018-08-29T22:13:50.702Z','code','text/html','tUdg2+0sAD');
INSERT INTO notes VALUES('kV2NwNNvepGF','JS code',replace('async function getChartData() {\n const days = await api.runOnServer(async () => {\n const notes = await api.getNotesWithLabel(''weight'');\n const days = [];\n\n for (const note of notes) {\n const date = await note.getLabelValue(''dateNote'');\n const weight = parseFloat(await note.getLabelValue(''weight''));\n\n if (date && weight) {\n days.push({ date, weight });\n }\n }\n\n days.sort((a, b) => a.date > b.date ? 1 : -1);\n\n return days;\n });\n\n const datasets = [\n {\n label: "Weight (kg)",\n backgroundColor: ''red'',\n borderColor: ''red'',\n data: days.map(day => day.weight),\n fill: false,\n spanGaps: true,\n datalabels: {\n display: false\n }\n }\n ];\n\n return {\n datasets: datasets,\n labels: days.map(day => day.date)\n };\n}\n\nconst ctx = $("#canvas")[0].getContext("2d");\n\nnew chartjs.Chart(ctx, {\n type: ''line'',\n data: await getChartData()\n});','\n',char(10)),0,0,'2018-08-28T20:50:36.092Z','2018-08-29T22:14:00.701Z','code','application/javascript;env=frontend','w+OzbwCEwQ');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('Z5yhGE5g0UB5','Implementation','<svg id="svg" width="600" height="600"></svg>',0,0,'2018-08-28T20:51:10.186Z','2018-08-29T22:25:05.714Z','code','text/html','GHbIBDzzzk');
INSERT INTO notes VALUES('s0Hhsl0nb1bg','Queen Elizabeth II.','<p>&nbsp;</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>&nbsp;</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>&nbsp;</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');
INSERT INTO notes VALUES('prjUbW6QtsL4','Buy a board game for Alice','<p>&nbsp;</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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('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');
INSERT INTO notes VALUES('rz5t0r9Qr2WC','Epics','<p>Epic is kind of medium-term events or projects spread over days or months.</p><p>&nbsp;</p><p>Remember that Trilium is all free form so you can organise your stuff in whatever way you''d like.</p><p>&nbsp;</p><p>&nbsp;</p>',0,0,'2017-12-23T03:45:20.914Z','2018-08-30T20:31:11.551Z','text','text/html','SF+DWpKAYW');
INSERT INTO notes VALUES('root','root','<p>This is a root of the note tree, it is the "ancestor" of all notes.&nbsp;</p>',0,0,'2017-12-22T11:41:07.000Z','2018-08-30T20:32:58.029Z','text','text/html','dWViNNtQWM');