Skip to content

Instantly share code, notes, and snippets.

View jeremyboggs's full-sized avatar

Jeremy Boggs jeremyboggs

  • Scholars' Lab, UVa Library
  • Charlottesville, Virginia
View GitHub Profile
@jeremyboggs
jeremyboggs / switch-theme.php
Last active August 29, 2015 13:57
Code to run on WP theme activation and deactivation.
<?php
/**
* On theme activation.
*/
function ivanhoe_after_switch_theme($theme_name) {
}
add_action('after_switch_theme', 'ivanhoe_after_switch_theme');
git config --global alias.amend 'commit -a --amend --no-edit'

Research and Scholarship: Categories

Kind of Interaction

  • One-to-one (reference, consultation)
  • One-to-many (workshops, guides, online resources)
  • Many-to-many (events, conferences, networking)

Degree of Involvement or Investment

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Intro to Forms</title>
<style type="text/css">
label {
display:block;
@jeremyboggs
jeremyboggs / urlchooser.md
Created August 14, 2014 17:58
Key in each letter of the alphabet in address bar, see what URL the browser chooses first.

My results:

  • a - ach.org
  • b - blakearchive.org
  • c - codepen.io
  • d - docs.google.com
  • e - espn.go.com
  • f - flickr.com
  • g - google.com
  • h - html5boilerplate.com
@jeremyboggs
jeremyboggs / ie-filter-gradient.scss
Created September 5, 2014 19:14
Sass/Compass mixin to do filter gradient in IE.
@mixin ie-filter-gradient($start-color, $end-color, $orientation: vertical) {
@include has-layout;
$gradient-type: if($orientation == vertical, 0, 1);
@each $property in -ms-filter, filter {
#{$property}: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}');
}
}
@jeremyboggs
jeremyboggs / 3dprinter.md
Last active August 29, 2015 14:07
Things to know before using the 3D printer on your own
  • How to turn it on and off
  • How to get a model onto the printer: Makerbot
  • How to get a model onto the printer: ReplicatorG
  • How to unload and load the filament before/after a print
    • Make sure to check the kind of filament you're using (PLA, ABS) and confirm settings when exporting for a print. (You don't want to use ABS settings with PLA, and vice versa.)
  • How to unload and load the filament during a print
  • How to watch the filament to make sure it isn’t getting tangled on the spool.
  • How to level the build platform
  • How to remove/add painters tape on build platform
  • How to remove build platform
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bulletproof Accessible Icon Test</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<style type="text/css" media="screen">
.audible {
clip: rect(0 0 0 0);
overflow: hidden;
position: absolute;
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Jeremy Boggs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
^CSIGINT received
/usr/local/foreman/lib/foreman/engine.rb:226:in `synchronize': can't be called from trap context (ThreadError)
from /usr/local/foreman/lib/foreman/engine.rb:226:in `output_with_mutex'
from /usr/local/foreman/lib/foreman/engine.rb:232:in `system'
from /usr/local/foreman/lib/foreman/engine.rb:304:in `terminate_gracefully'
from /usr/local/foreman/lib/foreman/engine.rb:41:in `block in start'
from /usr/local/foreman/lib/foreman/engine.rb:289:in `call'
from /usr/local/foreman/lib/foreman/engine.rb:289:in `wait2'
from /usr/local/foreman/lib/foreman/engine.rb:289:in `watch_for_termination'
from /usr/local/foreman/lib/foreman/engine.rb:48:in `start'