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> | |
var islands = document.querySelectorAll("h3 + ul"); // returns array | |
islands.forEach(function (child) { | |
let par = child.parentNode ; | |
let pre = child.previousElementSibling; | |
var sec = document.createElement('section'); | |
par.replaceChild(sec,pre); | |
sec.appendChild(pre); | |
sec.appendChild(child); | |
sec.setAttribute("class","standout" ); |
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
[dacresni@jupyterhub geonode]$ paver setup | |
---> pavement.setup | |
---> pavement.setup_geoserver | |
makedirs path('downloaded') |
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
[Unit] | |
Description=Caddy HTTP/2 web server | |
Documentation=https://caddyserver.com/docs | |
After=network.target | |
[Service] | |
User=caddy | |
#User=root | |
PermissionsStartOnly=true | |
ExecStartPre=/sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy |
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
void MainWindow::on_actionAddTable_triggered() | |
{ | |
//add table | |
QTableWidget* newTable = new QTableWidget( 3, 3); | |
newTable->setHorizontalHeaderLabels(QStringList()<<"1"<<"2"<<"3"); | |
newTable->setVerticalHeaderLabels(QStringList()<<"A"<<"B"<<"C"); | |
qDebug() <<" table labled"; | |
// row mod(26) = letter | |
QWidget * thisPage = pageStack->currentWidget(); | |
QGraphicsView * thePage = dynamic_cast<QGraphicsView*>(thisPage); |
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
you may be able to get BSD portability (with macos for free) if you use sysctl instead of the NS namespace like NSGetExecutablePath. could you use sysctl? kern.proc.pid ? | |
( see http://www.unix.com/man-page/FreeBSD/3/sysctl/) KERN_PROC_PID) honistly this will be |