Skip to content

Instantly share code, notes, and snippets.

View marcelhollerbach's full-sized avatar

Marcel Hollerbach marcelhollerbach

View GitHub Profile
#include <immintrin.h>
#include <vector>
#include <inttypes.h>
#include <chrono>
#include <iostream>
using namespace std;
void run_million_adds() {
vector<uint64_t> test1(1000000);
@marcelhollerbach
marcelhollerbach / Test.cs
Created December 19, 2018 14:49
efl-example
using System
class MyApplication : Efl.CsharpApplication {
public override void terminate() {
}
public override void pause() {
}
public override void resume() {
@marcelhollerbach
marcelhollerbach / Test.cs
Created December 19, 2018 14:49
efl-example
using System
class MyApplication : Efl.CsharpApplication {
public override void terminate() {
}
public override void pause() {
}
public override void resume() {
==
#using the mixins
Foo.Bar : Efl.Ui.Focus.Object {
}
==
#what the generation is creating
Efl.Ui.Focus.Object : DynamicObject {
{
Node *node;
node = eina_hash_find(pd->node_hash, &child);
if (!node) return;
F_DBG("Manager: %p unregister %p", obj, child);
if (eina_list_last_data_get(pd->focus_stack) == node)
find -name '*.build' > meson_list_of_files
#grep for everything where we have something like HAVE in defined of ifdef
for file in $(cat meson_list_of_files) ; do
grep "$file" -e "HAVE_"
done > meson_have_occ
#now only get the HAVE_ thingy
grep -o '[A-Z_0-9]*' < meson_have_occ > meson_needed_symbols
@marcelhollerbach
marcelhollerbach / samepl.build
Last active December 21, 2017 20:41
meson helper for efl
#We need:
# meson.current_build_dir()
# meson.current_source_dir()
# pub_eo_files
# priv_eo_files
# dir_package_include
#we define
# pub_eo_file_target
# priv_eo_file_target
[greeter]
;Set user to have a different user which is used to start the greeter
;user = spawny
;Set cmd to have a different greeter than the cli greeter
cmd = /usr/local/bin/anna
This file has been truncated, but you can view the full file.
ESTART: 0.00041 [0.00041] - Begin Startup
ESTART: 0.02545 [0.02504] - Signal Trap
ESTART: 0.02818 [0.00273] - Signal Trap Done
ESTART: 0.04673 [0.01855] - Eina Init
ESTART: 0.18727 [0.14054] - Eina Init Done
ESTART: 0.18823 [0.00096] - Determine Prefix
ESTART: 0.221ERR<17197>:ecore_con lib/ecore_con/ecore_con_legacy.c:1550 _ecore_con_server_server_set() svr=0x23475e0 (Efl.Net.Server.Tcp): not able to socket-activate as 0.0.0.0:22522. Try to serve...
## Copy & Paste the below (until EOF) into a terminal, then hit Enter
eina_btlog << EOF
#define EFL_BETA_API_SUPPORT
#include <Eolian.h>
static Eina_Bool
_is_implemented(Eolian_Class *class, Eolian_Function *function_id, Eolian_Function_Type *already_provided)
{
Eolian_Implement *implements;
Eina_Iterator *iter;