This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function bookmarksExportToCsv() { | |
| /** | |
| * 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks) | |
| * 2. Open exported html file again in the browser | |
| * 3. Copy paste this entire file in console, and execute it (hit enter) | |
| * 4. You will be prompted to save a CSV file. Save it. | |
| * 5. Open Notion. Click Import -> CSV | |
| * 6. Select saved CSV file. Wait for import | |
| * 7. You have a new database with all your bookmarks | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component | |
| class SomeTransactionalService( | |
| private val someDao: SomeDao | |
| ) { | |
| fun handle(parameter: String) { | |
| transaction { | |
| eventDao.updateEvent(parameter) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using MimeKit; | |
| using MimeKit.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.jivimberg.sqs.published | |
| import kotlinx.coroutines.CancellationException | |
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.isActive | |
| import kotlinx.coroutines.yield | |
| import java.lang.Thread.currentThread | |
| suspend fun CoroutineScope.repeatUntilCancelled(block: suspend () -> Unit) { | |
| while (isActive) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Threading.Tasks.Dataflow; | |
| namespace TDFDemo | |
| { | |
| class Program | |
| { |