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 | |
// By Joe Crawford joe@artlung.com | |
// September 2023 | |
// intended to be run from the command line | |
// php thumb.php | |
// place images in the same directory as this script and their names in the array below | |
// or place urls in the array below - filenames must be unique | |
// height and width of the final image, for now the math relies on everything being square |
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 | |
/** | |
* | |
* This is a quick way to turn a simple text file | |
* with a list of urls in a text file (sitemap-urls.txt) | |
* into a valid XML Sitemap: | |
* http://en.wikipedia.org/wiki/Sitemaps | |
* Put this file sitemap.xml.php and sitemap-urls.txt at | |
* the webroot http://example.com/sitemap.xml.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
1 REM ARTLUNG START | |
2 REM TI-EXTENDED BASIC TI-99/4A | |
3 CALL CLEAR | |
9 REM | |
10 CALL CHAR(33, "0F1F7F7F7E7C7CFC") | |
11 CALL VCHAR(1, 1, 33) | |
12 CALL CHAR(34, "FCFFFFFFFFFFFFFF") | |
13 CALL VCHAR(2, 1, 34) | |
14 CALL CHAR(35, "7F7F7F7E7EFCFCFC") | |
15 CALL VCHAR(3, 1, 35) |
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 | |
/** | |
* | |
* This is a quick way to turn a simple text file | |
* with a very long list of urls in a text file (sitemap-urls.txt) | |
* Where "very long" is an expected url number greater than 10,000 | |
* If loaded without a valid query parameter "page" it will load a | |
* Site Index site map, otherwise load the individual XML site map | |
* 10,000 urls into a valid XML Sitemap: | |
* http://en.wikipedia.org/wiki/Sitemaps |
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
img.alignright {float: right;margin: 0 0 1em 1em;} | |
img.alignleft {float: left;margin: 0 1em 1em 0;} | |
img.aligncenter {display: block;margin-left: auto;margin-right: auto;} | |
a img.alignright {float: right;margin: 0 0 1em 1em;} | |
a img.alignleft {float: left;margin: 0 1em 1em 0;} | |
a img.aligncenter {display: block;margin-left: auto;margin-right: auto;} |
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
<html> | |
<head> | |
<title>My Sample</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var new_num = 40; // global variable | |
jQuery(document).ready(function(){ | |
http://api.jquery.com/css/ | |
$('p').css({border: '5px solid red', color: 'green', padding: '20px'}); | |
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
<!-- this will print one of these: | |
<link rel="stylesheet" type="text/css" href="css/bk1.css" /> | |
<link rel="stylesheet" type="text/css" href="css/bk2.css" /> | |
<link rel="stylesheet" type="text/css" href="css/bk3.css" /> | |
<link rel="stylesheet" type="text/css" href="css/bk4.css" /> | |
<link rel="stylesheet" type="text/css" href="css/bk5.css" /> | |
<link rel="stylesheet" type="text/css" href="css/bk6.css" /> --> | |
<script type="text/javascript" src="RANDOM_CSS_javascript.js"></script> | |
<script type="text/javascript"> | |
RANDOM_CSS.printlinktag(); |
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
<script type="text/javascript"> | |
/** | |
* Several different ways to calls an onload event | |
* first up, here's a function we will call using all the methods | |
*/ | |
function artlungOnload() { | |
alert('The body of the document has loaded'); | |
} | |
</script> |
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
<html> | |
<head> | |
<title>Cursor Position Radius</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> | |
<style type="text/css" media="screen"> | |
#square { | |
height: 400px; | |
width: 400px; | |
background-color: #000; | |
margin: auto; |