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
""" | |
An example of the determinism of pymunk by coloring balls according to their | |
position, and then respawning them to verify each ball ends up in the same | |
place. Inspired by Pymunk user Nam Dao. | |
""" | |
import os | |
import random |
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
from os.path import join | |
from pythonforandroid.recipe import CompiledComponentsPythonRecipe | |
class PymunkRecipe(CompiledComponentsPythonRecipe): | |
name = "pymunk" | |
version = "6.0.0" | |
url = "https://pypi.python.org/packages/source/p/pymunk/pymunk-{version}.zip" | |
depends = ["cffi", "setuptools"] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
set MB_JETTY_PORT=%MB_JETTY_PORT: =% | |
"%JAVA_HOME%\bin\java.exe" -Djava.net.preferIPv4Stack=true -jar ./metabase.jar |
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
from pythonforandroid.toolchain import PythonRecipe | |
from pythonforandroid.recipe import CompiledComponentsPythonRecipe | |
import os.path | |
class PymunkRecipe(CompiledComponentsPythonRecipe): | |
name = "pymunk" | |
version = '5.1.0' | |
url = 'https://pypi.python.org/packages/6e/c3/ac05e3309dc4b4a2f450822fa0de569bf5fe40f57a56e009319f99636955/pymunk-{version}.zip' |
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
import os, os.path | |
import platform | |
import sys | |
from distutils.command.build_ext import build_ext | |
import distutils.ccompiler as cc | |
from setuptools import Extension | |
from setuptools import setup | |
def get_arch(): |
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
import time | |
import pyglet | |
import pymunk | |
import pymunk.pyglet_util | |
import sys | |
window = pyglet.window.Window(width = 800, height = 600) | |
space = pymunk.Space() | |
space.gravity = 0, -980 |
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
"""This module contain functions used to load the chipmunk dll/lib file""" | |
__version__ = "$Id$" | |
import os.path | |
import platform | |
import sys, imp, os | |
import ctypes | |
def platform_specific_functions(): | |
# use stddecl on windows, cdecl on all other platforms |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/emicklei/go-restful" | |
"github.com/emicklei/go-restful/swagger" | |
) |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/emicklei/go-restful" | |
"github.com/emicklei/go-restful/swagger" | |
) | |
type User struct { |
NewerOlder