Skip to content

Instantly share code, notes, and snippets.

@Eskatrem
Eskatrem / derivatives.lisp
Created November 3, 2013 15:21
Proof of concept of a program that makes the derivative operator a first class citizen.
(defparameter *maths-functions* (list))
(defmacro defun-maths (func-name args core)
"appends the code of func-name into maths-functions."
`(progn
(push (list :name (quote ,func-name) :variable (quote ,args) :core (quote ,core)) *maths-functions*)
(defun ,func-name ,args ,core)))
(defun get-source (func-name)
(car (remove-if-not (lambda (f) (eql (getf f :name) func-name)) *maths-functions*
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