Skip to content

Instantly share code, notes, and snippets.

Selection may vary by location and season. Last updated Nov 1, 2012.
Blanco
(Silver or White Tequila)
Stored in stainless steel casks and bottled within sixty days of being distilled. Considered by experts to have the “true” aroma and flavor of the blue agave. Ideal for mixing in one of your favorite margaritas.
1800
const {Cu,components} = require("chrome");
Cu.import("resource://gre/modules/NetUtil.jsm");
Cu.import("resource://gre/modules/FileUtils.jsm");
Cu.import('resource://gre/modules/DownloadIntegration.jsm')
var windowutils = require('sdk/window/utils');
var tabs = require('sdk/tabs/utils');
var buttons = require('sdk/ui/button/action');
exports.set = function(aData, aDataType) {
let options = {
data: aData,
datatype: aDataType || "text"
};
// If `aDataType` is not given or if it's "image", the data is parsed as
// data URL to detect a better datatype
if (aData && (!aDataType || aDataType === "image")) {
exports.get = function(aDataType) {
let options = {
datatype: aDataType
};
// Figure out the best data type for the clipboard's data, if omitted
if (!aDataType) {
if (~currentFlavors().indexOf("image"))
options.datatype = "image";
else
[profile_0]
layer_height = .2
wall_thickness = 2.0
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 10
nozzle_size = 0.35
print_speed = 40
print_temperature = 0
print_temperature2 = 0
2014-08-12 [16:41:55] <John-Galt> KattT: Can we get a punching bag?
2014-08-12 [16:44:48] <KattT> John-Galt: Sounds feasible, what's your game plan? Do you have a suggested location for it?
2014-08-12 [16:45:51] <John-Galt> Hm...
2014-08-12 [16:46:02] <John-Galt> By my desk?
2014-08-12 [16:46:14] <John-Galt> There's an openish area here...
2014-08-12 [16:46:34] <dcamp> I'll fight you for it
2014-08-12 [16:46:59] <dcamp> (actually can we not put a punching bag in this nice quiet area)
2014-08-12 [16:47:07] <dcamp> (but can we pleeeaaase get a punching bag)
diff --git a/validator/rdf.py b/validator/rdf.py
index 0d1e966..ebc6c0d 100644
--- a/validator/rdf.py
+++ b/validator/rdf.py
@@ -1,7 +1,7 @@
import types
from defusedxml.sax import parse
-from rdflib import Graph, URIRef
+from rdflib import Graph, Literal, URIRef
from rdflib import Graph, Literal, URIRef
from rdflib.plugins.parsers import rdfxml
from rdflib.plugins.parsers.rdfxml import RDFNS, UNQUALIFIED, XMLNS
class AddonRDFXMLHandler(rdfxml.RDFXMLHandler):
def convert(self, name, qname, attrs):
if name[0] is None:
name = URIRef(name[1])
else:
diff --git a/validator/rdf.py b/validator/rdf.py
index 0d1e966..50f71ef 100644
--- a/validator/rdf.py
+++ b/validator/rdf.py
@@ -3,10 +3,37 @@ import types
from defusedxml.sax import parse
from rdflib import Graph, URIRef
from rdflib.exceptions import ParserError
+from rdflib.plugins.parsers import rdfxml
+from rdflib.plugins.parsers.rdfxml import RDFNS, UNQUALIFIED, XMLNS
<?xml version="1.0" encoding="UTF-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:emver="http://www.mozilla.org/2004/em-rdf#ver"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest"
em:id="scriptify@dactyl.googlecode.com"
em:name="Scriptify"
em:type="2"
emver:sion="0.2.6"
em:description="Userscript add-on creator and manager."