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
const axios = require("axios"); | |
const fs = require("fs") | |
const baseURL = "https://seafile.rlp.net" | |
let allUploadLinks = []; | |
let config = { | |
headers: { | |
"Authorization": "Token 565d9012b6c134e37233fb64172f6223fb584197", | |
'Accept': 'application/json; indent=4', | |
'Content-Type': 'application/x-www-form-urlencoded', |
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
const pluginRss = require("@11ty/eleventy-plugin-rss"); | |
const markdownIt = require("markdown-it"); | |
const replacements = require("./_data/replacements.json"); | |
const Image = require("@11ty/eleventy-img"); | |
const path = require("path"); | |
const colors = require('colors'); | |
const md = new markdownIt({ | |
breaks: true, | |
}); |
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
<?php | |
function array_to_sentence($arr) | |
{ | |
$s = ""; | |
if (count($arr) === 1) { | |
$s = $arr[0]; | |
} elseif (count($arr) === 2) { | |
$s = $arr[0] . " and " . $arr[1]; | |
} else { | |
$slice = array_slice($arr, 0, count($arr) - 1); |
OlderNewer