Skip to content

Instantly share code, notes, and snippets.

@tluyben
tluyben / make_ipa.sh
Created February 4, 2013 13:44
iOS distribution; make an .ipa from an .app file.
#!/bin/sh
mkdir Payload
mv $1.app Payload/
zip -r $1.ipa Payload
rm -fR Paypload
@tluyben
tluyben / gist:4171243
Created November 29, 2012 19:23
Working Draw2d touch Bezier curve route
draw2d.layout.connection.NewBezierConnectionRouter = draw2d.layout.connection.ManhattanConnectionRouter.extend({
NAME : "draw2d.layout.connection.NewBezierConnectionRouter",
init : function()
{
this.cheapRouter = null;
this.iteration = 5;
},
route : function(conn)
{
@tluyben
tluyben / gist:4168379
Created November 29, 2012 11:30
JQuery enter as tab
$(function(){
$('input').live('keypress', function(eInner) {
if (eInner.keyCode == 13)
{
var el = null; // element to jump to
// if we have a tabindex, just jump to the next tabindex
var tabindex = $(this).attr('tabindex');
if (tabindex) {
tabindex ++;