Skip to content

Instantly share code, notes, and snippets.

View taptapdan's full-sized avatar

Daniel Fiore taptapdan

View GitHub Profile
@taptapdan
taptapdan / hack.sh
Created April 1, 2012 02:55 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@taptapdan
taptapdan / openstudy-widget-embed
Created April 6, 2012 19:33
Embed OpenStudy Topics Widget
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="openstudy-widget.js"></script>
@taptapdan
taptapdan / cd-hidesearch.css
Last active December 21, 2015 23:18
CD Wordpress: Hide Search Box. This is a temporary solution until the theme files can be modified.
#header #searchform {
display: none;
}
@taptapdan
taptapdan / html-moodle-banner-100-percent.html
Last active December 27, 2015 15:09
HTML/CSS code to force a Moodle course banner image to resize with the browser.
<div style="text-align: center;">
<img src="{{IMAGE_FILE.PNG}}" alt="{{ALT TEXT}}" style="width: 100%;" />
</div>
@taptapdan
taptapdan / image-shadow.html
Created November 6, 2013 22:29
HTML/CSS code for adding a shadow to an image.
<img src="{{IMAGE.PNG}}" style="-webkit-box-shadow: 3px 3px 3px #7C7C7C; box-shadow: 3px 3px 3px #7C7C7C;" />
@taptapdan
taptapdan / processing-waveform01.pde
Created November 7, 2013 06:40
First attempt at rendering a waveform visualization over a background image.
import ddf.minim.*;
Minim minim;
AudioPlayer song;
PImage bg;
int one_third;
int two_third;
@taptapdan
taptapdan / parabola-custom.css
Last active December 28, 2015 11:19
Parabola Theme Custom CSS, Wordpress
/* Parabola Custom CSS */
#frontpage h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: bold; margin-bottom: 1em; }
#frontpage h1 { font-size: 26px; }
#frontpage h2 { font-size: 23px; }
#frontpage h3 { font-size: 20px; }
.widget-area .textwidget p { margin-bottom: 1em; }
div.textwidget ul { list-style-type: disc; margin: 0 0 1em 2em; }
/* Presentation Page Only */
#site-description { display: none; }
#branding { height:60px; }
@taptapdan
taptapdan / parabola-custom-course.css
Last active December 29, 2015 02:49
Parabola Theme Custom CSS (Course Level), Wordpress
/* Parabola Custom CSS */
#frontpage h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: bold; margin-bottom: 1em; }
#frontpage h1 { font-size: 26px; }
#frontpage h2 { font-size: 23px; }
#frontpage h3 { font-size: 20px; }
#frontpage p { margin-bottom: 1em; }
#frontpage ul { list-style-type: disc; margin: 0 0 1em 2em; }
/* HSU Masthead CSS */
#wpmsgcheader { background-color: #003333; padding: .5em; }
#wpmsgcheader div { width: 1050px; text-align: left; margin: 0 auto; }
@taptapdan
taptapdan / moodle-quiz-settings.js
Last active August 29, 2015 14:01
Example Bookmarklet for Moodle Quiz Settings
/*
Author: Daniel Fiore (@taptapdan)
License: MIT License
I needed a way to make the same settings changes to many quizzes in a course. Since Moodle doesn't offer a bulk edit for quizzes, I created this bookmarklet to save me a ton of clicking. Hopefully someone else finds this helpful. To use -- modify the settings or remove the ones you don't need, open the quiz's Edit Settings page, and click on the bookmarklet.
This works on my university's installation of Moodle 2.6. This may or may not work for you. I'd suggest backing up your course before attempting to use this!
Feel free to get in touch on Github or Twitter (@taptapdan) if you have questions and I'll try to help.
*/
@taptapdan
taptapdan / bookmarklet-load-external.js
Created May 28, 2014 23:05
How to load an external Javascript file in a bookmarklet.
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://blarb.com/external.js';})();