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
with open('key.pem') as f: | |
key = PKCS1_v1_5.new(RSA.importKey(f.read())) | |
sign = b64encode(key.sign(SHA.new(data))) |
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
<tr > | |
<td rowspan="5"><h5>Images</h5></td> | |
<td>Image name one</td> | |
<td><a href="step_2.html" class="btn btn-primary btn-xs">Select »</a></td> | |
j/tr> | |
<tr> | |
<td>Image name two</td> | |
<td><a href="step_2.html" class="btn btn-primary btn-xs">Select »</a></td> | |
</tr> | |
<tr> |
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 sh | |
branch=$(git branch | grep "^\*"|sed -s s/'* '//) | |
git stash list | grep "WIP on $branch" |
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 python | |
''' | |
Usage: | |
parse.py <path> <exportpath> <suffix> [<packagename>] | |
parse.py --jar=<jarfile> <exportpath> [<packagename>] --suffix=<suffix> | |
Options: | |
path is the path to look java classes into | |
exportpath is the destination dir to produce classes into | |
packagename is an optional package name to put in the generated |
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
com.android.internal | |
android.os | |
android.util.LongSparseArray | |
android.widget.RemoteViews.OnClickHandler | |
com.android.tools.layoutlib.create | |
org.objectweb | |
com.android.test | |
#android.accounts | |
com.google.android.util | |
com.google.mockwebserver |
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
-compile: | |
[javac] Compiling 217 source files to /home/gabriel/kivy-remote-shell/.buildozer/android/platform/python-for-android/dist/default/bin/classes | |
[javac] /home/gabriel/kivy-remote-shell/.buildozer/android/platform/python-for-android/dist/default/src/org/kivy/android_interfaces/AbstractAccountAuthenticatorImpl.java:28: error: cannot find symbol | |
[javac] Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { | |
[javac] ^ | |
[javac] symbol: class Bundle | |
[javac] location: class AbstractAccountAuthenticatorImpl | |
[javac] /home/gabriel/kivy-remote-shell/.buildozer/android/platform/python-for-android/dist/default/src/org/kivy/android_interfaces/AbstractAccountAuthenticatorImpl.java:32: error: cannot find symbol | |
[javac] Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String requiredFeatures, Bundle options) { | |
[javac] |
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
FloatLayout: | |
stuff: range(10) | |
BoxLayout: | |
Label[for i in root.stuff]: | |
text: 'label %s' % i | |
FloatLayout: | |
stuff: range(10) |
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
focuses = DictProperty({}) | |
'''Contains the widget currently having focus or containing the | |
widget having focus, for each keyboard. | |
''' | |
def focus_next(self, keyboard): | |
if not self.focusables: | |
return False |
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 | |
kv = ''' | |
<PanelPlaceHolder@TabbedPanelHeader>: | |
opacity: 0 | |
size_hint_x: None | |
width: | |
( | |
self.parent.tabbed_panel.width |
OlderNewer