Skip to content

Instantly share code, notes, and snippets.

@christianvuerings
christianvuerings / cache.manifest
Created May 21, 2011 15:49
Jekyll auto-generating cache.manifest file
---
layout: nil
---
CACHE MANIFEST
# rev {{ site.time | date_to_xmlschema }}
/index.html
/css/main.css
/css/syntax.css
/favicon.ico
{% for post in site.posts %}{{ post.id }}/
{
"id": 16823722,
"created_at": "2011/06/09 15:44:01 +0000",
"user_id": 355760,
"duration": 328797,
"commentable": true,
"state": "finished",
"sharing": "public",
"tag_list": "Soosh Jumble Fuse Texture Rustle Lyric Deep Soothing Beats",
"permalink": "upcoming-jumble-soosh-soosh-ep",
@christianvuerings
christianvuerings / sakai_oae_infusion_1_4
Created December 16, 2011 18:10
Fluid Infusion 1.4 within Sakai OAE
/* 3akai_Infusion.js
* custom build for Sakai
* built with: ant -lib lib/rhino customBuild -Dinclude="reorderer" -Dexclude="jQuery, jQueryUICore, jQueryUIWidgets, jQueryTooltipPlugin" -Djsfilename="3akai_Infusion.js" -DnoMinify="true"
*/
/*
Copyright 2007-2010 University of Cambridge
Copyright 2007-2009 University of Toronto
Copyright 2007-2009 University of California, Berkeley
Copyright 2010-2011 Lucendo Development Ltd.
def translate_errors(record)
ret = {}
record.errors.each do |key, message|
keystring = key.to_s
if keystring.include? '_content_type'
keystring.gsub!('_content_type', '')
key = keystring.to_sym
end
# Happens when you try to submit an invalid file (e.g. zip) as a screenshot
if keystring.include? '.'
@christianvuerings
christianvuerings / twitter_follow-the-following.js
Created October 17, 2012 05:22
Twitter - Follow the following
// Follow all people that someone follows
// 1. Go to a following URL - https://twitter.com/denbuzze/following
// 2. Run this script:
(function() {
var interval;
var scrollToBottom = function() {
interval = setInterval(function() {
$(document).scrollTop($(document).height());
$('.not-following .follow-button').trigger('click');
@christianvuerings
christianvuerings / ucb-developer-autofill.js
Created October 30, 2012 17:58
UC Berkeley - developer.berkeley.edu - auto fill api id's and keys
$('input[name="api_id"]').val('xxxxxx');
$('input[name="api_key"]').val('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
@christianvuerings
christianvuerings / gist:4008670
Created November 3, 2012 20:45
Webplatform.org - show prototype of live code
// Use on webplatform.org to show prototype of how live code could work.
var el = document.querySelector('a[href="http://docs.webplatform.org/wiki/html"]');
el.href="http://denbuzze.com/code/webplatform_codepen/";
el.rel="lightbox";
el.target="_blank";
el.innerText="live example"
// Reload the lightbox
h1 img {
position:relative;
width: 200px;
-webkit-animation:spin 2.2s infinite;
}
h1 img:before{
position:absolute;
content:'';
@christianvuerings
christianvuerings / campus-links-debug.js
Created March 14, 2013 22:12
CalCentral - Debug campus links