Skip to content

Instantly share code, notes, and snippets.

@linenoise
linenoise / keybase.md
Created July 14, 2015 20:56
keybase.md

Keybase proof

I hereby claim:

  • I am linenoise on github.
  • I am linenoise (https://keybase.io/linenoise) on keybase.
  • I have a public key whose fingerprint is 345B D55B F919 EA75 649A 73D1 7640 4A3E 426B 0B8B

To claim this, I am signing this object:

@linenoise
linenoise / japh.pl
Created October 28, 2011 21:10
Just Another Perl Hacker
#!/usr/bin/perl -w
use strict;
my($i,$t)=0;
my@a=(0,0);my$s
=qq*?tuboet:gps8*;
my($c,$v)=0;print(pack(
q$c$,(int($c++)&1)?($i-=$_):
($i+=$_)))foreach(qw#106 9 15 8#);
$s=~s%[^a-z]% %g;$s=~y.b-z.a-y.;print$s;
@linenoise
linenoise / README.markdown
Created August 14, 2011 01:04 — forked from ariera/README.markdown
Nestable, sortable and dragable categories

Nestable, sortable and dragable categories:

In the project I'm working on we wanted to have a Category model which we wanted to be nestable. But we also liked the user to have a draggable interface to manage and rearrange the order of his categories. So we chose awesome_nested_set for the model and jQuery.nestedSortable for the UI.

It took me some time to arrange things to work properly so I wanted to share my work in case it helps anybody.

Before beginning

you might want to take a look at a demo app

  1. go to: http://awesomenestedsortable.heroku.com/groups/
  2. click in show of any group