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 React, { Component, PropTypes } from 'react' | |
import ReactDOM from 'react-dom' | |
import keycode from 'keycode' | |
import TextField from 'material-ui/TextField' | |
import Menu from 'material-ui/Menu' | |
import MenuItem from 'material-ui/MenuItem' | |
import Divider from 'material-ui/Divider' | |
import Popover from 'material-ui/Popover/Popover' | |
import propTypes from 'material-ui/utils/propTypes' |
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
Note: This just aligns the position of the textblock, not the text itself. |
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.uix.widget import Widget | |
from kivy.properties import NumericProperty, ListProperty | |
from math import sin, cos, pi | |
kv = ''' | |
BoxLayout: | |
FloatLayout: | |
RoundedBox: |
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
''' | |
Kivy + Facebook SDK | |
=================== | |
This example works only on Android. | |
Create debug hash key (default debug key password is `android`):: | |
keytool -exportcert -alias androiddebugkey -keystore \ | |
~/.android/debug.keystore | openssl sha1 -binary | openssl base64 |
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.uix.button import Button | |
from kivy.graphics import BorderImage | |
class MyApp(App): | |
def build(self): | |
root = Widget() | |
b = Button(center=(200, 200)) |
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 | |
def split(filehandler, delimiter=',', row_limit=10000, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True): | |
""" | |
Splits a CSV file into multiple pieces. | |
A quick bastardization of the Python CSV library. | |
Arguments: |