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 kivy.lang import Builder | |
from kivy.app import App | |
KV = ''' | |
<Node@Scatter>: | |
# do_scale: False | |
# do_rotation: False | |
size_hint: None, None | |
size: 200, 100 | |
color: [0, 0, 0, 1] |
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 kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.core.window import Window | |
class KeyDown(App): | |
def build(self): | |
Window.bind(on_key_down=self.key_action) | |
return Widget() |
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 kivy.app import App | |
from kivy.properties import NumericProperty | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
kv = """ | |
BoxLayout: | |
Widget: | |
Scatter: | |
center: self.parent.center |
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
#!/usr/bin/env bash | |
echo '--------------------------------------------------------------- ' | |
echo ' Xperia 2011 ICS Easy Rooting toolkit (v1.0) ' | |
echo ' created by DooMLoRD ' | |
echo ' linux conversion by tshirtman ' | |
echo ' "andorid emulator" trick ' | |
echo ' Credits go to all those involved in making this possible! ' | |
echo '--------------------------------------------------------------- ' | |
echo ' [*] This script will: ' | |
echo ' (1) root ur device using "andorid emulator" trick ' |
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 kivy.app import App | |
from kivy.factory import Factory as F | |
from kivy.core.window import Window as W | |
class CrossHairCursorApp(App): | |
def build(self): | |
root = F.Widget() | |
with root.canvas.after: | |
self.v_line = F.Line(points=[]) |
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 kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty, StringProperty, NumericProperty | |
from kivy.graphics import Mesh | |
from kivy.core.window import Window | |
from kivy.core.image import Image | |
from math import sin, cos, pi | |
texture_tree = Image('texture_tree.png').texture |
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 kivy.app import App | |
from kivy.garden.magnet import Magnet | |
from kivy.uix.image import Image | |
from kivy.properties import ObjectProperty | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from os import listdir | |
IMAGEDIR = '/usr/share/icons/hicolor/32x32/apps/' |
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
''' | |
radial gradient in glsl | |
''' | |
from kivy.app import App | |
from kivy.graphics import RenderContext, Rectangle | |
from kivy.uix.widget import Widget | |
from kivy.properties import ListProperty | |
from kivy.clock import Clock | |
from kivy.animation import Animation | |
from kivy.uix.gridlayout import GridLayout |
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
''' | |
line instruction in shadder | |
''' | |
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.clock import Clock | |
from kivy.properties import ListProperty, NumericProperty, ObjectProperty | |
from kivy.core.window import Window | |
from kivy.graphics import RenderContext, Rectangle, Color | |
from random import random |