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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import sys | |
import json | |
from urllib.parse import urlparse | |
import boto3 | |
from pyspark.sql import SparkSession | |
from icecream import ic |
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
@Grab('com.hp.hpl.jena:jena:2.6.4') | |
@Grab('com.hp.hpl.jena:arq:2.8.8') | |
import groovy.sparql.Sparql | |
// Can also take a Jena model as an argument | |
def sparql = new Sparql("http://dbpedia.org/sparql") | |
def query = """ | |
SELECT ?abstract |
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
"/asset-library/UCI/SCA_UniversityArchives/Collection/AS-055/AS-055_b1_f6_001.tif" | |
"/asset-library/UCI/SCA_UniversityArchives/Collection/AS-055/AS-055_b1_f6_013.tif" | |
"/asset-library/UCI/SCA_UniversityArchives/Collection/AS-055/AS-055_b1_f6_028.tif" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_A.mov" | |
"/asset-library/UCI/SCA_UniversityArchives/Collection/AS-136/UCI_AS_136.mp4" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_B.mov" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_C.mov" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_D.mov" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_E.mov" | |
"/asset-library/UCI/SCA_UniversityArchives/Faculty_Chancellors/Rowland,_F._Sherwood/UCI_F.mov" |
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
<http://www.w3.org/2001/XMLSchema#date> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Datatype> . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#NamedIndividual> . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://library.ucsd.edu/ontology/dams/#Role> . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://www.w3.org/2000/01/rdf-schema#label> "associated_name"@en . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://library.ucsd.edu/ontology/dams/#code> "asn"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://library.ucsd.edu/ontology/dams/#value> "associated name"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://library.ucsd.edu/ontology/dams/#Associated_name> <http://library.ucsd.edu/ontology/dams/#authorityURI> "http://www.loc |
on-line calculator version: http://tingletech.github.com/bayesian-credible-interval/
Based on d3.js box plots example, this page calculates bayesian credible intervals for a discrete random variable pop-up user survey.
The coding logic of how to do this was explained to me in R by Zen on stats.stackexchange.com and I translated this to python and now to javascript.
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
BRIAN-TINGLEs-MacBook-Air:~ tingle$ java -version | |
java version "1.6.0_37" | |
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) | |
BRIAN-TINGLEs-MacBook-Air:~ tingle$ uname -a | |
Darwin BRIAN-TINGLEs-MacBook-Air.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 | |
BRIAN-TINGLEs-MacBook-Air:~ tingle$ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.7.5 | |
BuildVersion: 11G63 |
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
see now https://github.com/tingletech/greeker.py | |
usage: greeker.py [-h] [--piglatin] [infile] [outfile] | |
Create greeked text for XML testing. | |
positional arguments: | |
infile input XML (or standard input) | |
outfile output greeked XML (or standard out) |
NewerOlder