View montage-tabs-2.scpt
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
set URLs to windowOneTabs() | |
set mytempFolder to do shell script "mktemp -d " | |
set c to 0 | |
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
click menu item "New Window" of menu "File" of menu bar 1 | |
View montage-tabs.scpt
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
--needs imageMagick & shot-scraper paths below refere to homebrew installs of both (guessing from the path) | |
--https://shot-scraper.datasette.io/en/stable/ | |
set mytempFolder to do shell script "mktemp -d " | |
--just to watch things happening | |
do shell script "open " & mytempFolder | |
tell application "Safari" | |
set themax to number of tabs of window 1 |
View flickr-montage.sh
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
#!/bin/bash | |
#script to download pile of flickr images and make a montage | |
#needs montage command which comes with imagemagick I install that with homebrew | |
#some notes at the end of the file | |
#Fill in the params any except the APIKEY can be empty | |
# this will take some time! | |
APIKEY='FILL-IN_API_KEY' |
View Feedland.css
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
body { background-image: linear-gradient(to right, #00b09b, #96c93d); } | |
#idProductLogo img{ border-radius:25%; } | |
@media screen and (max-width: 1200px) { | |
.divRiverDisplay { width: 95%; } | |
.divRiverContent{ width:98%; } | |
.divMoreButton { display:block; } | |
.divPageBody { width:94%; } | |
} | |
.divPageBody { margin-top: 30px; } |
View pad-border.app
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
(* | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree with these terms, please do not use, install, modify or redistribute this Apple software. | |
In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in this original Apple software ( the "Apple Software" ), to use, reproduce, modify and redistribute the Apple Software, with or without modifications, in source and / or binary forms; provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software. Neither the name, trademarks, service marks or logos of Apple Inc. may |
View via-indie-web-bookmarklet
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
javascript:(function(){let text = "";if (window.getSelection() != '') {text = window.getSelection().toString() + '\n';}var tocopy = '<p><small><cite class="h-cite via"><abbr title="via">ᔥ</abbr> <span class="p-author h-card">"' + text + '"</span> in <a class="u-url p-name" href="' + location.href + '" target="_blank" rel="noopener noreferrer" >' + document.title + '</a> (<time class="dt-published">' + document.lastModified + '</time>)</cite></small></p>';;d=document;d.body.appendChild(Object.assign(d.createElement('textarea'),{value:tocopy})).select();d.execCommand('copy');})() |
View Notes-Export-to-HTML.scpt
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
set htmltop to "<!doctype html> | |
<html lang=\"en\"> | |
<head> | |
<meta charset=\"utf-8\"> | |
<title>Notes Export</title> | |
<style> | |
@media print { | |
hr { | |
page-break-after: always; |
View micro.blog-fave-images.scpt
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
(* | |
* Inspired by smokey | |
* https://gist.github.com/sardisson/e50286e17c8f2f39bfec9429ed5f46cd | |
* url for thubnail from @smokey too | |
* html Thumbnail image griid from Micro.blog favs | |
* NEEDS JSON Helper free from | |
*https://itunes.apple.com/gb/app/json-helper-for-applescript/id453114608?mt=12 | |
* Needs a App token from micro.blog/account | |
* NO ERROR CHECKING | |
* updated to use cloudimage you need a token from cloudimage.io iin CLOUDIMAGETOKEN below. |
View OnThisDay.php
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 | |
/* | |
There are some problems with this, use https://github.com/cogdog/wp-posted-today instead. | |
*/ | |
/* | |
* Plugin Name: OnThisDay | |
* Description: shortcode for posts on the current day | |
* Version: 0.1 | |
* Author: John Johnston | |
* Mostly borrowed from https://wordpress.stackexchange.com/questions/53462/on-this-day-php-code/53761 |
View feed-microcast.php
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 | |
/** | |
* RSS2 Feed Template for displaying RSS2 Posts feed. | |
* Modified for microcast | |
* Based on template found https://css-tricks.com/roll-simple-wordpress-podcast-plugin | |
* | |
*/ | |
$numposts = 50; // number of posts in feed | |
$posts = query_posts('showposts='.$numposts.'&cat=652'); |
NewerOlder