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
# ================================================================================ | |
# Project: Kivy.Statechart - A Statechart Framework for Kivy | |
# Copyright: ©2010, 2011 Michael Cohen, and contributors. | |
# Python Port: Jeff Pittman, ported from SproutCore, SC.Statechart | |
# ================================================================================ | |
from kivy.statechart.system.state import State | |
from kivy.statechart.mixins.statechart_delegate import StatechartDelegate | |
from kivy.properties import AliasProperty | |
from kivy.logger import Logger |
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.clock import Clock | |
from kivy.event import EventDispatcher | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.uix.label import Label | |
from kivy.uix.widget import Widget | |
from kivy.properties import ObjectProperty, DictProperty, NumericProperty | |
from kivy.lang import Builder | |
from math import ceil, floor | |
Builder.load_string(''' |
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
#!/usr/bin/env python | |
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.properties import ObjectProperty, NumericProperty | |
from kivy.lang import Builder | |
Builder.load_string(''' | |
<ArrowPointer>: | |
canvas: | |
Color: |
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
Berkelium extension for Kivy | |
============================ | |
Berkelium is a BSD licensed library for offscreen rendering via Chromium | |
project. Check http://berkelium.org/ for more information about it. We are using | |
a patched version of Berkelium, available at https://github.com/tito/berkelium | |
(branch chromium8-alternate-bin) | |
Notes |
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
--- s2member/includes/classes/files-in.inc.php.orig 2012-05-15 23:54:49.237836777 +0000 | |
+++ s2member/includes/classes/files-in.inc.php 2012-05-15 23:54:18.831603878 +0000 | |
@@ -725,7 +725,14 @@ | |
$cf_stream_extn_resource_exclusions = array_unique((array)apply_filters("ws_plugin__s2member_amazon_cf_file_streaming_extension_resource_exclusions", array("mp3" /* MP3 files should NOT include an extension in their resource reference. */), get_defined_vars())); | |
$cf_resource = ($stream) ? ((in_array($cf_extn, $cf_stream_extn_resource_exclusions)) ? substr($file, 0, strrpos($file, ".")) : $file) : "http".(($ssl) ? "s" : "")."://".(($cfc["distro_downloads_cname"]) ? $cfc["distro_downloads_cname"] : $cfc["distro_downloads_dname"])."/".$file; | |
$cf_url = ($stream) ? "rtmp".(($ssl) ? "e" : "")."://".(($cfc["distro_streaming_cname"]) ? $cfc["distro_streaming_cname"] : $cfc["distro_streaming_dname"])."/cfx/st/".$file : "http".(($ssl) ? "s" : "")."://".(($cfc["distro_downloads_cname"]) ? $cfc["distro_downloads |
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
cdef extern from "stdlib.h": | |
char *c_getenv "getenv" (char *name) | |
def getenv(name): | |
char *ret = c_getenv(<bytes>name) | |
if ret == NULL: | |
return None | |
return PyString_FromString(ret) |
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
[pid 13379] open("b", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("p", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("m", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("n", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open(".", O_RDONLY) = 23 | |
[pid 13379] open("u", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("i", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("a", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("s", O_RDONLY) = -1 ENOENT (No such file or directory) | |
[pid 13379] open("e", O_RDONLY) = -1 ENOENT (No such file or directory) |
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.graphics import Mesh, RenderContext, Color, Callback | |
from kivy.graphics.opengl import glDisable, glEnable, GL_DEPTH_TEST | |
from kivy.graphics.transformation import Matrix | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty | |
from kivy.core.window import Window |
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
79 def get_application_config(self): | |
80 user_home_dir = expanduser('~') | |
81 if platform() == 'android': | |
82 user_home_dir = '/sdcard' | |
83 elif platform() == 'ios': | |
84 user_home_dir = join(user_home_dir, 'Documents') | |
85 return join(user_home_dir, '.myconfig.ini') |
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.uix.scatter import Scatter | |
from kivy.lang import Builder | |
from kivy.app import App | |
from kivy.properties import ListProperty | |
Builder.load_string(''' | |
<ColoredScatter>: | |
size_hint: None, None | |
canvas: | |
Color: |