Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / wows_dump.txt
Created September 27, 2018 02:35
World of Warships crash dump
Application Z:/home/lauro/.steam/steam/steamapps/common/World of Warships/bin/1059396/WorldOfWarships.exe crashed 09.26.2018 at 23:28:28
Message:
Could not create new SimpleThread
System info:
OS Name: Windows 7
OS Version: 6.6 SP1
OS Architecture: x86_64
@lauromoura
lauromoura / error.txt
Created August 29, 2018 13:58
Build error (Engineer with same prefix as efl)
[6/15] Compiling C object 'library/library@@Engineer@sha/engineer.c.o'.
FAILED: library/library@@Engineer@sha/engineer.c.o
ccache cc -Ilibrary/library@@Engineer@sha -Ilibrary -I../source/library -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/efl-mono/include/ecore-1 -I/opt/efl-mono/include/eo-1 -I/opt/efl-mono/include/efl-1 -I/opt/efl-mono/include/eina-1 -I/opt/efl-mono/include/eina-1/eina -I/opt/efl-mono/include/elementary-1 -I/opt/efl-mono/include/ecore-x-1 -I/opt/efl-mono/include/elocation-1 -I/opt/efl-mono/include/emotion-1 -I/opt/efl-mono/include/ethumb-client-1 -I/opt/efl-mono/include/ethumb-1 -I/opt/efl-mono/include/edje-1 -I/opt/efl-mono/include/ecore-audio-1 -I/opt/efl-mono/include/eio-1 -I/opt/efl-mono/include/efreet-1 -I/opt/efl-mono/include/ecore-ipc-1 -I/opt/efl-mono/include/embryo-1 -I/opt/efl-mono/include/ecore-imf-evas-1 -I/opt/efl-mono/include/ecore-imf-1 -I/opt/efl-mono/include/ecore-evas-1 -I/opt/efl-mono/include/ecore-input-evas-1 -I/opt/efl-mono/include/ecore
@lauromoura
lauromoura / build.ninja
Last active August 29, 2018 13:53
Problem building Engineer with meson and EFL from git
# This is the build file for project "Engineer"
# It is autogenerated by the Meson build system.
# Do not edit by hand.
ninja_required_version = 1.5.1
# Rules for compiling.
rule c_COMPILER
command = ccache cc $ARGS -MD -MQ $out -MF '$DEPFILE' -o $out -c $in
using System;
public class CustomEvent
{
object eventLock = new Object();
public event EventHandler CustomEvt
{
add
{
@lauromoura
lauromoura / eina_container_common..cs.diff
Last active May 3, 2018 13:52
Changes on the container traits after C# rename
diff --git a/src/bindings/mono/eina_mono/eina_container_common.cs b/src/bindings/mono/eina_mono/eina_container_common.cs
index 173f54d..b5e523f 100644
--- a/src/bindings/mono/eina_mono/eina_container_common.cs
+++ b/src/bindings/mono/eina_mono/eina_container_common.cs
@@ -1,6 +1,7 @@
#pragma warning disable 1591
using System;
+using System.Linq;
using System.Runtime.InteropServices;
@lauromoura
lauromoura / asyncfutures.cs
Created April 26, 2018 21:27
Example of wrapping Tasks around futures
using System;
using System.Threading.Tasks;
class FutureProducer
{
public int Counter {get; private set; }
private eina.Promise Promise;
public FutureProducer()
{
@lauromoura
lauromoura / event_handler_vs_delegate.diff
Created April 26, 2018 01:38
Differences between using Event Handlers with args and plain delegates
3c3
< namespace event_handler_with_args
---
> namespace plain_delegate_with_args
8c8,9
< public event EventHandler<Triggered_Args> OnTriggered;
---
> public delegate void TriggeredEventHandler(int payload);
> public event TriggeredEventHandler OnTriggered;
12c13
@lauromoura
lauromoura / promises_tests.cs
Last active April 23, 2018 14:16
Initial tests on eina promises support for efl C# bindings
using System;
namespace TestSuite
{
class TestPromises
{
public static void test_simple_cancel()
{
bool cleanCalled = false;
@lauromoura
lauromoura / efl_developers.py
Last active April 19, 2018 01:05
Generate a report of efl developers from the devs git repo.
#!/usr/bin/env
'''
Generate a report of efl's developers.
'''
import os
from collections import defaultdict
from tabulate import tabulate
@lauromoura
lauromoura / rotate.c
Created April 17, 2018 19:39
Perspective tentative with EFL
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#include <Eolian.h>
#include <Elementary.h>
double previous = 0;
static void
on_slide(void *data, Eo *obj, void *event_info)
{