Skip to content

Instantly share code, notes, and snippets.

View computerquip's full-sized avatar
🕳️

Zachary L computerquip

🕳️
  • San Antonio, TX
View GitHub Profile
Processor Information:
Vendor: AuthenticAMD
Speed: 4000 Mhz
8 logical processors
8 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
@computerquip
computerquip / gist:7478314
Created November 15, 2013 02:45
System Info #2
Processor Information:
Vendor: AuthenticAMD
CPU Family: 0x15
CPU Model: 0x2
CPU Stepping: 0x0
CPU Type: 0x0
Speed: 4000 Mhz
8 logical processors
8 physical processors
HyperThreading: Unsupported
include <stdio.h>
// Prototype the functions
int CheckEndOfGame(int * squares);
int ChooseSquare(int * squares);
int MakeMoves(int * ctrMoves, int * playr, int * squares);
int main()
{ /* High Level - play one or more games:
Players make moves until one wins or it's a draw.
/* This file is to be compiled only on X86 systems.
The build system should figure this out for us.
reg[4] represent the registers eax, ebx, ecx, and edx respectively. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#if defined (__clang__) || (__GNUC__)
#include <cpuid.h>
@computerquip
computerquip / gist:efc53e7bd010f2e8e75f
Last active August 29, 2015 14:05
Xbox 360 Wired Controller driver using libusb-modified
#include <stdio.h>
#include <stdlib.h>
#include <libusb-1.0/libusb.h>
#include <linux/uinput.h>
#if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION < 0x01000102)
#error This driver requires hotplug support. libusb headers indicate the version you have is not new enough.
#endif
struct xpad360_controller {
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp: In member function ‘virtual void Magnum::Trade::AbstractImporter::doOpenFile(const string&)’:
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:80:50: error: no matching function for call to ‘Magnum::Trade::AbstractImporter::doOpenData(Corrade::Containers::Array<unsigned char>)’
doOpenData(Utility::Directory::read(filename));
^
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:80:50: note: candidate is:
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:61:6: note: virtual void Magnum::Trade::AbstractImporter::doOpenData(Corrade::Containers::ArrayReference<const char>)
void AbstractImporter::doOpenData(Containers::ArrayReference<const char>) {
^
/home/computerquip/Projects/magnum/src/Magnum/Trade/AbstractImporter.cpp:61:6: note: no known conversion for argument 1 from ‘Corrade::Containers::Array<unsigned ch
diff --git a/src/voglcore/vogl_port_posix.cpp b/src/voglcore/vogl_port_posix.cpp
index 0df14e4..a911059 100644
--- a/src/voglcore/vogl_port_posix.cpp
+++ b/src/voglcore/vogl_port_posix.cpp
@@ -37,11 +37,42 @@
#include <sys/mman.h>
#include <sys/syscall.h>
#include <sys/time.h>
+#include <map>
diff --git a/src/voglcore/vogl_port.h b/src/voglcore/vogl_port.h
index 7a718b3..4b53a1b 100644
--- a/src/voglcore/vogl_port.h
+++ b/src/voglcore/vogl_port.h
@@ -29,6 +29,7 @@
// The guts of those functions live in the platform-specific CPP files.
#pragma once
+#include "vogl_threading.h"
#include "vogl_core.h"
System Information:
OS Version:
Linux Distribution: Ubuntu 14.04.2 LTS
Kernel Version: 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015
Hardware Info:
Machine Type To be filled by O.E.M. To be filled by O.E.M. To be filled by O.E.M.
CPU Type AuthenticAMD x86_64
CPU Info AMD FX(tm)-8350 Eight-Core Processor
CPU Speed 4000 MHz
0 0x000055f04d0cd55b __gnu_cxx::__atomic_add /usr/include/c++/6/ext/atomicity.h 53
1 0x000055f04d0cd61b __gnu_cxx::__atomic_add_dispatch /usr/include/c++/6/ext/atomicity.h 96
2 0x000055f04d0d501f std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_add_ref_copy /usr/include/c++/6/bits/shared_ptr_base.h 134
3 0x000055f04d0d4233 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= /usr/include/c++/6/bits/shared_ptr_base.h 679
4 0x000055f04d0d3597 std::__shared_ptr<sio::message, (__gnu_cxx::_Lock_policy)2>::operator= /usr/include/c++/6/bits/shared_ptr_base.h 870
5 0x000055f04d0d35c1 std::shared_ptr<sio::message>::operator= /usr/include/c++/6/bits/shared_ptr.h 93
6 0x000055f04d0cf789 <lambda(sio::event&)>::operator()(sio::event &) const /home/kita/Projects/KiTA Workspace/SocketIO_cpp/main.cpp 264
7 0x000055f04d0d03fd std::_Function_handler<void(sio::event&), remote_shell(std::__cxx11::string)::<lambda(sio::event&)> >::_M_invoke(const std::_Any_data &, sio::event &) /usr/inclu