Skip to content

Instantly share code, notes, and snippets.

@Riveascore
Riveascore / quick_browser_detection
Created March 28, 2014 17:05
Quick browser detection
if(window.chrome != undefined) {
}
if(window.opera != undefined) {
}
if(window.mozInnerScreenX != undefined) {
}
if(window.safari != undefined) {
window.detect_browser = function() {
window.is_chrome = navigator.userAgent.indexOf('Chrome') > -1;
window.is_explorer = navigator.userAgent.indexOf('MSIE') > -1;
window.is_firefox = navigator.userAgent.indexOf('Firefox') > -1;
window.is_safari = navigator.userAgent.indexOf("Safari") > -1;
window.is_Opera = navigator.userAgent.indexOf("Presto") > -1;
if ((window.is_chrome)&&(window.is_safari)) {window.is_safari=false;}
}
@Riveascore
Riveascore / gist:11228317
Created April 23, 2014 19:02
Quick References for email template project
COLORS:
Blue: #459ED8
Red: #E25566
Purple: #9D66AB
Yellow: #EDAE03
Green: #60B687
CSS Classes
@Riveascore
Riveascore / ink_firefox_hack.css
Last active August 29, 2015 14:00
Ink necessary for proper Firefox functioning!
/* Firefox display hack */
@media only screen and (max-width: 600px) {
table[class="body"] .row tr,
table[class="body"] .row tbody {
display: block;
}
}
@Riveascore
Riveascore / ink-tiny-button-mobile-fix.css
Created April 29, 2014 17:06
Quick fix for tiny-buttons' border in mobile view
@media only screen and (max-width: 600px) {
table[class="body"] table.tiny-button td {
width: auto !important;
}
}
@Riveascore
Riveascore / looks_like_fortran.js
Last active August 29, 2015 14:19
Loading cube animation, wrote on paper first using shorthand, looks pretty funny when you quickly type it out
var $lC = $loadingObject.find('.loading-cube'),
sT = $(window).scrollTop(),
eOT = $thisOffset.top,
eH = $this.height(),
wH = $(window).height(),
cH = 25,
nCP;
eVH;
if(sT > eOT) {
if(eOT + cH > sT + wH) {
prevent default

case
when rainy_mood
  mute rainy_mood tab
when spotify
  pause spotify
when youtube_playing
 pause youtube video

All Left to Do

  • Search
  • Course Category
  • Building Show
  • Payment Receipt
  • Enrollments (on your registrable users)
    • List
    • Show
  • Enroll Process

Timeline

Item Estimation
Search 15 days
Course Category 3 days
Building Show 1-3 days
Payment Receipt 2 days
Enrollments (on your registrable users)
  • List
  • Show
3 days
Enroll Process Choose Person(s)Accept TermsQuestions 5 days