Skip to content

Instantly share code, notes, and snippets.

View jessicah's full-sized avatar

Jessica Hamilton jessicah

View GitHub Profile
@jessicah
jessicah / test.cmm
Created May 17, 2012 10:48
Example of c-- output from ocamlopt
(data int 4096 global "camlTest" "camlTest": skip 32)
(data
int 3319
"camlTest__2":
addr "caml_curry3"
int 7
addr "camlTest__max_1035")
(data int 2295 "camlTest__3": addr "camlTest__squares_1032" int 3)
(data int 2295 "camlTest__4": addr "camlTest__fun_1047" int 3)
(data
void
FindPanel::AddAttrRow()
{
BBox* box = dynamic_cast<BBox*>(FindView("Box"));
BGridView* grid = dynamic_cast<BGridView*>(box->FindView("AttrFields"));
if (grid == NULL) {
grid = new BGridView("AttrFields");
box->AddChild(grid);
grid->SetLayout(new BGridLayout());
@jessicah
jessicah / FindPanel.cpp
Created April 29, 2013 01:59
Fix AddLogicMenu menufield size
void
FindPanel::AddLogicMenu(int32 index, bool selectAnd)
{
// add "AND/OR" menu
BPopUpMenu* menu = new BPopUpMenu("");
BMessage* message = new BMessage();
message->AddInt32("combine", B_AND);
BMenuItem* item = new BMenuItem(B_TRANSLATE("And"), message);
menu->AddItem(item);
item-SetMarked(true);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jessicah
jessicah / runtime_loader.patch
Last active August 29, 2015 14:04
runtime_loader: don't use ABI library paths for non-Haiku paths
From 657919e06b43ae94fe6ba3b2e7490c1e8941614f Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Mon, 21 Jul 2014 09:56:02 +1200
Subject: [PATCH] runtime_loader: only add ABI directories to system library
paths
It only makes sense to add the ABI directories to library paths
created by Haiku itself. E.g. on a gcc2h build, appending x86.
This also fixes build issues where LIBRARY_PATH is amended, and
Debug information for team /boot/system/servers/notification_server (953):
CPU(s): 4x Intel Core™ i3-4010U
Memory: 3.93 GiB total, 188.68 MiB used
Haiku revision: hrev47696-1-g6d8ea08 [master] A (BePC)
Active Threads:
thread 959: team 953 debug task
thread 953: notification_server (main)
state: Exception (Segment violation)
From 3b6ab51c087d0d2aac9b2b59c85bd5bb50957945 Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Sat, 2 Aug 2014 22:28:52 +1200
Subject: [PATCH] Only suspend the screensaver for non-GL screensavers.
When the password prompt is displayed, if the screensaver is
using a BGLView, then it won't draw on top of the password
dialog, so we don't need to stop the screensaver, which is
more visually pleasing.
---
/tmp> find -name 'usb*' -print0 | xargs -0 --max-lines=1 hid_decode
HIDReport 0x191d7d38
type: 1 input
report id: 0
report size: 32 bits = 4 bytes
item count: 7
HIDReportItem 0x191ad2e0
byte offset: 0
shift: 0
mask: 0x00000001
KERN: /devfs/v1
KERN: returned: -1
KERN: trying: file_systems/packagefs/v1
KERN: returned: -1
KERN: trying: file_systems/rootfs/v1
KERN: returned: -1
KERN: KDiskDeviceManager::_ScanPartition(/dev/disk/scsi/0/3/0/2)
KERN: intel: ep_std_ops(0x1)
KERN: trying: partitioning_systems/intel/extended/v1
KERN: intel: ep_identify_partition(0, 420478976, 134217728, 512)
g++ -c -pipe -Wno-unused-function -Wno-unused-variable -Wno-strict-aliasing -fno-strict-aliasing -Wno-unused-parameter -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -std=c++11 -msse2 -O3 -ffast-math -fPIC -Wall -W -DUSING_QT_UI -DUSE_FFMPEG -D_M_IX86 -DPPSSPP_GIT_VERSION="\"v0.9.9.1-458-g94c865b\"" -D__STDC_CONSTANT_MACROS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CORE_LIB -I../../../system/data/Qt/mkspecs/haiku-g++ -I../Qt -I../../../system/develop/headers/x86/QtCore -I/packages/libqt4_x86-4.8.6.2-1/.self/develop/headers/x86/QtOpenGL -I../../../system/develop/headers/x86 -I../ext/zlib -I../Common -I/boot/home/ppsspp/Qt/../ffmpeg/linux/x86/include -I../native -I/boot/home/ppsspp/Qt/../native/ext/glew -I/boot/home/ppsspp/Qt/../native/ext/rg_etc1 -I../native/ext/cityhash -I/boot/home/ppsspp/Qt/../native/ext/jpge -I/boot/home/ppsspp/Qt/../native/ext/stb_vorbis -I../ext/snappy -I/boot/home/ppsspp/Qt/../native/ext/vjson -I.moc/Native -I. -o .obj/Native/*.o ../native/util/bits/*