// jQuery
$(document).ready(function() {
// code
})
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
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
}; | |
NodeList.prototype.__proto__ = Array.prototype; |
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
<VirtualHost *:80> | |
ServerAdmin you@yourdomain.com | |
ServerName yourdomain.com | |
ServerAlias www.yourdomain.com | |
DocumentRoot /path/to/yourdomain | |
Redirect / https://yourdomain.com/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerAdmin you@yourdomain.com |
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 src="https://unpkg.com/@webcomponents/custom-elements"></script> | |
<style> | |
body { | |
margin: 0; | |
} | |
/* Style the element from the outside */ | |
/* | |
fancy-tabs { | |
margin-bottom: 32px; |
To see a bit more about how the internals of CadQuery work, let's mokeypatch some more verbose string represenations and create a simple model.
import cadquery as cq
def _ctx_str(self):
return (
f"CQContext object with id: {id(self)}\n"
+ f" pendingWires: {self.pendingWires}\n"