This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" == "" ]]; then | |
echo "usage: eisaid.sh 0x[eisa-number], or eisaid.sh [eisaid-string]" | |
exit 0 | |
fi | |
if [[ "$1" == 0x* ]]; then | |
let vendor="$1 & 0xFFFF" | |
let device="$1 >> 16" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sdlx11.hpp" | |
#include <X11/Xlib.h> | |
#include <X11/Xatom.h> | |
#include <X11/extensions/Xrender.h> | |
#include <GL/glx.h> | |
#include <SDL2/SDL.h> | |
SDL_Window* | |
SDLx11::SDL_CreateWindowEx(const char *title, int x, int y, int w, int h, bool fullscreen, double frame_alpha) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/cdefs.h> | |
#include <sys/mman.h> | |
#include <sys/uio.h> | |
#include <unistd.h> | |
unsigned long find_stackbase() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import struct | |
import argparse | |
def swap32(i): | |
return struct.unpack("<I", struct.pack(">I", i))[0] | |
filename = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0: -Blank- | |
1: Unknown USB device connected. | |
2: Too many USB hubs connected. | |
3: Connect this device using a USB cable, or connect it again. | |
4: %s battery level low. | |
5: %s disconnected. | |
6: Too many USB devices connected. | |
7: Cannot connect another Bluetooth device. | |
8: -Blank- | |
9: Cannot connect another controller. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
SFML_VERSION='2.2' | |
GLEW_VERSION='1.10.0' | |
get_file() | |
{ | |
local file_to_get="$1" |