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 | |
set -e | |
# Notes: | |
# | |
# Builds on Ubuntu 18.04 with gcc-7 | |
############################################################################### | |
# Get deps on Ubuntu | |
############################################################################### |
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
# /etc/udev/hwdb.d/99-keyremap.hwdb | |
# Remap a key or swap keys for a keyboard using udev | |
# To remap a key, replace the bus, vendor, product, scancode, keycode in: | |
#evdev:input:b<bus>v<vendor>p<product>* | |
# KEYBOARD_KEY_<scancode>=<keycode> | |
# Apply your changes to this file with: | |
# #> systemd-hwdb update && udevadm trigger |
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/sh | |
git reset --hard | |
git submodule foreach --recursive 'git reset HEAD . || :' | |
git submodule foreach --recursive 'git checkout -- . || :' | |
git submodule update --init --recursive | |
git clean -d -f -f -x | |
git submodule foreach --recursive git clean -d -f -f -x | |
#TODO add submodule filtering argument |
The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.
Verify that your card is a Broadcom using: lspci -vnn -d 14e4:
Sample output:
02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/
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
#define _WIN32_WINNT 0x0500 | |
#include <windows.h> | |
#include <windowsx.h> | |
#include <GL/gl.h> | |
#include <GL/glu.h> | |
#include <dwmapi.h> | |
#pragma comment (lib, "opengl32.lib") |
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
// from https://github.com/gildas-lormeau/zip.js/blob/master/WebContent/zip.js | |
function Crc32() { | |
this.crc = -1; | |
} | |
Crc32.prototype.append = function append(data) { | |
var crc = this.crc | 0, table = this.table; | |
for (var offset = 0, len = data.length | 0; offset < len; offset++) | |
crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF]; | |
this.crc = crc; |
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
// Found on http://stackoverflow.com/a/5571069/3718694 | |
function mlString(f) { | |
return f.toString(). | |
replace(/^[^\/]+\/\*!?/, ''). | |
replace(/\*\/[^\/]+$/, ''); | |
} | |
var tennysonQuote = mlString(function() {/*! | |
Theirs not to make reply, |
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
# Directories # | |
/build/ | |
/bin/ | |
target/ | |
# OS Files # | |
.DS_Store | |
*.class | |