Skip to content

Instantly share code, notes, and snippets.

template <class T> class Property {
public:
Property(T);
T getValue();
void setValue(T);
private:
T m_value;
};
template <class T> class Property {
public:
Property(T);
T getValue();
void setValue(T);
private:
T m_value;
};
using System;
public abstract class Component {
private string componentType;
public Component(string componentType) {
this.componentType = componentType;
}
[global]
usershare path = /var/lib/samba/sambashares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = False
class EmployeeSheet
belongs_to :sequence
end
class Sequence
has_many :employee_sheets
end
SELECT sequences.id, sequences.name, COUNT( employe_sheets.id ) AS nb
FROM employe_sheets
[{"command":"settings","settings":{"basePath":"\/amistadcasira\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"ZTAOlLfumd0EvRJY89mYadGmInV_rjPeA9iAkdUsTZQ","jquery_version":"1.5"}},"merge":true},{"command":"viewsDismissForm"},{"command":"viewsShowButtons"},{"command":"viewsTriggerPreview"},{"command":"insert","method":"html","selector":"#views-tab-feed","data":"\u003Cdiv id=\u0022edit-display-settings-details\u0022\u003E\u003Cdiv id=\u0022edit-display-settings-top\u0022 class=\u0022views-ui-display-tab-actions views-ui-display-tab-bucket clearfix\u0022\u003E\u003Cdiv class=\u0022ctools-no-js ctools-button ctools-dropbutton\u0022\u003E\u003Cdiv class=\u0022ctools-link\u0022\u003E\u003Ca href=\u0022#\u0022 class=\u0022ctools-twisty ctools-text\u0022\u003Eopen\u003C\/a\u003E\u003C\/div\u003E\u003Cdiv class=\u0022ctools-content\u0022\u003E\u003Cul class=\u0022horizontal right actions\u0022\u003E\u003Cli class=\u0022view\u0022\u003E\u003Ca href=\u0022\/amistadcasira\/actualites-rss.xml\u0022\u00
g++ -c -Iinclude/ -std=c++11 -lsfml-network -lsfml-graphics -lsfml-window -lsfml-system -lX11 -o obj/game.o src/game.cpp
In file included from include/standard_cursor.h:11:0,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/Socket.hpp:53:10: error: expected identifier before ‘int’
enum Status
^
In file included from /usr/include/SFML/Network/TcpSocket.hpp:32:0,
from /usr/include/SFML/Network/Ftp.hpp:32,
from /usr/include/SFML/Network.hpp:33,
g++ -c -Iinclude/ -std=c++11 -o obj/game.o src/game.cpp
In file included from include/standard_cursor.h:11:0,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/Socket.hpp:53:10: error: expected identifier before ‘int’
enum Status
^
In file included from /usr/include/SFML/Network/TcpSocket.hpp:32:0,
from /usr/include/SFML/Network/Ftp.hpp:32,
from /usr/include/SFML/Network.hpp:33,
#include <iostream>
#include <SFML/Graphics.hpp>
#define FPS 60
#define MOVEMENT 10
typedef struct Box {
float x, y;
sf::Color color;
diff --git a/os/io.c b/os/io.c
index 8181a86..fa024ce 100644
--- a/os/io.c
+++ b/os/io.c
@@ -843,7 +843,7 @@ WriteToClient(ClientPtr who, int count, const void *__buf)
}
}
#endif
- if (oco->count == 0 || oco->count + count + padBytes > oco->size) {
+ if (oco->count + count + padBytes > oco->size) {