This file contains hidden or 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
const style = `font-family: ${data.fontFamily ? data.fontFamily : 'sans-serif'};` + | |
// `fontSize: ${data.fontSize ? data.fontSize : '24'}px;` + | |
`font-size: 48px;` + | |
`font-color: ${data.fontColor ? data.fontColor : 'inherit;'}` + | |
`align: center;` + | |
`vertical-align: middle` | |
const contentToSerialize = `<div style="${style}">${content}</div>` | |
const canvas = document.createElement('canvas') |
This file contains hidden or 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
/** | |
* connectedCalled - WebComponents LifeCycle method | |
*/ | |
connectedCallback() : void { | |
console.log("UnicodeGlpyhSelector::connectCallback") | |
/* | |
The task at hand: On connection to the DOM, wire up the individual menus for this component | |
with the event handlers that will handle them. | |
There are 4 components, and likewise 4 functions to handle events respectively for | |
The Glyph category |
This file contains hidden or 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
import json | |
import csv | |
from geojson_rewind import rewind | |
def is_clockwise(poly): # linear-ring analysis function, checks for directionality of ring winding | |
total = poly[-1][0] * poly[0][1] - poly[0][0] * poly[-1][1] | |
for i in range(len(poly) - 1): | |
total += poly[i][0] * poly[i + 1][1] - poly[i + 1][0] * poly[i][1] | |
if total <= 0: |
This file contains hidden or 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
sudo apt-get install xnest openbox bubblefishymon wmmon wmbubble wmforkplop wmhdplop wmnd asmon wmcalclock wmmoonclock oneko | |
# make a script, call it: monitor.sh or something | |
# fill it with this: | |
Xnest :1 -s 0 -geometry 68x640+0+150 & | |
sleep 1 | |
DISPLAY=:1 | |
openbox & |
This file contains hidden or 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
# EPIC Daily “Blue Marble” API | |
The API URL is: http://epic.gsfc.nasa.gov/api/images.php | |
This gets you a list of the latest day’s images & metadata. | |
OR | |
http://epic.gsfc.nasa.gov/api/images.php?date=YYYY-M-D&w=X&e=Y |