Skip to content

Instantly share code, notes, and snippets.

@lamberta
lamberta / gist:368010
Created April 16, 2010 04:34
pv3d materials sample
<instance_material symbol="lambert1SG" target="#myShaderName"/>
@lamberta
lamberta / SeeInvisible.as
Created April 16, 2010 04:21
See-Invisible pv3d demo
/**
* To see the demo and a writeup, visit:
* http://lamberta.posterous.com/3d-flash-demo-see-through
*
* This software is release under the MIT License.
* Copyright (c) Billy Lamberta, 2008
* www.lamberta.org
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
Error #1009: Cannot access a property or method
of a null object reference.
@lamberta
lamberta / AS3Flex.mxml
Created April 16, 2010 03:58
BouncingBall AS3Flex demo
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
width="450" height="350"
layout="vertical"
verticalAlign="middle"
horizontalAlign="center"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
applicationComplete="{initApp()}">
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="450" height="400"
backgroundGradientAlphas="[0.93, 0.69]"
backgroundGradientColors="[#FFFFFF, #DFDDDD]"
applicationComplete="initApp();">
<mx:Script>
<![CDATA[
//pv3d
@lamberta
lamberta / gist:367959
Created April 16, 2010 03:06
Mathematica emacs keybindings
(* My Emacs KeyBindings *)
Item[KeyEvent["a", Modifiers -> {Control}], "MoveLineBeginning"],
Item[KeyEvent["e", Modifiers -> {Control}], "MoveLineEnd"],
Item[KeyEvent["Home"],
FrontEndExecute[{
FrontEnd`SelectionMove[FrontEnd`InputNotebook[], Before, Notebook],
FrontEnd`FrontEndToken["ScrollNotebookStart"]
}]],
Item[KeyEvent["End"],
FrontEndExecute[{
@lamberta
lamberta / gist:367948
Created April 16, 2010 02:58
beejay command-line options
-v version and program information
-p file open an iTunes formatted playlist
-r random mode (shuffle)
-t turn off track numbers
-d use the default library
-o file output a M3U formatted playlist (use with --print)
--print print playlist to screen without playing
--no-see don't print song info to screen
--player=program use a different media player
@lamberta
lamberta / beejay.py
Created April 16, 2010 02:46
beejay.py
#!/usr/bin/env python
##
## -- 'beejay' is Billy's Jukebox --
## -- Copyright 2008 Billy Lamberta --
##
## Read and sort an iTunes generated playlist to use with a
## command-line audio player like 'mplayer' or 'mpg123'.
##
## Requires the 'Plistlib' library, which is available here:
## http://svn.red-bean.com/bob/plistlib/trunk/plistlib.py
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
myServer.run()
@lamberta
lamberta / RemoteTCP.py
Created April 16, 2010 02:16
RemoteTCP - FontLab server
#===============================================================================
# RemoteTCP.py, v0.1, released 01.26.08.
# Installation notes, usage and commentary:
# http://lamberta.posterous.com/remotetcp-for-robofab-and-fontlab
#
# Copyright (c) William Lamberta, <www.lamberta.org>
# Released under the BSD License,
# see www.opensource.org/licenses/bsd-license.php for details.
# Includes code from RoboFab <www.robofab.org>,
# Copyright (c) The RoboFab Developers, Just van Rossum, Tal Leming, Erik van Bloklandwhich.