Use marked
instead of markdown-js
for Markdown parser of TiddlyWiki 5.
Originally fork from http://bjtools.tiddlyspot.com/
- support fenced code block
- support code highlighting
- Install the official Markdown and Hightlight.js plugin.
Use marked
instead of markdown-js
for Markdown parser of TiddlyWiki 5.
Originally fork from http://bjtools.tiddlyspot.com/
# Download curses wheel package | |
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses | |
# Install curses via pip | |
pip install python -m pip install Downloads/curses-2.2-cp27-none-win_amd64.whl | |
# Run bpython-curses instead of bpython | |
bpython-curses |
author: JeremyRuston, Syrte | |
core-version: >=5.0.0 | |
dependents: | |
description: Markdown parser | |
list: readme usage howto | |
plugin-type: plugin | |
revision: 0 | |
title: $:/plugins/tiddlywiki/markdown | |
type: application/json | |
version: 6.0.0 |
/* eslint-disable no-var,no-console */ | |
// detect unused CSS selectors | |
(function() { | |
var parsedRules = parseCssRules(); | |
console.log('Parsed CSS rules:', parsedRules); | |
detectDuplicateSelectors(parsedRules); | |
var selectorsToTrack = getSelectorsToTrack(parsedRules); | |
window.selectorStats = { unused: [], added: [], removed: [] }; | |
console.log('Tracking style usage (inspect window.selectorStats for details)...'); |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
#!/usr/bin/env lua | |
--------------------------------------------------------------------------------------------------------------------------------------- | |
-- Display list of globals used by your Lua script | |
--------------------------------------------------------------------------------------------------------------------------------------- | |
-- Version: 2019-03-28 | |
-- License: MIT (see at the end of this file) | |
-- | |
-- Reads your Lua script from STDIN | |
-- Writes list of globals to STDOUT (if the script is syntactically correct) | |
-- Writes parsing error to STDERR (if the script is not syntactically correct) |
#!/bin/sh | |
########################################################################## | |
# Note: you must have set up your Travis CI environment variables for this | |
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID | |
# For more details, see the Telegram documentation at: | |
# - https://core.telegram.org/bots/api | |
# and the blog posts at: | |
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/ | |
# - https://ansonvandoren.com/posts/travis-telegram-integration/ |
/** | |
* JavaScript function prototype debouncer 4.3 - 2010-2022 hnldesign.nl - Klaas Leussink | |
* Demo: https://code.hnldesign.nl/demo/hnl.debounce.html | |
* | |
* Based on code by Paul Irish and the original debouncing function from John Hann | |
* http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
* Register deBouncer as a function prototype. | |
* | |
* All debounced variants of the function (depending on the supplied debouncing parameters (see below) | |
* are stored inside a 'dbObj' Object inside the debounced function. |
{ "categories" : | |
[ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", |
javascript: (function () { | |
var text = document.body.innerText; | |
var spl = text.split(" "); | |
if (spl.length > 3000) { | |
text = spl.slice(0, 3000).join(" "); | |
} | |
fetch('https://api.openai.com/v1/completions', { | |
method: 'POST', | |
headers: { |