Skip to content

Instantly share code, notes, and snippets.

View zreese's full-sized avatar
🐶

Zachary Reese zreese

🐶
  • University of Pennsylvania
  • Philadelphia
View GitHub Profile
@zreese
zreese / functions.php
Created January 10, 2017 15:42
Change Name of Wordpress Search Form
/**
* Change the name of the search form from s to fwp_resource_search
*/
function my_query_vars( $public_query_vars ) {
if ( isset( $_GET['fwp_resource_search'] ) && ! empty( $_GET['fwp_resource_search'] ) ) {
$_GET['s'] = $_GET['fwp_resource_search'];
}
return $public_query_vars;
}
@zreese
zreese / gulpfile.js
Last active April 16, 2018 18:38 — forked from LoyEgor/gulpfile.js
best image compression settings (gulp-imagemin)
// install
// npm i gulp-imagemin imagemin-jpeg-recompress imagemin-pngquant imagemin-zopfli imagemin-mozjpeg -f
var imagemin = require('gulp-imagemin');
var imageminPngquant = require('imagemin-pngquant');
var imageminZopfli = require('imagemin-zopfli');
var imageminMozjpeg = require('imagemin-mozjpeg'); //need to run 'brew install libpng'
var imageminJpegRecompress = require('imagemin-jpeg-recompress');
gulp.task('imagemin', function() {
Kiosk
User Button
Inactive*
Touch -> Check In
Check In
Write Timestamp to Database -> Checked In
Checked In
Touch -> Check Out
@zreese
zreese / app.css
Last active September 17, 2018 15:45
CRISPR Trendline
@import url(//fonts.googleapis.com/css?family=Karla);
svg {
font-family: Karla;
}
.axis path,
.axis line {
fill: none;
stroke: #000;