Skip to content

Instantly share code, notes, and snippets.

View devinmcinnis's full-sized avatar
👋

Devin McInnis devinmcinnis

👋
  • GitHub Staff
  • Vancouver, BC
  • 18:09 (UTC -07:00)
View GitHub Profile
@devinmcinnis
devinmcinnis / Makefile
Last active March 1, 2016 21:48
Makefile instead of gulp/grunt/foreman
jade = jade -w views/*.jade -o ./ -P # Convert Jade files to HTML
npm = npm prune; npm install
server = ./bin/www
stylus = mkdir public/css; stylus -w -m styles/style.styl -o public/css -u nib -c
start:
$(npm); $(jade) &$(stylus) &$(server)
@devinmcinnis
devinmcinnis / vlc_streams.js
Last active January 28, 2020 03:41
NFL VLC Streams Links
(function () {
var teamName = "seahawks"; // Change this based on home team's name (post-season)
var i = 1;
var getStream = setInterval(function () {
var streamURL = 'http://nlds' + i + '.cdnak.neulion.com/nlds/nfl/' + teamName + '/as/live/' + teamName + '_hd_800.m3u8';
$.ajax({
dataType: 'jsonp',
url: streamURL,
data: {
@devinmcinnis
devinmcinnis / yahoo-start-active-players.js
Last active January 6, 2020 17:32
Start active players on your Yahoo Fantasy Hockey team for the week/month/year
////
////
////
////
////
//// PROJECT DEPRECATED FEB 21, 2016
////
//// MOVED TO https://github.com/devinmcinnis/yahoo-fantasy-start-active-players
////
////
@devinmcinnis
devinmcinnis / respond.md
Last active December 18, 2015 16:19
Use respond.js in Wordpress
  • Use respond.js
  • Place respond.js after stylesheets
  • Put all @keyframes statements outside of the media queries

// Problems with running script

  • Hardcode stylesheet instead of enqueue'ing through WP: ``
@devinmcinnis
devinmcinnis / jade.md
Created June 15, 2013 18:48
IE Conditional Comments in Jade
!!! 5
| <!--[if lt IE 7]> <html class="lt-ie7" lang="en"> <![endif]-->
| <!--[if IE 7]> <html class="ie7" lang="en"> <![endif]-->
| <!--[if IE 8]> <html class="ie8" lang="en"> <![endif]-->
| <!--[if gt IE 8]> <!--> <html lang="en"> <!--<![endif]-->
head
  ...
@devinmcinnis
devinmcinnis / WordpressHostGatorWithoutDomain
Created April 23, 2013 00:17
Setup Wordpress on HostGator without a Domain Name
Login to cPanel, note "IP Address" on left hand side and the username you logged into HG with
Install Wordpress via Fantastico De Luxe (or whatever)
Setup Wordpress account at http://[ip-address]/~[username]/wp-config-sample.php, note your database name
Go back to cPanel > phpMyAdmin > [database-name] > wp_options > Edit "siteurl"
Replace textarea text with http://[ip-address]/~[username]/
Login to http://[ip-address]/~[username]/wp-admin
@devinmcinnis
devinmcinnis / double-border.css
Created March 18, 2013 23:56
Double Box Shadow with CSS3
div {
width: 30px;
height: 30px;
border: 1px solid #295B76;
padding: 4px;
border-radius: 4px;
box-shadow: inset 0 0 0 1px #3B8CBF;
background: #14638e;
}
@devinmcinnis
devinmcinnis / eme_get_event.php
Created March 9, 2013 03:38
Get Event for Events Made Easy on Wordpress
<?php
# I have no idea why this is not in the documentation
$event = eme_get_event($wp_query->query_vars['event_id']);
print_r($event);
?>