This file contains 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
{{- printf "<?xml-stylesheet href=\"/css/rss.xsl\" type=\"text/xsl\"?>" | safeHTML -}} | |
<rss version="2.0"> | |
<channel> | |
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> | |
<link>{{ .Permalink }}</link> | |
<description></description> | |
<image> | |
<url>{{ .Site.Author.avatar }}</url> | |
<title>The avatar of the author of this website</title> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> | |
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> | |
<xsl:template match="/"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title><xsl:value-of select="/rss/channel/title"/> RSS Feed</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> | |
<meta charset="UTF-8"/> |
This file contains 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
{ | |
"description": "F19 (Capslock) to Control in Emacs", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.gnu\\.Emacs$" | |
], | |
"type": "frontmost_application_if" |
This file contains 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
```dataview | |
TABLE file.name, file.ctime AS "Created" | |
WHERE file.ctime >= date(<% tp.date.now("YYYY-MM-DD", -7) %>) and file.ctime < date(<% tp.date.now("YYYY-MM-DD") %>) | |
sort file.ctime | |
``` |
This file contains 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
```dataview | |
TABLE L.text AS "Articlelist" | |
FROM #weeknotes | |
FLATTEN file.lists as L | |
WHERE meta(L.section).subpath = "Articles" | |
SORT file.ctime DESC | |
LIMIT 25 | |
``` |
This file contains 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
Markdown to WordPress | |
if(op.attributes.exists("type") && op.attributes.getOne("type")=="outline"){ | |
var wp_post = opml.parse(op.getCursorOpml()); | |
var title = wp_post.opml.head.title; | |
var text = ""; | |
var imagepart=""; | |
for (i=0;i<wp_post.opml.body.subs[0].subs.length;i++){ | |
if(wp_post.opml.body.subs[0].subs[i].image !==undefined){ | |
var imagepart="![]("+string.multipleReplaceAll(wp_post.opml.body.subs[0].subs[i].image,{" ":"%20"})+")"; | |
text=text+imagepart; |
This file contains 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
GetHour | |
var d = op.attributes.getOne("created"); | |
dialog.alert(d); | |
dialog.alert (string.formatDate (d, "%Y/%m/%d/%H%M%S.html")); |
This file contains 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
GetURL | |
var d = op.attributes.getOne("created"); | |
dialog.alert (string.formatDate (d, "%Y/%m/%d/%H%M%S.html") + "."); | |
var makeURL = "http://oldschool.scripting.com/frankmeeuwsen/"+string.formatDate (d, "%Y/%m/%d/%H%M%S.html"); | |
webBrowser.openUrl (makeURL) | |
console.log (makeURL) |
This file contains 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
if(op.attributes.exists("type") && op.attributes.getOne("type")=="outline"){ | |
var wp_post = opml.parse(op.getCursorOpml()); | |
var title = wp_post.opml.head.title; | |
var text = ""; | |
var imagepart=""; | |
for (i=0;i<wp_post.opml.body.subs[0].subs.length;i++){ | |
if(wp_post.opml.body.subs[0].subs[i].image !==undefined){ | |
var imagepart="<p><img src='"+wp_post.opml.body.subs[0].subs[i].image+"'></p>"; | |
text=text+imagepart; | |
} |
This file contains 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
s3images=JSON.parse(http.readUrl("https://s3link/to/your/logfile.json",true)); | |
var allimages=""; | |
console.log(s3images); | |
for (i=0;i<s3images["actions"].length;i++){ | |
console.log(s3images["actions"][i]["url"]); | |
if(s3images["actions"][i]["url"] !== undefined && s3images["actions"][i]["url"].substring(0,8) === 'https://'){ | |
var link=s3images['actions'][i]['url']; | |
var html="<img class='s3images' src='"+link+"' onclick='prompt(\"copy\",\""+link+"\");' >"; | |
allimages=allimages+html; | |
}; |
NewerOlder