This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongo_template.rb | |
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
# | |
# To use: | |
# rails project_name -m http://gist.github.com/gists/219223.txt | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/controls.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongo_template.rb | |
# fork of a fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
# | |
# To use: | |
# rails project_name -m template.file | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/controls.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
### Template formatting ### | |
# | |
# $var_name -- variables | |
# #B -- toggle bold | |
# #U -- toggle underline | |
# #O -- origional | |
# #R -- reversed | |
# #C03,43 -- set colour codes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install rails --prerelease | |
Successfully installed i18n-0.3.7 | |
Successfully installed tzinfo-0.3.20 | |
Successfully installed builder-2.1.2 | |
Successfully installed memcache-client-1.8.3 | |
Successfully installed activesupport-3.0.0.beta3 | |
Successfully installed activemodel-3.0.0.beta3 | |
Successfully installed rack-test-0.5.4 | |
Successfully installed rack-mount-0.6.3 | |
Successfully installed abstract-1.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("ul.dropdown li").hover -> | |
$(this).addClass("hover") | |
$('ul:first',this).css('visibility', 'visible') | |
, -> | |
$(this).removeClass("hover") | |
$('ul:first',this).css('visibility', 'hidden') | |
$("ul.dropdown li").hover( -> | |
$(this).addClass("hover") | |
$('ul:first',this).css('visibility', 'visible') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010/09/09 13:26:00 [debug] 19323#0: epoll: fd:3 ev:0005 d:09CE7DF0 | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http keepalive handler | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 recv: fd:3 752 of 1024 | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 malloc: 09CD93F0:676 | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 malloc: 09CD9698:4096 | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http process request line | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http request line: "POST /peers HTTP/1.0" | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http uri: "/peers" | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http args: "" | |
2010/09/09 13:26:00 [debug] 19323#0: *2905 http exten: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_image_dim(filename) | |
splitter = filename.downcase.include?('.png') ? 'PNG' : 'JPEG' | |
dims = `identify "#{filename}"`.chomp.split(splitter)[1].split(' ')[0].split('x') | |
width, height = dims.first.to_i, dims.last.to_i | |
puts "got #{width} #{height} for #{filename} - #{dims}" | |
return width, height | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defi@21239005-VM1:~/git/krad_radio$ ./waf distclean && ./waf configure && ./waf && sudo ./waf install | |
'distclean' finished successfully (0.010s) | |
Setting top to : /home/defi/git/krad_radio | |
Setting out to : /home/defi/git/krad_radio/.waf_build_directory | |
Linux detected :D | |
Checking for 'gcc' (c compiler) : /usr/bin/gcc | |
Checking for 'g++' (c++ compiler) : /usr/bin/g++ | |
Checking for library m : yes | |
Checking for library dl : yes | |
Checking for library z : yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from /home/defi/git/krad_radio/lib/krad_radio/krad_radio.h:40, | |
from /home/defi/git/krad_radio/lib/krad_mixer/krad_mixer.h:18, | |
from /home/defi/git/krad_radio/lib/krad_audio/krad_audio.h:26, | |
from ../lib/krad_alsa/krad_alsa.h:1, | |
from ../lib/krad_alsa/krad_alsa.c:1: | |
/home/defi/git/krad_radio/lib/krad_v4l2/krad_v4l2.h:21:28: error: linux/uvcvideo.h: No such file or directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by ffi-gen. Please do not change this file by hand. | |
require 'ffi' | |
module Krad | |
extend FFI::Library | |
ffi_lib '/usr/local/lib/libkradradio_client.so' | |
def self.attach_function(name, *_) | |
begin; super; rescue FFI::NotFoundError => e |
OlderNewer