Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / axml.adoc
Created June 28, 2019 21:57
Notes about AXML

EXML links and ideas

Android XML UI format

https://abhiandroid.com/ui/xml [Blog post about Android’s XML]

Two kinds of main tags:

  • ViewGroups

    • Layouts, holds widgets together

@lauromoura
lauromoura / efl_env.fish
Created April 26, 2019 19:10
Simple helper script to setup EFL env vars
#!/usr/bin/env fish
function find_lib
dirname (ag -g libecore.so $argv)
end
echo "Setting efl to $argv[1]"
set -xg EFL_PREFIX $argv[1]
#!/usr/bin/env python
# coding: utf-8
# In[2]:
import pandas as pd
import seaborn as sns
get_ipython().run_line_magic('matplotlib', 'inline')
@lauromoura
lauromoura / build_stylecop.sh
Last active April 5, 2019 23:22
Pulling code from efl and run stylecop
#!/bin/sh
EFL_SRC_ROOT=$(pwd)
cd $EFL_SRC_ROOT
echo "Getting git hash from $EFL_SRC_ROOT"
GIT_HASH=$(git rev-parse --short HEAD)
echo "Hash is $GIT_HASH"
cd -
@lauromoura
lauromoura / delegate.diff
Created February 21, 2019 20:54
efl-dotnet: Check delegate before access
commit 3f53d326dd3237a8d9d4f76096ca92b9105da183 (HEAD -> dotnet)
Author: Lauro Moura <lauromoura@expertisesolutions.com.br>
Date: Thu Feb 21 16:15:58 2019 -0300
csharp: Check delegate before accessing it.
Raising proper exception instead of simple Object Reference was needed.
diff --git a/src/bindings/mono/eo_mono/FunctionWrapper.cs b/src/bindings/mono/eo_mono/FunctionWrapper.cs
index 15e63d0e84..448403a899 100644
@lauromoura
lauromoura / value_tag.diff
Last active February 19, 2019 11:58
First early rough draft of value tag generation
commit 1f0fd0bfcbe5f7a7a1ffe2815ec4049c19259151 (HEAD -> value_tag)
Author: Lauro Moura <lauromoura@gmail.com>
Date: Fri Feb 15 18:27:21 2019 -0200
WIP - Working on <value> doc
For T7505
diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh
index d2f4669b2c..1e27fdb8a8 100644
@lauromoura
lauromoura / dynamicfoo.cs
Created December 17, 2018 23:27
Example of DynamicObject
using System;
using System.Dynamic;
public class DynamicFoo : DynamicObject
{
public string name { get; set; }
public void CallMe()
{
Console.WriteLine($"Name is {name}");
}
@lauromoura
lauromoura / erro.log
Created December 13, 2018 16:00
strbuf EFL c++ error
```
In file included from ../src/bindings/cxx/eo_cxx/Eo.hh:11:0,
from src/tests/eolian_cxx/name_name.eo.hh:9,
from ../src/tests/eolian_cxx/name_name_cxx.cc:9:
../src/bindings/cxx/eo_cxx/eo_cxx_interop.hh: In instantiation of ‘T efl::eolian::convert_to_c(V&&) [with T = _Eina_Strbuf*; U = efl::eina::strbuf; bool Own = false; V = efl::eina::strbuf&]’:
src/bindings/cxx/efl_object.eo.impl.hh:75:110: required from here
@lauromoura
lauromoura / eolian_state_context.patch
Last active December 12, 2018 15:38
Patch adding eolian_state to generation contexts.
From 66077e8c5b6ef370e903c6f5fa2d841cc5bfcab0 Mon Sep 17 00:00:00 2001
From: Lauro Moura <lauromoura@expertisesolutions.com.br>
Date: Wed, 12 Dec 2018 12:30:20 -0300
Subject: [PATCH] efl-mono: Export the Eolian_State into root context.
---
src/bin/eolian_mono/eolian/mono/documentation.hh | 2 ++
src/bin/eolian_mono/eolian/mono/generation_contexts.hh | 5 +++++
src/bin/eolian_mono/eolian_mono.cc | 8 ++++++--
3 files changed, 13 insertions(+), 2 deletions(-)
@lauromoura
lauromoura / simon.py
Created October 1, 2018 00:00
simon.py
import sys
def getch():
import tty, termios
fd = sys.stdin.fileno()
old = termios.tcgetattr(fd)
try:
tty.setraw(fd)
return sys.stdin.read(1)
finally: