Skip to content

Instantly share code, notes, and snippets.

View wojtossfm's full-sized avatar

Wojciech Michalak wojtossfm

View GitHub Profile
@wojtossfm
wojtossfm / adjust_synty_fbx.py
Last active June 19, 2020 15:37
The synty FBX files appear jumbled when imported into blender/godot and need to be fixed before they can be used. Tested with blender 2.80 and python3.7 (but 3.X should work) on windows but should work on other OSes.
import sys
import argparse
import pathlib
import subprocess
try:
import bpy
except ImportError:
bpy = None
@wojtossfm
wojtossfm / test_asyncio.py
Created October 22, 2016 14:21
Example for python 3.5 showing how example code can cause missed done messages. Contains also alternative example code.
import unittest
import asyncio
import random
def generate_numbers():
for index in range(100):
yield index
@wojtossfm
wojtossfm / test_upload_download.py
Created April 18, 2015 12:10
Created this gist basing on test code that I put together for a project I'm working on. Some of it is a bit rough, but it's meant to be a gist to help others save time .
#!/usr/bin/python2
# -*- coding: utf-8 -*-
import unittest
import webtest
import base64
import datetime
import hashlib
import os