Skip to content

Instantly share code, notes, and snippets.

View carmelyne's full-sized avatar
🏡
Working from home

Carmelyne Thompson carmelyne

🏡
Working from home
View GitHub Profile
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@carmelyne
carmelyne / Auto Load G+
Last active December 17, 2015 09:38
Requires TamperMonkey http://goo.gl/EAp4d - Auto loads new posts for New G+ Layout - Copy script below as a new script
// ==UserScript==
// @name Auto Load G+
// @include https://plus.google.com*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @copyright 2013+, Carmelyne Thompson
// ==/UserScript==
/*- The @grant directive is needed to work around a major design
change introduced in GM 1.0.
var TRACKER;
$(function() {
Eddy.UI.Vote = function() {
Eddy.UI.View.apply(this, arguments);
};
_.extend(Eddy.UI.Vote.prototype, Eddy.UI.View.prototype, {
mode: "recent",
updated: false,
@carmelyne
carmelyne / Colors.xml
Created January 5, 2012 18:41 — forked from katrinkerber/Colors.xml
Dark Dreamweaver theme based on 'minimal Theme' for TextMate (http://minimaldesign.net/downloads/tools/textmate-theme). Optimised for HTML, CSS, JS and PHP. For installation see http://is.gd/Add9mq. Set background color to #25221C.
<codeColors>
<colorGroup>
<syntaxColor id="CodeColor_HTMLEntity" text="#AECD9D" bold="true" />
<syntaxColor id="CodeColor_JavascriptNative" text="#FCFFE7" />
<syntaxColor id="CodeColor_JavascriptNumber" text="#FBAA21" />
<syntaxColor id="CodeColor_JavascriptClient" text="#FCF296" />
<syntaxColor id="CodeColor_JavascriptSpryKeywords" text="#FF6208" />
<syntaxColor id="CodeColor_JavascriptSpryClasses" text="#FF6208" />
<syntaxColor id="CodeColor_TemplateText" text="#999999" />
<syntaxColor id="CodeColor_TemplateCommentText" text="#82806F" />
@carmelyne
carmelyne / updatechromiumnightly
Created October 27, 2011 10:53 — forked from craSH/updatechromiumnightly
Simple script to automatically download and install the latest available Chromium nightly build for Mac OSX
#!/bin/bash
#
# Simple script to update OSX Chromium to the latest nightly build.
# Will not download if you already have the latest (call with --force
# to override this check)
#
# Copyleft 2010 Ian Gallagher <crash@neg9.org>
#
LATEST=$(curl -s "http://build.chromium.org/f/chromium/snapshots/Mac/LATEST")
@carmelyne
carmelyne / gist:1209208
Created September 11, 2011 05:22
vimrc
set nocompatible
runtime! autoload/pathogen.vim
if exists('g:loaded_pathogen')
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
endif
filetype off
syntax on
-- MiniFriends by Hedyn Brand... Modified by XenaSkull
-- MiniFriends by Hedyn Brand... Modified by Dida for 3.3.5 API Changes (8-25-2010) MiniFriends.lua
BINDING_HEADER_MINIFRIENDS = "MiniFriends"
MINIFRIENDS_VERSION = "1.01"
MiniFriendsCount = 0
MFFlags = {}
MFF_Locked = 1 --Make window unmovable
/* note: space it; dont tab it pls */
body {
text-align:center;
margin-top: 10px;
background: #333333;
font: 76% Verdana, Arial, Helvetica, sans-serif;
min-width: 1000px;
}
Loading development environment (Rails 2.3.2)
>> @now = Time.zone.now
=> Thu, 07 May 2009 09:24:13 PDT -07:00
>> @now.strftime("%m/%d/%Y")
=> "05/07/2009"
>> @now.strftime("%Y/%m/%d")
=> "2009/05/07"
<!-- place in <head> -->
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAZFJWpftMwgnCCqt4vPRS7BR1HFqmY0hOxpFWSoKSv_ILnU21AhRd8Ow1u23lsYZWN5Fo-iaQ72-icQ" type="text/javascript"></script>
<!-- place in <head> or inside <body> -->
<script language="Javascript" type="text/javascript">
//<![CDATA[
function OnLoad() {
// create a search control