Skip to content

Instantly share code, notes, and snippets.

@lamberta
lamberta / TextWithVelocity.as
Created April 16, 2010 01:08
LetterFountain.as demo
/**
* TextWithVelocity, Billy Lamberta.
* Extended textfield, with added variables to hold a velocity value.
* */
//need to put the package directory structure here
package {
import flash.text.TextField;
public class TextWithVelocity extends TextField {
set path="C:\WINDOWS\system32;C:\usr\local\python_2-4-4\;C:\usr\local\python_2-4-4\Tools\Scripts\;"
"C:\Program Files\FontLab\Studio5\Studio5.exe"
@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.
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
myServer.run()
@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
@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 / 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[{
<?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 / 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()}">
Error #1009: Cannot access a property or method
of a null object reference.