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
:root { | |
--color: #191919; | |
--body-background: #666; | |
--content-background: #fff; | |
--link-color: darkblue; | |
--row-modifier: black; | |
--branding-background: purple; | |
--branding-color: white; | |
--collapse-table-width: 300px; | |
} |
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
<?php | |
// Instapaper allows you to export your saved links as a CSV file | |
// And I turn it into my default LINKS json format | |
// for better or worse | |
$filename = 'instapaper-export.csv'; | |
$csv = array_map('str_getcsv', file($filename)); | |
$ignore_header_line = true; | |
$destination_for_link_json = './LINKS/'; |
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
<?php | |
//$hostname = ""; // the address of the MySQL server | |
//$username = ""; // your username | |
//$password = ""; //your password | |
//$databaseName = ""; // name of the database | |
$cn = mysqli_connect($hostname, $username, $password, $databaseName) or die("Cannot connect to database."); | |
//Array |
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
function show(object,x,y) { | |
if (document.all && document.all[object]) { | |
document.all[object].style.left = x+'px'; | |
document.all[object].style.top = y+'px'; | |
document.all[object].style.zIndex = AlwaysTopmostZ; | |
document.all[object].style.color = '#000'; | |
AlwaysTopmostZ++; | |
document.all[object].style.visibility = 'visible'; | |
} | |
else if (document.layers && document.layers[object] != null) { |
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
<?php | |
/* | |
Plugin Name: Customize Feed Content | |
Description: I'm looking for a theme-independent plug-in that will let me customize my blog post excerpts for my RSS feed. I would like to be able to show the featured image and customize the length of the preview, as well as add a link underneath the excerpt for a viewer to click on to see the original article. | |
Version: 1.0 | |
Author: artlung | |
*/ | |
class CustomizeFeedContent { | |
/** |
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
(Transcript made with HappyScribe.com) | |
[ NOTE: NOT FULLY COPYEDITED ] | |
https://about.flipboard.com/inside-flipboard/molly-white/ | |
[00:00:02.240] Welcome to Dotsocial, the first podcast to explore the | |
world of decentralized social media. Each episode, host Mike McHieu | |
talks to a leader in this movement, someone who sees the Fediverse's | |
tremendous potential and understands that this could be the internet's |
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
<?php | |
$current_dir = dirname(__FILE__); | |
// load wordpress functions | |
require_once( $current_dir . '/../../../wp-load.php'); | |
$years = range(2001, date('Y')); | |
$ignored_permalinks = [ | |
'https://artlung.com/blog/2002/02/02/9309543/', |
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
/** | |
* @param $text | |
* @param int $maxLength (default 200 characters) | |
* @param string $ending (characters to append to the end of the excerpt) | |
* @return string | |
*/ | |
function excerpt($text, int $maxLength = 200, string $ending = '...'): string | |
{ | |
// collapse whitespace | |
$text = preg_replace('/\s+/', ' ', $text); |
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
<?php | |
/** | |
* UPDATE WORDPRESS LINKS DATABASE WITH FEED URLS via COMMAND LINE | |
* | |
* @author Joe Crawford | |
* @license MIT | |
* @version 0.1 | |
* @link https://artlung.com/ | |
* @date 2024-03-06 | |
* |
NewerOlder