Skip to content

Instantly share code, notes, and snippets.

View andrulik's full-sized avatar
🏠
Working from home

Andrey Moskalenko andrulik

🏠
Working from home
View GitHub Profile
@pepijndevos
pepijndevos / lisp.py
Created September 10, 2010 09:56 — forked from dahlia/lisp.rb
5 minutes Lisp in Python
# 5 minutes Lisp in Python
# Pepijn de Vos <http://pepijndevos.nl>
#
# Inspired by 30 minutes Lisp in Ruby
# http://gist.github.com/562017
#
# This Lisp does not read or parse anything at all.
# A generator and a Decorator are abused to run sexps.
#
# Usage:
@agladysh
agladysh / declarative.lua
Created December 6, 2009 01:39
Example to Article on Lua Declarative Programming
local function build_message_box_imperative(gui_builder)
local my_dialog = gui_builder:dialog()
my_dialog:set_title("Message Box")
local my_label = gui_builder:label()
my_label:set_font_size(20)
my_label:set_text("Hello, world!")
my_dialog:add(my_label)
local my_button = gui_builder:button()