Skip to content

Instantly share code, notes, and snippets.

View igormcoelho's full-sized avatar

Igor Machado Coelho igormcoelho

View GitHub Profile
@igormcoelho
igormcoelho / compile.sh
Last active May 28, 2020 21:15
Bundle (webkit) C++ on emscripten (1.39.4) with external node.js dependency
#!/bin/bash
docker run --rm -v $(pwd):/src trzeci/emscripten em++ --pre-js prefix-node-require.js --std=c++17 -g -O3 -Wall -s WASM=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "UTF8ToString", "stringToUTF8"]' -s DISABLE_EXCEPTION_CATCHING=1 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s 'EXPORT_NAME="ourtest"' --js-library general-exports.js -I./thirdparty/my-cpp-library/ -o ourtest.js mycode.cpp
@igormcoelho
igormcoelho / hex contract 0xe3c013fa2210e50af2b8010dcd1854ae2362b126
Last active April 23, 2019 20:35
hex contract 0xe3c013fa2210e50af2b8010dcd1854ae2362b126
{
"jsonrpc": "2.0",
"id": 5,
"result": {
"version": 0,
"hash": "0xe3c013fa2210e50af2b8010dcd1854ae2362b126",
"script": "56c56b6c766b00527ac46c766b51527ac4616c766b00c30d696e666c6174696f6e52617465876c766b52527ac46c766b52c3644900616c766b51c3c0519c009c6c766b54527ac46c766b54c3640e00006c766b55527ac46230006c766b51c300c36c766b53527ac46c766b53c3616522006c766b55527ac4620f0061006c766b55527ac46203006c766b55c3616c756652c56b6c766b00527ac4616168164e656f2e53746f726167652e476574436f6e746578740d696e666c6174696f6e526174656c766b00c3615272680f4e656f2e53746f726167652e50757461516c766b51527ac46203006c766b51c3616c7566",
"parameters": [
"ByteArray",
"Array"
@igormcoelho
igormcoelho / extension.js
Created October 30, 2017 04:27
Small fixes over Gnome Shell plugin "Frippery Bottom Panel", to allow rearranging applications in bottom bar (as Gnome 2 did).
// Copyright (C) 2011-2015 R M Yorston
// Licence: GPLv2+
// Small fixes by Igor M. Coelho
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;