| tags | aliases | cssclass | |
|---|---|---|---|
|
{{VALUE}}
| -- Pandoc Lua-filter for Obsidian Callouts | |
| -- Original Source: https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/ | |
| -- Notes: | |
| -- Original snippet modified to output Hugo {{< admonition >}} shortcodes with collapse. | |
| -- Make sure to have a blank line before and after the `> [!note]` line of the callout block. | |
| -- The filter works recursively so if you want callouts within callouts, make sure to leave a blank line | |
| -- before and after the `> [!note] Your title here` line of each callout. | |
| -- Usage: |
| function markArchivedAsRead() { | |
| var threads = GmailApp.search('label:unread -label:{inbox, Unsnoozed}'); | |
| for (var i=0; i<threads.length; i++) | |
| { | |
| var messages = threads[i].getMessages(); | |
| var markUnread = 1; | |
| for (var j=0; j<messages.length; j++) | |
| { | |
| if (messages[j].isInInbox()) | |
| markUnread = 0; |
| // Trigger for this script should be run DAILY | |
| var TARGET_EMAIL = '<AMAZING MARVIN IMPORT EMAIL>'; | |
| var MILLIS_PER_DAY = 1000 * 60 * 60 * 24; | |
| var TASKS = [ | |
| { // Task will be created in ranges from 5 to 10 after last created date. E.g. if last created = May 10, next task will be created between May 15 and May 20 | |
| id: '<TASK ID>', | |
| range_start: 5, |
| var TARGET_EMAIL = '<AMAZING_MARVIN_IMPORT_EMAIL>'; | |
| var LIBRARY_NAME = '<SOME_LIBRARY>' | |
| var URL_LIBRARIES_IO = 'https://libraries.io/pypi/LIBRARY_NAME/versions.atom' | |
| var CATEGORY_OR_PROJECT = '<CATEGORY OR PROJECT IN AMAZING MARVIN>' | |
| function parseXml() { | |
| var props = PropertiesService.getScriptProperties(); | |
| var xml = UrlFetchApp.fetch(URL_LIBRARIES_IO).getContentText(); | |
| var document = XmlService.parse(xml); | |
| var root = document.getRootElement(); |
| <?xml version="1.0" encoding="utf-8"?> | |
| <wsdl:definitions | |
| targetNamespace="http://example.com/agreement" | |
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
| xmlns:tns="http://example.com/agreement" | |
| xmlns:s="http://www.w3.org/2001/XMLSchema" | |
| xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" | |
| xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" | |
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | |
| <wsdl:types> |
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Name=Postman | |
| Exec=postman | |
| Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png | |
| Terminal=false | |
| Type=Application | |
| Categories=Development; |
| import java.security.MessageDigest | |
| sometext = "123 Document.txt 123" | |
| MessageDigest md = MessageDigest.getInstance("MD5") | |
| md.update(sometext.getBytes()) | |
| byte[] enc = md.digest() | |
| String md5Sum = new sun.misc.BASE64Encoder().encode(enc) |
| # Reset | |
| Reset='\[\e[0m\]' # Text Reset | |
| # Common colors | |
| Black='\[\e[0;30m\]' # Black | |
| Red='\[\e[0;31m\]' # Red | |
| Green='\[\e[0;32m\]' # Green | |
| Yellow='\[\e[0;33m\]' # Yellow | |
| Blue='\[\e[0;34m\]' # Blue | |
| Purple='\[\e[0;35m\]' # Purple |
| import java.util.Scanner; | |
| import java.util.Arrays; | |
| import java.util.ArrayList; | |
| class Main { | |
| public static void main(String[] args) { | |
| Solver s = new Solver(); | |
| s.solveGaussian(); | |
| } |