Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
get_latest_url() {
local REDREAM_URL=https://redream.io
local REDREAM_TARGET=aarch32-raspberry-linux
wget -qO /tmp/redream-download.html ${REDREAM_URL}/download
local links=$( \
grep -E 'href="([^"]*redream.'$REDREAM_TARGET'[^"]+)' /tmp/redream-download.html | \
struct x64_mov {
int length;
int is_avx;
int is_sse;
int is_load;
int is_indirect;
int has_imm;
int has_base;
int has_index;
int operand_size;
const fs = require('fs');
const cheerio = require('cheerio');
const request = require('request-promise-native');
function sanitizeName (name) {
name = name.replace(/\s+\(Disc \d+\)/i, '');
name = name.replace(' (Europe)', '');
name = name.replace(' (Japan)', '');
name = name.replace(' (NTSC)', '');
void x64_backend_mov_value(struct x64_backend *backend, const Xbyak::Reg &rd,
const struct ir_value *v) {
auto &e = *backend->codegen;
if (ir_is_constant(v)) {
e.mov(rd, ir_zext_constant(v));
return;
}
Xbyak::Reg ra = x64_backend_reg(backend, v);
diff --git a/imgui.cpp b/imgui.cpp
index 3dd3d3f..0a0e467 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -2037,6 +2037,7 @@ static bool NavScoreItem(ImRect cand)
// FIXME-NAVIGATION: Introducing various biases toward typical imgui uses cases, but we don't have any rigorous proof of their effect now.
float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x);
float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Clamp down on Y to keep using box-distance for vertically touching items
+
if (dby && dbx)

Individual Contributor License Agreement

Thank you for your interest in redream, created by Anthony Pesch (the "Owner"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Owner must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Owner and its users; it does not change your rights to use your own Contributions for any other purpose. Please read this document carefully before signing and keep a copy for your records.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Owner. Except for the license granted herein to the Owner and recipients of software distributed by the Owner, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions.

"You" (or "Your") shall mean th

@inolen
inolen / tests.patch
Created March 9, 2017 05:15
golang multiarch docker tests
diff --git a/test-linux-alpine-386.sh b/test-linux-alpine-386.sh
new file mode 100755
index 0000000..84802f2
--- /dev/null
+++ b/test-linux-alpine-386.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+export GOROOT_BOOTSTRAP=/usr/lib/golang
+export GOROOT=../