Skip to content

Instantly share code, notes, and snippets.

View leeahoward's full-sized avatar

Lee leeahoward

View GitHub Profile
@leeahoward
leeahoward / machine.js
Last active October 26, 2022 00:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
//test for use in a chrome extension
//via http://withinsharepoint.com/archives/256
function _loadsp() {
var interval;
function loopCheck() {
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false) {
console.log('applying sharepoint fix');
_spBodyOnLoadWrapper();
}else{
@leeahoward
leeahoward / sb.sh
Created February 3, 2013 02:58
A shell script to open the first .sublime-project file found searching from your current folder to the root. Similar to how ant searches for a build.xml file.
#/bin/sh
x=`pwd`;
while [ "$x" != "/" ] && [ -z "$y" ] ; do
y=$(find "$x" -maxdepth 1 -name .sublime\-project)
if [ -n "$y" ];then
echo "$y"
subl --project "$y"
fi
x=`dirname "$x"`;
done