Skip to content

Instantly share code, notes, and snippets.

@smooki
smooki / main.cs
Created October 9, 2012 15:32
game.Run(); never called not even FinishedLaunching
using System;
using System.Collections.Generic;
using System.Linq;
using MonoMac.AppKit;
using MonoMac.Foundation;
namespace Breakout
{
class MainClass
#include "Car.h"
#include <allegro5/allegro.h>
Car::Car(void)
{
bitmap = al_create_bitmap(128, 128);
al_set_target_bitmap(bitmap);
al_clear_to_color(al_map_rgb(0,220,0));
#include <allegro5/allegro.h>
#pragma once
class Car
{
public:
Car(void);
void Update(int timeOffset);
void Draw(void);
<!doctype html>
<html lang=fr>
<head>
<meta charset=uf-8>
<title>Quelques essais en Hacheteumeuleu Cinq</title>
<style>
header, nav, footer, article {display: block;}
nav {float: left; width: 20%;}
</style>
<script>
#include <stdio.h>
#include <allegro5/allegro.h>
#include <allegro5\allegro_image.h>
#include <allegro5\allegro_primitives.h>
#include <allegro5\allegro_native_dialog.h>
int ten_seconds_screen()
{
:/opt/nginx/logs# cat error.log
Error during failsafe response: incompatible character encodings: UTF-8 and ASCII-8BIT
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:131:in `block in log_error'
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/deprecation/reporting.rb:20:in `silence'
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:129:in `log_error'
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:64:in `render_exception'
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:59:in `call'
/www/apptizer/releases/20120229181156/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call
user apptizer;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
<section class="commentaires clearfix" id="comments_section">
<h3><%= t(:comment) %></h3>
<div class="content" id="comments">
<%= render :partial => "comments/comment", :collection => module_instance.comments %>
</div>
<%= form_for module_instance.comments.build, :remote => true do |c_f| %>
<%#= c_f.error_messages %>
<%= c_f.hidden_field :commentable_type %>
<%= c_f.hidden_field :commentable_id %>
<section class="clearfix vote">
<%= form_for [@event, @pool], :url => respond_event_multiple_date_pool_path, :method => :put do |resp| %>
<ul>
<% @pool.choices.each do |choice| %>
<% end %>
<li><input type="radio" name="reponseSondage"> Réponse 1</li>
<li><input type="radio" name="reponseSondage"> Réponse 2</li>
<li><input type="radio" name="reponseSondage"> Réponse 3</li>
<li><input type="radio" name="reponseSondage"> Réponse 4</li>
<div id="sondage-creation">
<h2 class="title">Nouveau sondage</h2>
<%# form_for(:project, @project, :url => {:controller => "projects",:action => "update"}) %>
<%#= form_for([@event, @new_pool], :as => :poll , :url => {:controller => "pools", :action => "create"}, :validate => true) do |f| %>
<%= nested_form_for([@event, @new_pool], :as => :pool ,
:url => {:controller => "pools", :action => "create"}, :validate => true) do |f| %>
<%= f.hidden_field :type %>
<%= f.error_messages %>