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
$_controllers = array( | |
'projects' => 'projets', | |
'floors' => 'etages', | |
'unit_types' => 'type_unites', | |
'units' => 'unites', | |
); | |
foreach ($_controllers as $original => $new) { | |
Router::connect('/' . $new, array('controller' => $original, 'action' => 'index')); |
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
class Materiel < ActiveRecord::Base | |
has_many :pieces | |
has_many :entree_materiels | |
has_many :commandes, :through => :pieces | |
end | |
class Piece < ActiveRecord::Base | |
has_many :commandes | |
belongs_to :materiel | |
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
oxez ~ > ps x | grep chromium | |
18640 ? S 0:00 /usr/lib/chromium/chromium --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.6.602.180 | |
18641 ? S 0:00 /usr/lib/chromium/chromium-sandbox /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.6.602.180 | |
18642 ? S 0:00 /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.6.602.180 | |
18648 ? S 0:00 /usr/lib/chromium/nacl_helper_bootstrap /usr/lib/chromium/nacl_helper --reserved_at_zero=0x0000000000000000 --r_debug=0x0000000000213000 | |
18649 ? S 0:00 /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.6.602.180 | |
18680 ? S 0:03 /usr/lib/chromium/chromium --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.6.602.180 | |
186 |
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
require 'rss' | |
require 'open-uri' | |
p "Downloading rss index" | |
# If you are a Railscasts Pro subscriber, you will have a different RSS feed with Pro casts | |
# If this is the case, go to http://railscasts.com/, find it and sub it below | |
rss_string = open('http://feeds.feedburner.com/railscasts').read | |
rss = RSS::Parser.parse(rss_string, false) | |
videos_urls = rss.items.map { |it| it.enclosure.url }.reverse |
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
c:/Ruby200-x64/bin/ruby.exe extconf.rb | |
checking for main() in -lssl... no | |
checking for rb_trap_immediate in ruby.h,rubysig.h... no | |
checking for rb_thread_blocking_region()... yes | |
checking for inotify_init() in sys/inotify.h... no | |
checking for __NR_inotify_init in sys/syscall.h... no | |
checking for writev() in sys/uio.h... no | |
checking for rb_thread_check_ints()... yes | |
checking for rb_time_new()... yes | |
checking for windows.h... 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
model: | |
class Visit < ActiveRecord::Base | |
belongs_to :client | |
end | |
controller: | |
class VisitsController < ApplicationController | |
def edit |
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
model: | |
class Visit < ActiveRecord::Base | |
belongs_to :client | |
end | |
controller: | |
class VisitsController < ApplicationController | |
def edit |
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
Error 1 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in main.obj C:\Users\Jason\Desktop\Dev\sfml\test1\TestSfml1\TestSfml1\sfml-graphics-s.lib(RenderWindow.cpp.obj) TestSfml1 | |
Error 2 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in main.obj C:\Users\Jason\Desktop\Dev\sfml\test1\TestSfml1\TestSfml1\sfml-graphics-s.lib(Transformable.cpp.obj) TestSfml1 | |
Error 3 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in main.obj C:\Users\Jason\Desktop\Dev\sfml\test1\TestSfml1\TestSfml1\sfml-graphics-s.lib(RenderStates.cpp.obj) TestSfml1 | |
Error 4 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in main.obj C:\Users\Jason\Desktop\Dev\sfml\test1\TestSfml1\TestSfml1\sfml-graphics-s.lib(Color.cpp.obj) TestSfml1 | |
Error 5 error LNK2038: mismat |
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
8 .gitignore | |
142 bomb.cpp | |
57 bomb.h | |
130 character_screen.cpp | |
39 character_screen.h | |
30 fps_counter.cpp | |
23 fps_counter.h | |
131 game.cpp | |
65 game.h | |
164 game_screen.cpp |
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
#include <SFML/Network.hpp> | |
int main (int argc, char *argv[]) { | |
std::string s = "hello"; | |
sf::Packet packet; | |
packet << s; | |
return 0; | |
} |
OlderNewer