Skip to content

Instantly share code, notes, and snippets.

View studgeek's full-sized avatar

David Rees studgeek

View GitHub Profile
@studgeek
studgeek / fiddle.html
Created September 13, 2011 16:30
knockout autocomplete
<input data-bind="jqAuto: { autoFocus: true }, jqAutoSource: myPeople, jqAutoValue: mySelectedGuid, jqAutoSourceLabel: 'displayName', jqAutoSourceInputValue: 'name', jqAutoSourceValue: 'guid'" />
<hr/>
<div data-bind="text: mySelectedGuid() ? mySelectedGuid() : 'None selected'"></div>
<hr/>
For testing setting the model value elsewhere:
// MailMate layout that shows mails with the same tag as the selected tag (based on Correspondence)
{
name = "Tags";
rootViewer =
{
viewerType = "MmSplitView";
orientation = "horizontal";
children =
(
{
@studgeek
studgeek / InfoQubePasteXML.oxt
Created May 23, 2012 14:25
Natura Bonsai export template for InfoQube
[OPTIONS]
EXTENSION=txt
MARKUP=XML
[HEADER]
<?xml version="1.0" encoding="utf-8" ?>
<!--
Natura Bonsai export template for InfoQube
Author: David Rees (@studgeek)
See Gist for latest version: https://gist.github.com/2775504
@studgeek
studgeek / Bonsai Export Template for URp OPML.xml
Created March 27, 2012 22:14
Bonsai export to UltraRecall/InfoQube
[OPTIONS]
EXTENSION=OPML
MARKUP=XML
[HEADER]
<?xml version="1.0" encoding="ISO-8859-1"?>
<opml version="1">
<head>
<title>#TITLE#</title>
</head>
@studgeek
studgeek / gist:2003390
Created March 8, 2012 20:55
keyconfig script for opening the current Firebug file in your first default editor at the current centered line
// See my comments in http://code.google.com/p/fbug/issues/detail?id=4731
(function () {
var myFirebug = window.Firebug;
if (!myFirebug) {
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var mainWindow = wm.getMostRecentWindow("navigator:browser");
myFirebug = mainWindow.Firebug;
}
myFirebug.ExternalEditors.openContext(myFirebug.currentContext, 0);
@studgeek
studgeek / Heroku tracking branch.txt
Created March 8, 2012 16:55 — forked from seangeo/Heroku tracking branch.txt
Create a local tracking branch of your heroku/phpfog deployment
Create remote called heroku
> git remote add heroku git@heroku.com:YOURAPPNAME.git
create a local tracking branch called heroku
> git checkout -b heroku -t heroku/master
This will checkout the last revision you deployed to Heroku.
Now tell git to push the heroku branch to heroku/master
@studgeek
studgeek / avastMostScanned.sh
Created February 25, 2012 15:49
Cygwin script that lists the files most scanned by Avast
#!/bin/bash
# Cygwin script that lists the files most scanned by Avast.
# Useful for determing files that are scanned way too much that you probably want to exclude
# in the File System Shield. Note that they are still scanned in the scheduled scans.
# @studgeek 2/1/12
#
# To use this script you need to have the File System Shield reporting turned on
# at File System Shield >> Settings >> Report file. Use the following settings. You need
# to stop/start the File System Shield to get the reporting started.
# File name: *
@studgeek
studgeek / Add_uninstall_to_1_2_1.patch
Created February 20, 2012 23:53
Add uninstall to Massive Extender 1.2.1 (patch)
From cc455e690c511e9df92e92bde16286b3c771a893 Mon Sep 17 00:00:00 2001
From: studgeek <dave@studgeek.com>
Date: Mon, 20 Feb 2012 18:55:58 -0500
Subject: [PATCH] Added uninstall to 1.2.1
---
.../script/aoc.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js b/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js
@studgeek
studgeek / AltTab.ahk
Created February 15, 2012 22:47
AltTab.ahk - fixed for AHKL - minor tweak to 08-04-13
HELP = ; Gui, 99
(LTrim0
ALT-TAB REPLACEMENT (WITH ICONS AND WINDOW TITLES IN A LISTVIEW).
Latest version can be found at: http://file.autohotkey.net/evl/AltTab/AltTab.ahk
Forum topic for discussion: http://www.autohotkey.com/forum/viewtopic.php?t=6422
HOTKEYS:
Default: Alt+Tab - move forwards in window stack
Alt+Shift+Tab - move backwards in window stack