Skip to content

Instantly share code, notes, and snippets.

View marcelhollerbach's full-sized avatar

Marcel Hollerbach marcelhollerbach

View GitHub Profile
class Elm.Settings.Item (Eo.Base) {
eo_prefix: elm_obj_settingspane_item;
methods {
@property name {
get {
[[Get the name of the item]]
}
set {
[[Set the name of the item]]
}
@marcelhollerbach
marcelhollerbach / test.hs
Last active November 27, 2015 19:53
haskel spaß
buffer :: (Integer, Integer) -> Integer
buffer (x,y)
| x >= 0 && x < 200 && y >= 0 && y < 200 = 0
| otherwise = -1
addRect :: ((Integer, Integer) -> Integer, Integer, Integer, Integer, Integer) -> (Integer, Integer) -> Integer
addRect (b,px,py,pw,ph) = newbuffer
where newbuffer :: (Integer, Integer) -> Integer
newbuffer (x,y)
| px < x && px+pw > x && py < y && py+ph > y = 1
Eina_Bool
_elm_config_key_binding_call(const char *widget_name,
Evas_Object *obj,
const Evas_Event_Key_Down *ev,
const Elm_Action *actions)
{
Elm_Config_Binding_Key *binding;
Eina_List *binding_list, *l;
int i = 0;
module Renderer(Renderer, SofwareBuffer, SoftwareRenderer) where
import Rectangle
import Data.Colour
-- graphical primitiv
data Primitiv = Rect Rectangle
class Renderer f where
emptyFrame :: () -> f
renderFramePrimitiv :: f -> Primitiv -> f
## Api
Method | URI | Description |
-------:|:------------------------------------------------------|:----------------------------------------------------------------|
GET | / | Lists all endpoints, used for checking authentication.
GET | /experiments | List all experiments.
PUT | /experiments | Creates a new experiment.
GET | /experiments/**{id}** | Lists all properties of a given experiment.
PATCH | /experiments/**{id}** | Edits the given properties of an experiment.
DELETE | /experiments/**{id}** | Deletes an experiment and all results permanently.
struct Efm.Key_Binding{
action : const(char)*;
description : const(char)*;
key : const(char)*;
mods : FancyType;
}
struct Efm.Key_Binding.Action{
action : const(char)*;
cb : CallbackType;
struct Efm.Key_Binding{
action : const(char)*;
description : const(char)*;
key : const(char)*;
mods : FancyType;
}
struct Efm.Key_Binding.Action{
action : const(char)*;
cb : CallbackType;
group { name: "elm/file_preview/base/default";
parts {
rect { "background"
desc {
color: 255 255 255 100;
}
}
textblock { "visible"
multiline: 1;
desc { "default";
for(PaymentJob paymentJob : paymentJobs) {
Assignment assignment = workerAssignmentId.get(paymentJob.getWorkerRecord().getIdentification());
if (assignment == null) {
//FIXME this is fatal!! we cannot pay a worker here!!
continue;
}
if (assignment.getAssignmentStatus().equals(AssignmentStatus.SUBMITTED)) {
//approving here triggers base payment
//TODO approve assignment
}
interface Elm.Focus_Manager () {
eo_prefix: bla;
[[A focusable Object should register itself to the next available Focus_Manager.
The next Focus_Manager which is found up in the widget tree is used.
Container widgets can also implement this interface to set there own right left top bottom objects, they just have to redirect the call up the widget tree so the next focus_manager registers the object]]
methods {
register {