Skip to content

Instantly share code, notes, and snippets.

@Eskatrem
Eskatrem / comment-prints.el
Last active August 29, 2015 14:05
comment lines matching a regexp
(defun s-trim-left (s)
"Remove whitespace at the beginning of S."
(if (string-match "\\`[ \t\n\r]+" s)
(replace-match "" t t s)
s))
(defun first-word (s)
(let ((s-trim (s-trim-left s)))
(car (split-string s-trim " "))))
import kivy
from kivy.clock import Clock
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
def on_enter(instance):
print '============== still in "global?" on_enter() ===================='
samuel@samuel-XPS-13-9360:~/code/memory-game$ buildozer android clean
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Run '/usr/bin/python -m pythonforandroid.toolchain clean_builds --color=always --storage-dir=/home/samuel/code/memory-game/.buildozer/android/platform/build'
# Cwd /home/samuel/code/memory-game/.buildozer/android/platform/python-for-android-new-toolchain
# Run '/usr/bin/python -m pythonforandroid.toolchain clean_dists --color=always --storage-dir=/home/samuel/code/memory-game/.buildozer/android/platform/build'
# Cwd /home/samuel/code/memory-game/.buildozer/android/platform/python-for-android-new-toolchain
samuel@samuel-XPS-13-9360:~/code/memory-game$ buildozer android debug deploy run
# Check configuration tokens