Skip to content

Instantly share code, notes, and snippets.

View wem3's full-sized avatar

Will Moore wem3

  • Gastonia, NC
View GitHub Profile
@wem3
wem3 / initKeys.m
Created July 23, 2018 19:08
Function for determining input device for collecting responses via Psychtoolbox
function [ keys ] = initKeys()
% % INITKEYS.m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% queries PsychHID('Devices') & sets device values
% in a structure called keys.
%
% note: you'll need to replace the vendorID with whatever works for your
% keyboard. Find out by doing >> devices = PsychHID('Devices') and poking
% around the devices structure
% kludge for screen during multiband calibration (shortened for debug)
@wem3
wem3 / osx-for-hackers.sh
Created April 6, 2017 15:20 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@wem3
wem3 / ipy_repl.py
Created April 6, 2017 15:16 — forked from MattDMo/ipy_repl.py
SublimeREPL ipy_repl.py for running IPython 4/Jupyter in Sublime Text
import os
import sys
import json
import socket
import threading
activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None)
# turn off pager
os.environ['TERM'] = 'emacs'
@wem3
wem3 / fixKernelCache
Created March 7, 2015 02:47
Fix kernelcache issue in Yosemite on X58A-UD3R hackintosh
#/bin/bash
# yo dogg, write code to do this (sed will work on a .plist, right?)
# open /usr/standalone/BootCaches.plist
# change "Izvn" on "Preferred Compression" key to ""Izss"
sudo -s
sudo kextcache -system-prelinked-kernel -all-loaded
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/
# via Victor Souza at http://www.hackintoshosx.com/files/file/4075-boot-usb-os-x-yosemite-chameleonpkg/
# find specified file or crash out
{
if [ ! -f /path/file ]; then
echo "File not found!"
exit 0
fi
}
@wem3
wem3 / sublimey_browser_notes
Created May 3, 2014 22:11
Sublime style notes in a browser window. Just paste into the url bar.
data:text/html,<title>DoJS</title><style type="text/css">#e{font-size: 16px; position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script>