Skip to content

Instantly share code, notes, and snippets.

View dandiebolt's full-sized avatar

moⲆan the ultimate dandiebolt

View GitHub Profile
@dandiebolt
dandiebolt / SurveyData.js
Created January 29, 2011 23:19
fiddle.html
var survey=[
{group: 1, html: "", css: "", js: "", jq: "", help: ""},
{group: 3, html: "Advanced", css: "Intermediate", js: "Beginner", jq: "None", help: "No"},
{group: 4, html: "Intermediate", css: "Beginner", js: "Beginner", jq: "None", help: "No"},
{group: 1, html: "Advanced", css: "Intermediate", js: "Intermediate", jq: "Intermediate", help: "No"},
{group: 4, html: "Expert", css: "Advanced", js: "Beginner", jq: "Intermediate", help: "No"},
{group: 2, html: "Advanced", css: "Intermediate", js: "Intermediate", jq: "Beginner", help: "Yes"},
{group: 3, html: "Advanced", css: "Advanced", js: "Beginner", jq: "Intermediate", help: "Yes"},
{group: 2, html: "", css: "", js: "", jq: "", help: ""},
{group: 4, html: "", css: "", js: "", jq: "", help: ""},
<html>
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript">
function doit() {
myid1.style.color = "red";
$("#myid2").css("color","blue");
$(myid3).css("color","green");
}
@dandiebolt
dandiebolt / gist:868823
Created March 14, 2011 05:41
DanGravpad GreaseMonkey Script
// ==UserScript==
// @name DanGravpad
// @namespace http://metameso.org/
// @description An iframe appears on every page, containing an etherpad!
// @exclude *metameso.org:9000*
// @exclude about:blank
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js
// @include http://p2pu.org/
// ==/UserScript==
@dandiebolt
dandiebolt / ModifyP2PUHomePage.user.js
Created March 15, 2011 16:36
This GreaseMonkey Script Loads jQuery and Makes four Modifications to http://P2PU.org/
// ==UserScript==
// @name Mofify P2PU Home Page
// @namespace http://p2pu.org/
// @include http://p2pu.org/
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js
// ==/UserScript==
////////////////////////////////////////
//modification #1
alert("Let's change the background color of the page body from white to surrounding grey.");
@dandiebolt
dandiebolt / lernata.user.js
Created March 30, 2011 18:49
Lernata GreaseMonkey Script
// ==UserScript==
// @name lernanta
// @namespace http://www.joanpiedra.com/jquery/greasemonkey
// @description Play nicely with jQuery and Greasemonkey
// @author Joan Piedra
// @homepage http://www.joanpiedra.com/jquery/greasemonkey
// @include http://new.p2pu.org/*
// ==/UserScript==
var $;
@dandiebolt
dandiebolt / lernantatron1.js
Created March 31, 2011 20:23
lernantatron1.js
$("div#main:has(p:contains({lernantatron:))").html('<iframe src="http://jsfiddle.net/dandiebolt/cwx6g/embedded/result,html,js,css,resources/" width="100%" height="600px" frameBorder="0"></iframe>');
// ==UserScript==
// @name Lernantatron Bootstrapper
// @namespace Lernantatron
// @include http://new.p2pu.org/*
// @author Dan Diebolt
// @description This userscript is a bootstrapper to load additional
// JavaScript files identified by Lernantatron Markup within P2PU's
// Lernanta platform
// ==/UserScript==
@dandiebolt
dandiebolt / lernantatron2.js
Created April 1, 2011 01:29
lernantatron2.js
$("div#content").html('<iframe src="http://jsfiddle.net/dandiebolt/cwx6g/embedded/result,html,js,css,resources/" width="100%" height="600px" frameBorder="0"></iframe>');