Skip to content

Instantly share code, notes, and snippets.

@PadreZippo
PadreZippo / sketchfab-v2-upload.sh
Created May 6, 2020 — forked from fredericcambon/sketchfab-v2-upload.sh
Sketchfab - v2 api upload bash script
View sketchfab-v2-upload.sh
#!/bin/bash -e
##
# Sample script for uploading to sketchfab
# using the v2 api
##
##
# Uploading a model to Sketchfab is a two step process
#
@PadreZippo
PadreZippo / SketchfabUpload.cs
Created May 6, 2020 — forked from Kuranes/SketchfabUpload.cs
Sketchfab Upload using c# .net
View SketchfabUpload.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Test
@PadreZippo
PadreZippo / sketchfab-v2-oauth2.php
Created May 6, 2020
php sample for using sketchfab oauth2 api
View sketchfab-v2-oauth2.php
<?php
$CLIENT_ID = "YOUR_CLIENT_ID"
$CLIENT_SECRET = "YOUR_CLIENT_SECRET"
$REDIRECT_URI = 'https://your-website.com/oauth2_redirect'
$AUTHORIZE_URL = "https://sketchfab.com/oauth2/authorize/"
$ACCESS_TOKEN_URL = "https://sketchfab.com/oauth2/token/"
// 1. Ask for an authorization code at
@PadreZippo
PadreZippo / README.md
Created May 6, 2020
Sketchfab - v2 api upload php script
View README.md
@PadreZippo
PadreZippo / sketchfab-v2-upload-requests.py
Created May 6, 2020 — forked from pierreant-p/sketchfab-v2-upload-requests.py
Sketchfab - v2 api upload with requests library
View sketchfab-v2-upload-requests.py
##
# Sample script for uploading to sketchfab
# using the v2 api and the requests library
##
from time import sleep
# import the requests library
# http://docs.python-requests.org/en/latest
# pip install requests
import requests
View Slider API.html
<!DOCTYPE html>
<html>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://d2f25wgezub9nf.cloudfront.net/api/sketchfab-viewer-1.0.0.js"></script>
<script src="slider.js"></script>
<div align="center">
<iframe id="api-frame" height="480" width="640"></iframe>
@PadreZippo
PadreZippo / css
Last active Mar 28, 2021
iframes with constant aspect ratios
View css
.ratio-16-9,
.ratio-16-10,
.ratio-square {
display: block;
position: relative;
width: 100%;
height: 0;
}
.ratio-16-9 {