๐
This file contains hidden or 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
import os | |
import sys | |
import time | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from kivy.core.window import Window | |
from kivy.core.image import Image | |
from kivy.uix.widget import Widget | |
from kivy.uix.stencilview import StencilView |
This file contains hidden or 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
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.core.window import Window | |
from kivy.uix.widget import Widget | |
from kivy.resources import resource_find | |
from kivy.graphics.transformation import Matrix | |
from kivy.graphics.opengl import * | |
from kivy.graphics import * | |
from objloader import ObjFile |
This file contains hidden or 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
import os | |
import sys | |
import time | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from kivy.core.window import Window | |
from kivy.core.image import Image | |
from kivy.uix.widget import Widget | |
from kivy.uix.stencilview import StencilView |
This file contains hidden or 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
import os | |
import sys | |
import time | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from kivy.core.window import Window | |
from kivy.core.image import Image | |
from kivy.uix.widget import Widget | |
from kivy.uix.stencilview import StencilView |
This file contains hidden or 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
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.config import Config | |
Config.set('graphics', 'width', '600') | |
Config.set('graphics', 'height', '400') | |
gui = """ | |
#:kivy 1.0 | |
BoxLayout: |
This file contains hidden or 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
from kivy.base import runTouchApp | |
from kivy.lang import Builder | |
KV = ''' | |
#:import Animation kivy.animation.Animation | |
FloatLayout: | |
BoxLayout: | |
id: box | |
x:0 | |
orientation: 'vertical' |
This file contains hidden or 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
import os | |
import sys | |
from PIL import Image | |
from cairo import FontOptions, SVGSurface, ImageSurface, Context, Matrix | |
from cairo import FORMAT_ARGB32, FONT_SLANT_NORMAL, FONT_WEIGHT_BOLD, ANTIALIAS_SUBPIXEL, LINE_JOIN_ROUND | |
from gi.repository import Pango | |
from gi.repository import PangoCairo | |
This file contains hidden or 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
#quick with wget http://tinyurl.com/py4asetup > setup.sh & chmod +x setup.sh | |
#python-4-android and buildozer requirements | |
apt-get install libc6-dev-i386 ia32-libs-multiarch ragel | |
apt-get install build-essential python-dev zlib1g-dev python-pip | |
pip install cython==0.21.2 | |
#checkout android if we are not using biuldozer, python for android does nto do this for you | |
mkdir -p /opt/android/ | |
cd /opt/android/ |
This file contains hidden or 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
# place this in your project folder next to buikldozer.spec | |
# docker build -t buildozer . | |
# docker run buildozer | |
# your package should then be built | |
# VERSION 0.0.1 | |
#FROM ubuntu | |
#FROM ubuntu:15.04 | |
FROM ubuntu:16.04 | |
MAINTAINER Oliver Marks "[email protected]" |
This file contains hidden or 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
import os | |
import json | |
import uuid | |
import random | |
import unittest | |
import numpy as np | |
from flask import Flask, jsonify | |
app = Flask(__name__) |
OlderNewer