Skip to content

Instantly share code, notes, and snippets.

View shawnr's full-sized avatar

Shawn Rider shawnr

View GitHub Profile
@shawnr
shawnr / Rep Portal Container Expansion
Created March 17, 2018 19:33
Bustin Rep Portal Customizations for Tampermonkey
// ==UserScript==
// @name Expand Rep Portal Container
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Expands Bustin Boards Rep Portal Container
// @author Shawn Rider
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match https://bustinboards.com/pages/repportal*
// ==/UserScript==
@shawnr
shawnr / certainWords.md
Last active December 19, 2017 20:04
Certain Words (A Code Poem)

Certain Words

vulnerable
vulnerable entitlement
vulnerable entitlement diversity
vulnerable entitlement diversity transgender
vulnerable entitlement diversity transgender fetus
vulnerable entitlement diversity transgender fetus evidence-based
vulnerable entitlement diversity transgender fetus evidence-based science-based
vulnerable entitlement diversity transgender fetus science-based

@shawnr
shawnr / webdev_alumni.md
Last active September 26, 2018 04:18
Web Development Certificate Alumni

Web Development Certificate Alumni

The following individuals have successfully completed the Web Development Certificate at Seattle University. They are listed according to the quarter they completed.

Summer 2018

@shawnr
shawnr / gist:38ac9f370bf274d97d2b
Created August 21, 2015 20:30
Useful ImageMagick Shell Commands
find . -type f \( -iname \*.jpg -o -iname \*.png \) | while read f
do
convert $f -resize 600x $f
done
find . -type f \( -iname \*.jpg -o -iname \*.png \) | while read f
do
convert $f -resize 160x160 -set filename:f "%t.%e" +adjoin "%[filename:f]"
done
@shawnr
shawnr / gist:458d3d1ba57da4911faa
Created May 1, 2015 16:19
Tab Panels Solution for Add a Map assignment

This is an example solution for the tabs in the Add a Map assignment:

<div id="about" role="tabpanel">
      <!-- Create the HTML structure to trigger the Bootstrap tabs feature:
            http://getbootstrap.com/javascript/#tabs

            You will need to add HTML structure to show each of the divs below
            as a unique tab. -->
@shawnr
shawnr / gist:07bbe3d4a7307e99f725
Last active August 29, 2015 14:02
SpeakAgent Developer Role

#Django Developer

Are you looking to make a difference? How about building a new online platform that will impact the lives of millions of students around the world? We are looking for an ambitious Web developer who shares our vision of porting the open-source ethos to education. If this is you, get in touch now!

##Opportunity:

  • Join a close-knit startup team.
  • Build a groundbreaking platform that delivers free education resources to the whole world.
  • Create brand new features and subsystems.
  • Influence the product roadmap and vision.
// Handle show/hide of header
// Technique borrowed from: https://medium.com/design-startups/hide-header-on-scroll-down-show-on-scroll-up-67bbaae9a78c
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('nav').outerHeight();
$(window).scroll(function(event){
didScroll = true;

Keybase proof

I hereby claim:

  • I am shawnr on github.
  • I am shawnr (https://keybase.io/shawnr) on keybase.
  • I have a public key whose fingerprint is 7220 6BB6 FDFD 5112 A3C0 0947 7C33 2D80 5BB8 EDAB

To claim this, I am signing this object:

@shawnr
shawnr / current_user_by_id.js
Created May 13, 2014 23:12
Quick script parts to determine if a Canvas LMS user ID is in a list of IDs
var id_list = [
1234,
4321
];
var id_string = id_list.join(' ');
if (id_string.indexOf(ENV.current_user_id) > -1) {
console.log('user found in admins');
} else {
console.log('user not found in admins');
}
@shawnr
shawnr / replace_editor.js
Last active August 29, 2015 14:00
Replace TinyMCE with CKEditor on Canvas
// ==UserScript==
// @name Replace TextArea with CKEditor
// @author Shawn Rider
// @namespace http://cope.seattleu.edu/
// @version 0.1
// @description Replaces Textarea with CKEditor
// @include https://seattleu.instructure.com/*
// @match https://seattleu.instructure.com/
// @copyright 2012+, You
// ==/UserScript==