various, sorry

This commit is contained in:
Shoofle 2016-06-29 10:15:47 -04:00
parent 11f2c0ea42
commit 535d12e146
12 changed files with 471 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<article>
http://www.nintendo.com/consumer/info/en_na/docs.jsp ?
</article>

View File

@ -0,0 +1,7 @@
<article>
<p>In these SVG files, 10 units of SVG space should correspond to one inch of real world space.</p>
<p>Here are, perhaps, the slices that I need:</p>
<img src="slices.svg"/>
<p>And here, again perhaps, are the slices arranged in some way:</p>
<img src="second_slices.svg"/>
</article>

View File

@ -0,0 +1,69 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 500 500"
preserveAspectRatio="meet"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
text {
font-size: 10px;
stroke: none !important;
}
use {
stroke: red;
stroke-width: 1px;
}
circle, path {
fill: none;
stroke: red;
stroke-width: 1px;
}
</style>
<use id="spacer" xlink:href="slices.svg#small-spacer"/>
<use id="spacer-with-teeth" xlink:href="slices.svg#spacer-with-teeth"/>
<use id="big-spacer" xlink:href="slices.svg#big-spacer"/>
<g id="spacer-column">
<use xlink:href="#spacer" transform="translate(0,0)"/>
<use xlink:href="#spacer" transform="rotate(60) translate(65,0)"/>
<use xlink:href="#spacer" transform="rotate(60) translate(65,0) rotate(60) translate(65,0)"/>
<use xlink:href="#spacer" transform="rotate(60) translate(65,0) rotate(60) translate(65,0) rotate(-60) translate(65,0)"/>
</g>
</defs>
<g transform="translate(50,50)">
<text y="-40">sixteen small barrel spacers</text>
<g class="barrel-mid">
<use xlink:href="#spacer-column"/>
<use xlink:href="#spacer-column"/>
<use xlink:href="#spacer-column" transform="translate(65,0)"/>
<use xlink:href="#spacer-column" transform="translate(65,0) translate(65,0)"/>
</g>
<g class="barrel-end">
<use xlink:href="#spacer-column" transform="translate(65,0) translate(65,0) translate(65, 0)"/>
</g>
</g>
<g class="barrel-end" transform="translate(50,300)">
<text y="-40">large barrel end spacer</text>
<use xlink:href="#big-spacer" transform="translate(0,0)"/>
<use xlink:href="#big-spacer" transform="translate(0,0) rotate(60) translate(70,0)"/>
<use xlink:href="#big-spacer" transform="translate(70,0)"/>
<use xlink:href="#big-spacer" transform="translate(70,0) rotate(60) translate(70,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(140,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(140,0) rotate(60) translate(70,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(210,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(210,0) rotate(60) translate(70,0)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,130 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 500 500"
preserveAspectRatio="meet"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
text {
font-size: 10px;
}
circle, path {
fill: none;
stroke-width: 1px;
}
.barrel-mid {
stroke: black;
}
.barrel-end {
stroke: orange;
}
</style>
<circle id="hole" r="5"/>
<g id="positioned-hole">
<use xlink:href="#hole" transform="translate(-20, 0)"/>
</g>
<g id="hole-set">
<use xlink:href="#positioned-hole" transform="rotate(0)"/>
<use xlink:href="#positioned-hole" transform="rotate(60)"/>
<use xlink:href="#positioned-hole" transform="rotate(120)"/>
<use xlink:href="#positioned-hole" transform="rotate(180)"/>
<use xlink:href="#positioned-hole" transform="rotate(240)"/>
<use xlink:href="#positioned-hole" transform="rotate(300)"/>
</g>
<path id="tooth" d="M -3,0 L -2,4 L 2,4 L 3,0"/>
<g id="positioned-tooth">
<use xlink:href="#tooth" transform="translate(-30) rotate(90)"/>
</g>
<path id="tooth-with-arc" d="
M29.8457,-3.03857
L34,-2
V2
L29.8457, 3.03857
A 30,30 0 0 1 27.3664,12.2914
"/>
<g id="three-teeth">
<use xlink:href="#tooth-with-arc" transform="rotate(0)"/>
<use xlink:href="#tooth-with-arc" transform="rotate(30)"/>
<use xlink:href="#tooth-with-arc" transform="rotate(60)"/>
</g>
<g id="tooth-set">
<use xlink:href="#three-teeth" transform="rotate(0)"/>
<use xlink:href="#three-teeth" transform="rotate(90)"/>
<use xlink:href="#three-teeth" transform="rotate(180)"/>
<use xlink:href="#three-teeth" transform="rotate(270)"/>
</g>
<g id="small-spacer">
<circle r="30"/>
<circle r="5"/>
<use xlink:href="#hole-set"/>
</g>
<g id="big-spacer">
<circle r="34"/>
<use xlink:href="#hole-set"/>
</g>
<g id="spacer-with-teeth">
<use xlink:href="#hole-set"/>
<use xlink:href="#tooth-set"/>
</g>
<g id="barrel-spacer-set">
<use xlink:href="#small-spacer" transform="translate(0,0)"/>
<use xlink:href="#small-spacer" transform="translate(100,0)"/>
<use xlink:href="#small-spacer" transform="translate(200,0)"/>
<use xlink:href="#small-spacer" transform="translate(300,0)"/>
</g>
</defs>
<g transform="translate(50,50)">
<text y="-40">Barrel spacer #1</text>
<use xlink:href="#barrel-spacer-set" class="barrel-mid"/>
</g>
<g transform="translate(50,150)">
<text y="-40">Barrel spacer #2</text>
<use xlink:href="#barrel-spacer-set" class="barrel-mid"/>
</g>
<g transform="translate(50,250)">
<text y="-40">Barrel spacer #3</text>
<use xlink:href="#barrel-spacer-set" class="barrel-mid"/>
</g>
<g transform="translate(50,350)">
<text y="-40">End barrel spacer</text>
<use xlink:href="#barrel-spacer-set" class="barrel-end"/>
</g>
<g transform="translate(50,450)">
<text y="-40">Barrel end with holes</text>
<g class="barrel-end">
<use xlink:href="#big-spacer" transform="translate(0,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(100,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(200,0)"/>
<use xlink:href="#spacer-with-teeth" transform="translate(300,0)"/>
<use xlink:href="#big-spacer" transform="translate(400,0)"/>
</g>
</g>
<g transform="translate(450,50)">
<use xlink:href="#big-spacer"/>
<use xlink:href="#spacer-with-teeth"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,82 @@
<article id="tattoo_elements">
<style type="text/css">
#tattoo_elements li { margin-bottom: 1em; }
</style>
<p><a href="http://chemistry.bd.psu.edu/jircitano/periodic4.html">thanks to this site for the images!</a> feel free to suggest other good elements from there.</p>
<ul>
<li><img src="http://chemistry.bd.psu.edu/jircitano/Au.gif" />Gold
<li><img src="http://chemistry.bd.psu.edu/jircitano/Pt.gif" />Platinum
<li><img src="http://chemistry.bd.psu.edu/jircitano/Ag.gif" />Silver
<li><img src="http://chemistry.bd.psu.edu/jircitano/He.gif" />Helium
<li><img src="http://chemistry.bd.psu.edu/jircitano/Li.gif" />Lithium
<li><img src="http://chemistry.bd.psu.edu/jircitano/Be.gif" />Beryllium
<li><img src="http://chemistry.bd.psu.edu/jircitano/Pb.gif" />Lead
<li><img src="http://chemistry.bd.psu.edu/jircitano/Cd.gif" />Cadmium
<li><img src="http://chemistry.bd.psu.edu/jircitano/Si.gif" />Silicon
<li><img src="http://chemistry.bd.psu.edu/jircitano/Ca.gif" />Calcium
</ul>
<p>for use on the results of <a href="http://physics.nist.gov/PhysRefData/ASD/lines_form.html">this atomic spectra database</a>:</p>
<p>CSS:</p>
<pre>
.ac {
background-color: red;
display: inline-block;
width: 1px;
height: 200px;
}
</pre>
<p>javurscript:</p>
<pre>
var jq = document.createElement('script');
jq.src = "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
</pre>
<p>wait a moment and more javascript:</p>
<pre>
jQuery.noConflict();
$ = jQuery;
var the_table = $($('table')[4]);
function do_stuff(start, end, intensity_cutoff) {
var wavelengths = [];
$(the_table.find('tbody')[1]).find('tr').each(function() {
if ($(this).hasClass('evn') || $(this).hasClass('odd')) { $(this).show(); }
else { $(this).hide(); return true; }
var wavelength_cell = $($(this).find('td')[0]);
var wavelength = parseFloat(wavelength_cell.text());
if (wavelength &gt;= start && wavelength &lt;= end) { $(this).show(); }
else { $(this).hide(); return true;}
var intensity_cell = $($(this).find('td')[2]);
var intensity = parseInt(intensity_cell.text(), 10);
if (intensity &gt;= intensity_cutoff) { $(this).show(); }
else { $(this).hide(); return true;}
wavelengths.push((wavelength - start)/(end - start));
});
return wavelengths;
}
the_table.after($('&lt;div id="shoof-thing"&gt;&lt;/div&gt;').attr('height', '100px').attr('width', '100%'));
var c = $('#shoof-thing')
function new_thing(x) { return $('&lt;div&gt;&lt;/div&gt;').addClass('ac').css('margin-left', x); }
var w = do_stuff(380, 760, 9);
var l = w.length;
var o = [];
$.each(w, function(i, v) {
if (i == 0) { o.push("" + (v*95) + "%"); }
else { o.push("" + ((v-w[i-1])*95) + "%"); }
});
c.children().remove();
$.each(o, function(i, v) { c.append(new_thing(v)); });
</pre>
</article>

12
start_in_screen.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
name_of_screen="auriga"
if screen -S $name_of_screen -X select .; then
echo "a screen session was found"
else
echo "a screen session was not found; making one now"
screen -Udm -S $name_of_screen
fi
screen -S $name_of_screen -X stuff $'./gunicorn_server_start\n'

View File

@ -0,0 +1,12 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 1000 1000"
preserveAspectRatio="meet"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
</svg>

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
static/levelup_95.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

92
static/sleepy.html Executable file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,17 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 1000 1000"
preserveAspectRatio="meet"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="blue_dots">
<rect x="38" y="-12" width="124" height="24" style="fill:grey;"/>
<circle cy="0" cx="50" r="10" style="fill:blue;stroke:black;stroke-width:1px"/>
<circle cy="0" cx="100" r="10" style="fill:blue;stroke:black;stroke-width:1px"/>
<circle cy="0" cx="150" r="10" style="fill:blue;stroke:black;stroke-width:1px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 636 B

47
static/svg_issue/main.svg Normal file
View File

@ -0,0 +1,47 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 600 600"
preserveAspectRatio="meet"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<g id="red_dots">
<rect x="38" y="-12" width="124" height="24" style="fill:grey;"/>
<circle cy="0" cx="50" r="10" style="fill:red;stroke:black;stroke-width:1px"/>
<circle cy="0" cx="100" r="10" style="fill:red;stroke:black;stroke-width:1px"/>
<circle cy="0" cx="150" r="10" style="fill:red;stroke:black;stroke-width:1px"/>
</g>
</defs>
<g transform="translate(50,50)">
<g id="local_reference">
<rect x="-5" y="-15" width="550" height="50" style="fill:lightgrey;"/>
<text>These dots are defined in this file, and referenced with the SVG "use" element.</text>
<use xlink:href="#red_dots" transform="translate(0,15)"/>
</g>
<g transform="translate(0,100)">
<use xlink:href="#local_reference" />
<text x="0" y="50">This is a reference to the above group, including the text.</text>
</g>
</g>
<g transform="translate(50,300)">
<g id="imported">
<rect x="-5" y="-15" width="550" height="50" style="fill:lightgrey;"/>
<text>These dots are defined in another file, and imported with another "use" tag.</text>
<use xlink:href="external_source.svg#blue_dots" transform="translate(0,15)"/>
</g>
<g transform="translate(0,100)">
<use xlink:href="#imported"/>
<text x="0" y="50">This is a reference to the above group, in the same manner as with the local references.</text>
<text x="0" y="70">Where did the dots go???</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB