Skip to content

Instantly share code, notes, and snippets.

@urnenfeld
urnenfeld / EventScheduler.hpp
Last active December 26, 2020 01:06
EventScheduler class storing events. Expecting to dispatch them in E_UPDATE through ProceesTimedEvents()
template <class T, class ... Args> UniquePtr<T> MakeUniqueFromList(Args && ... args)
{
return UniquePtr<T>(new T {std::forward<Args>(args)...});
}
class EventScheduler {
public:
typedef struct {
WeakPtr<Object> sender;
@urnenfeld
urnenfeld / gist:3bd30cadca91e00cc146b12a83783fc3
Created August 8, 2020 22:39
Perlin noise implementation deprecation
diff --git a/example.cpp b/example.cpp
index 78d7993..d0e5508 100644
--- a/example.cpp
+++ b/example.cpp
@@ -151,20 +151,20 @@ void Test()
perlinA.serialize(state);
perlinB.deserialize(state);
- assert(perlinA.octaveNoise(0.1, 0.2, 0.3, 4)
- == perlinB.octaveNoise(0.1, 0.2, 0.3, 4));
diff --git a/recipes-urhobox/urho3D/urho3d_git.bb b/recipes-urhobox/urho3D/urho3d_git.bb
index a2b9896..1a702fa 100644
--- a/recipes-urhobox/urho3D/urho3d_git.bb
+++ b/recipes-urhobox/urho3D/urho3d_git.bb
@@ -8,7 +8,7 @@ SRC_URI = "git://github.com/urho3d/Urho3D.git;protocol=https"
# SRC_URI = "git://github.com/urho3d/Urho3D.git"
SRC_URI += "file://003_select_samples.patch"
-SRC_URI_append_raspberrypi0-wifi += "file://000_trust_yocto_for_cpu_tunning.patch"
+SRC_URI_append_rpi += "file://000_trust_yocto_for_cpu_tunning.patch"
--- mitele_original.py 2018-01-05 23:21:58.722024388 +0100
+++ mitele.py 2018-01-05 23:40:09.456352460 +0100
@@ -16,6 +16,8 @@
_url_re = re.compile(r"https?://(?:www\.)?mitele\.es/directo/(?P<channel>\w+)")
_suffix_re = re.compile(r"""acl=(?P<path>[^"'*]+)""")
+ _channel_domains = {"energy": "https://mdslivehls-i.akamaihd.net", "cuatro": "https://livehlsdai-i.akamaihd.net"}
+
pdata_url = "http://indalo.mediaset.es/mmc-player/api/mmc/v1/{channel}/live/flash.json"
gate_url = "http://gatekeeper.mediaset.es"
@urnenfeld
urnenfeld / MC Cheat Sheet
Last active April 5, 2019 15:46 — forked from samiraguiar/MC Cheat Sheet
Midnight Commander Cheat Sheet
Shortcut Description
---------------------------------------------------------------
C-o Drop to the console
Insert Select/deselect file
* Invert selection on files
+ Specify file selection options (including custom pattern)
- The same as above, but for deselecting
F5/F6 Copy/move selected files