Skip to content

Instantly share code, notes, and snippets.

View output.txt
go //rb:bundle # Install gem dependencies for the current Ruby
go //rb:cdp # Call class cdp in build/rb
go //rb:chrome # Build chrome in build/rb
go //rb:chrome-test # Run ruby tests for chrome
go //rb:common # Build common in build/rb
go //rb:devtools # Build devtools in build/rb
go //rb:docs # Generate Ruby API docs
go //rb:edge # Build edge in build/rb
go //rb:edge-chrome # Build edge-chrome in build/rb
go //rb:edge-chrome-test # Run ruby tests for edge-chrome
@lauromoura
lauromoura / parallel_wtr.py
Created Apr 9, 2020
Script to try to run multiple WTR in parallel
View parallel_wtr.py
#!/usr/bin/python3
import os
import sys
import argparse
from multiprocessing import Pool
def parse_args():
parser = argparse.ArgumentParser()
@lauromoura
lauromoura / disk-cache.patch
Created Mar 24, 2020
WebkitGTK disk-cache fix
View disk-cache.patch
From a5b0d220c1527e5a06db46505bc56f7c49ae57b5 Mon Sep 17 00:00:00 2001
From: Lauro Moura <lmoura@igalia.com>
Date: Tue, 24 Mar 2020 00:28:13 -0300
Subject: [PATCH xserver] [GTK] Using --skip-failing-tests cause some
disk-cache tests to fail https://bugs.webkit.org/show_bug.cgi?id=209338
Reviewed by NOBODY (OOPS!).
GLIB's getVolumeFreeSpace implementation requires the file to exist to
return the correct size. During the NetworkProcess initialization it
@lauromoura
lauromoura / ienumerable_efl_sharp.md
Created Nov 28, 2019
Some notes about collection changes in EFL#
View ienumerable_efl_sharp.md

Eina collections replacement

Current approach

Currently C# bindings have explicit Eina collection classes that are used in the API. With them, an Eolian method list<int> method(int a, int b) maps to the following C# method: Eina.List<int> Method(int a, int b).

Proposal

@lauromoura
lauromoura / EFL_Cpp_Generators.md
Created Nov 19, 2019
Document on EFL#/EFL c++ generators
View EFL_Cpp_Generators.md

C++ Generators

Introduction

This is a simple introduction on the generator grammar EFL# and EFL C++ bindings use in their code generators.

Basic definition

The generators are classes with a templated bool as_generator(sink, params, context) const

View gist:a50c5a9c4ff01b65f9fb2bf91b620fea
Running suite(s): Efl_Ui_Init
success
100%: Checks: 1, Failures: 0, Errors: 0
FC_DEBUG=1
Sort Pattern has 28 elts (size 32)
family: "DejaVu Sans"(w) "DejaVu LGC Sans"(w) "DejaVu LGC Sans"(w) "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Nimbus Sans"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "Loma"(w) "Waree"(w) "Garuda"(w) "Umpush"(w) "Laksaman"(w) "Noto Sans CJK JP"(w) "Noto Sans CJK KR"(w) "Noto Sans CJK SC"(w) "Noto Sans CJK TC"(w) "Noto Sans CJK HK"(w) "Droid Sans Fallback"(w) "Khmer OS"(w) "Nachlieli"(w) "Lucida Sans Unicode"(w) "Yudit Unicode"(w) "Kerkis"(w) "ArmNet Helvetica"(w) "Artsounk"(w) "BPG UTF8 M"(w) "Waree"(w) "Loma"(w) "Garuda"(w) "Umpush"(w) "Saysettha Unicode"(w) "JG Lao Old Arial"(w) "GF Zemen Unicode"(w) "Pigiarniq"(w) "B Davat"(w) "B Compset"(w) "Kacst-Qr"(w) "Urdu Nastaliq Unicode"(w) "Raghindi"(w) "Mukti Narrow"(w) "padmaa"(w) "Hapax Berbère"(w) "MS Gothic"(w) "UmePlus P Go
View gist:a69b1ec0677107c12869ba0b3c20eb04
FC_DEBUG=1
Sort Pattern has 27 elts (size 32)
family: "DejaVu Sans"(w) "DejaVu LGC Sans"(w) "DejaVu LGC Sans"(w) "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Nimbus Sans"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "Loma"(w) "Waree"(w) "Garuda"(w) "Umpush"(w) "Laksaman"(w) "Noto Sans CJK JP"(w) "Noto Sans CJK KR"(w) "Noto Sans CJK SC"(w) "Noto Sans CJK TC"(w) "Noto Sans CJK HK"(w) "Droid Sans Fallback"(w) "Khmer OS"(w) "Nachlieli"(w) "Lucida Sans Unicode"(w) "Yudit Unicode"(w) "Kerkis"(w) "ArmNet Helvetica"(w) "Artsounk"(w) "BPG UTF8 M"(w) "Waree"(w) "Loma"(w) "Garuda"(w) "Umpush"(w) "Saysettha Unicode"(w) "JG Lao Old Arial"(w) "GF Zemen Unicode"(w) "Pigiarniq"(w) "B Davat"(w) "B Compset"(w) "Kacst-Qr"(w) "Urdu Nastaliq Unicode"(w) "Raghindi"(w) "Mukti Narrow"(w) "padmaa"(w) "Hapax Berbère"(w) "MS Gothic"(w) "UmePlus P Gothic"(w) "Microsoft YaHei"(w) "Microsoft JhengHei"(w) "WenQuanYi Zen Hei"(w) "
@lauromoura
lauromoura / cake_dice.py
Last active Oct 3, 2019
Interview Cake: 5side die from 7side die
View cake_dice.py
# coding: utf-8
from random import randint
from collections import Counter
def rand7():
return randint(1, 7)
def rand5():
return sum([rand7() for i in range(5)]) % 5 + 1
View gist:f23ea5c5cf68aeacf7a86614da549e62
#include <algorithm>
#include "async_function_definition.hh"
#include "blacklist.hh"
#include <cassert>
#include <cctype>
#include "documentation.hh"
#include <Eina.h>
#include <Eina.hh>
#include <Eolian_Cxx.hh>
@lauromoura
lauromoura / mvvm.cs
Created Sep 13, 2019
EFL# mvvm example
View mvvm.cs
using System;
class WeatherStation
{
public String Nick { get; set; }
public float Temperature { get; set; }
public static Efl.UserModel<WeatherStation> CreateModel(Efl.Loop loop)
{
Efl.UserModel<WeatherStation> stations = new Efl.UserModel<WeatherStation>(loop);