Jake Paris

Notebook

categorized under Web Development

Fill form fields based on url query parameters

Based on this code I did earlier, I created this function which fill out form fields based on the query parameter values. There are three optional parameters. Using with no parameters will automatically try…

MARC Record to JSON Converter

Easily convert your MARC records into JSON format, which is compatible with most modern APIs and other thingamabobers.

Solving the New Bates College Homepage

I just wrote this article for Bates College on how we created the homepage design. Check it out: Solving the New Bates Homepage

SASS Mixins

Animations @mixin keyframes($name) { @-ms-keyframes #{$name} { @content } @-o-keyframes #{$name} { @content } @-moz-keyframes #{$name} { @content } @-webkit-keyframes #{$name} { @content } @keyframes #{$name} { @content } } @mixin animation($val) { msanimation…

Getting NPM build scripts to run-on-save in SublimeText

Today I finally got my es2015 javascript to compile to es5 javascript automatically upon save. First, I set up my project using npm. I setup the following dev dependencies: babel-cli babel-core babel-preset-es2015 In the…

SublimeText settings & plugins

My user settings directory is here. The bold ones are extra cool/useful. All Autocomplete Boxy Theme BracketHighlighter Color Highlighter Colorsublime (quick switching of color schemes) Colorsublime – Themes CSS3 DashDoc (for use with Dash) DataConverter translate…

Setting up Domain Mapping with WordPress MU

Most of this information can be found here, but I’d like to rewrite it for increased clarity and to add a few details. First some definitions: umbrella domain: the domain which houses the mu installation…

Fade-in text: jQuery plugin

This is a basic plugin for jQuery which adds an effect for slowly fading in text. There may be other plugins out there that have similar functionality, but this was an attempt to try…

GET Query Params with Javascript

var parseQueryParameters = function(){ var queryString = window.location.search; var queries = {}; if(queryString=='') return queries; var q = queryString.replace('?','').split('&'); q.forEach(function(pair,index){ var a = pair.split('='); if(typeof a[1]==='undefined') a.push(''); queries[a[0]] = a[1]; }); return queries;…

Shortcode to Use a WordPress widget in Page Content

A small snippet creating a shortcode which will display any widget.