Skip to content

Instantly share code, notes, and snippets.

import openai
import json
AZURE_OPENAI_API_KEY = "AZURE_KEY"
AZURE_OPENAI_API_BASE = "AZURE_BASE_URL"
AZURE_OPENAI_API_VERSION = "2023-05-15"
openai.api_type = "azure"
@mcancellieri
mcancellieri / 3dprintingworkshop.scad
Created May 30, 2018 10:56
3D printing workshop OpenScad code
$fn=128;
//////
cylinder(h=5, r1=15, r2=13);
//////
cylinder(h=40, r1=8, r2=5);
//////
translate([0,0,45])
//////
difference() {
union() {
@mcancellieri
mcancellieri / CORE article
Last active May 1, 2018 16:04
A sample CORE article
{
"id": "1511033",
"authors": ["Bizer, Christian", "Heath, Tom", "Berners-Lee, Tim"],
"citations": [{
"id": 36190556,
"title": "A Declarative Framework for Semantic Link Discovery over Relational Data. Poster at 18th World Wide Web Conference",
"authors": [],
"date": "2009",
"doi": "10.1145/1526709.1526876",
"raw": "Hassanzadeh, O., et al. (2009). A Declarative Framework for Semantic Link Discovery over Relational Data. Poster at 18th World Wide Web Conference (WWW2009).",
@mcancellieri
mcancellieri / traceabilitymatrix.js
Last active August 29, 2015 13:59
Create a traceability matrix in a spreadsheet with Google docs.
/**
* Instructions:
* WARNING: all the titles you want to collect should have a common and unique style!
* 1) Go to your first document.
* 2) Open your second document in a new tab.
* 3) On the first document go to Tools->Scripts
* 4) Paste this code on a blank project
* 5) Properly fill the variables below.
* 6) Hit Run onOpen() to add a menu voice
* 7) Hit REQ->'Create traceability matrix' to run it.