Skip to content

Instantly share code, notes, and snippets.

View dandiebolt's full-sized avatar

moⲆan the ultimate dandiebolt

View GitHub Profile
/*!
* jquery oembed plugin
*
* Copyright (c) 2009 Richard Chamorro
* Licensed under the MIT license
*
* Author: Richard Chamorro
*/
(function ($) {
// module "my-module.js"
function cube(x) {
return x * x * x;
}
const foo = Math.PI + Math.SQRT2;
var graph = {
options: {
color:'white',
thickness:'2px'
},
<!doctype html>
<html>
<head>
<script src="https://haversineconsulting.quickbase.com/db/bf3zb9bph?a=dbpage&pagename=d3.v3.min.js"></script>
<script src="https://haversineconsulting.quickbase.com/db/bf3zb9bph?a=dbpage&pagename=dagre-d3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<html>
<head><script></script></head>
<body>Hi</body>
</html>
// ==UserScript==
// @name Baby Badger Bootstrapper
// @namespace BabyBadge
// @include *
// @author Dan Diebolt
// @description Embeds thumbnail of baby on every page
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
<h1>hello</h1>
@dandiebolt
dandiebolt / ConneXionsIFrameResizer.user.js
Created October 30, 2011 13:36
ConneXionsIFrameResizer.user.js
// ==UserScript==
// @name ConneXionsIFrameResizer
// @namespace ConneXions
// @include http://p2pu.org/en/groups/lernanatron/content/connexions-course-iii/
// @author Dan Diebolt
// @description Resizes <iframe> to 6000px hieght for ConneXions III Example
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
GetUserProfile user
GetUserBadges user
GetUserSkills user
GetUserInterests user
GetUserLearningPlan user
GetUserBackpack user
GetUserSocialGraph user, depth
GetUserCurrentCouses user
GetUserPastCouses user
GetUserFutureCouses user
@dandiebolt
dandiebolt / anatoliatile.xml
Created September 15, 2011 22:59
anatoliatile.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Dan Diebolt</author>
<description>Anatolia Tile Query</description>
<sampleQuery><![CDATA[
select * from html where
url='http://online.anatoliatile.com/loginx.asp'
and postdata="USERID=xxxx&PASSWD=xxxx&x=13&y=13" and xpath="/"]]>
</sampleQuery>
@dandiebolt
dandiebolt / QuickBaseDownload.js
Created September 13, 2011 18:39
QuickBase Download Formula
// Format of File Attachement URL:
// https://quickbase.com/up/DBID/a/rRID/eFID/vVID
// DBID Database ID
// RID Decimal Record ID
// FID Decimal Field ID
// VID Decimal Version ID (starts at 0)
"javascript:" &
"window.open('https://www.quickbase.com/up/" &
Dbid() &