Skip to content

Instantly share code, notes, and snippets.

View pavelz's full-sized avatar

Pavel Zaitsev pavelz

View GitHub Profile
@pavelz
pavelz / gist:2568007
Created May 1, 2012 13:44
basic code to tie select element to display different dom elements
jQuery ->
$(document).ready ->
element = $('#item_type')
element.bind 'change', ->
el = $('#item_type')[0]
$('.type_edit').css('display','none')
$('.' + el.options[el.selectedIndex].text.toLowerCase()).css('display','block')
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c math.c
math.c:37:13: error: missing binary operator before token "("
make: *** [math.o] Error 1