Skip to content

Instantly share code, notes, and snippets.

const int last = pics_array.length - 1;
// this method gets called when the forward button got clicked (for testing)
public void go (View view) {
index++;
if(index > last)//out of bounds
index = 0;//jump to beginning
default_Pic.setImageResource(pics_array[index]);
}
@basxto
basxto / sysinfo.txt
Created November 4, 2018 17:48
steam system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
CPU Family: 0x6
@basxto
basxto / sysinfo.txt
Created November 16, 2018 13:16
steam system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
CPU Family: 0x6
@basxto
basxto / sysinfo.txt
Created December 12, 2018 00:19
steam system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
CPU Family: 0x6
@basxto
basxto / libogg.sh.log
Created July 29, 2019 12:56
output of libogg.sh
$ LANG=en_US ./libogg.sh   [67/20885]
/tmp/CCOSS_dependencies/libogg-1.3.3 /tmp/CCOSS_dependencies
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
@basxto
basxto / fadeout.c
Last active July 30, 2019 18:10
GBDK fadeout for Game Boy and Game Boy Color
#include <gb/cgb.h>
static const UINT16 bg_palette[] = {RGB_WHITE, RGB_LIGHTGRAY, RGB_DARKGRAY, RGB_BLACK, RGB_BLACK, RGB_BLACK, RGB_BLACK};
...
void fadeout(){
for (i = 1; i != 4; ++i) {
// 0xFFE4 is 11'11 11'11 11'10 01'00
// (i << 1) is i*2
// each iteration the number gets shifted by 2 bits to the right
@basxto
basxto / build_linux.sh.log
Created July 30, 2019 23:43
output for build_linux.sh
uilding with ccache ENABLED [79/4648]
external/sources/luabind-0.9.1/src/class.cpp:27:10: fatal error: luabind/lua_include.hpp: No such file or directory
27 | #include <luabind/lua_include.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
external/sources/luabind-0.9.1/src/class_info.cpp:25:10: fatal error: luabind/lua_include.hpp: No such file or directory
25 | #include <luabind/lua_include.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
external/sources/luabind-0.9.1/src/class_registry.cpp:25:10: fatal error: luabind/lua_include.hpp: No such file or directory
@basxto
basxto / sysinfo.txt
Created October 6, 2019 22:26
steam system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
CPU Family: 0x6
@basxto
basxto / fp3root.sh
Last active December 11, 2022 13:31
Root Fairphone 3
#!/bin/sh
FASTBOOT=fastboot
ADB=adb
MAGISK=v20.3
TWRP_RELEASE=20200202-02
TWRP=3.3.1-0_k4y0z-${TWRP_RELEASE}-fp3
mkdir -p /tmp/flash_fp3_${TWRP_RELEASE}
cd /tmp/flash_fp3_${TWRP_RELEASE}/
wget -nc https://github.com/chaosmaster/android_device_fairphone_fp3/releases/download/${TWRP_RELEASE}/twrp-${TWRP}.img
@basxto
basxto / .config_gcli_config
Created April 20, 2024 02:06
example config for gcli with mesehub (minetest gitea)
defaults {
editor=vim
github-default-account=hub
}
hub {
token=<token-goes-here>
account=basxto
forge-type=github
}