jQuery plugin to catch image load errors and re-direct src urls. Allows for multiple fallback options.
Author: Dan Woodson
;Dan Woodson | |
;Check if Negatives | |
JMP _start | |
; Variables | |
sentinal: 20 ; range to check for negatives (up to -31) | |
sent_count: 0 ; temp count | |
pos_test: 2 ; number to check |
;Dan Woodson | |
;Check all primes | |
; This program computes all the prime numbers between 2 (count -1) and a given number (limit). | |
; The total number of primes currently found is stored in prime_count | |
; As primes are found they're displayed in OUTR | |
JMP _start | |
; Variables |
/*Standard Elements*/ | |
hr{ | |
width: 99%; | |
} | |
/*My Elements*/ | |
#multimedia_container{ | |
height: 700px; | |
} | |
#featured{ | |
width: 475px; |
#slide_show{ | |
background-color: black; | |
width: 605px; | |
height: 340px; | |
} | |
.slide_show_button{ | |
position: relative; | |
border: 0px; | |
} | |
#slide{ |
jQuery plugin to catch image load errors and re-direct src urls. Allows for multiple fallback options.
Author: Dan Woodson
!! drop in Solarized colorscheme for Xresources/Xdefaults | |
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB | |
!!--------- ------- ---- ------- ----------- ---------- ----------- ----------- | |
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 | |
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26 | |
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46 | |
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51 | |
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59 | |
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63 |
Immediate feedback validation | |
Author: Dan Woodson | |
Date: 2011-08-14 | |
for ticket GRN-1833 |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Sample SC</title> | |
<link rel="stylesheet" href="css/sc-player-standard.css" type="text/css"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script> | |
<script type="text/javascript" src="js/soundcloud.player.api.js"></script> | |
<!-- <script type="text/javascript" src="js/api.js"></script> --> |
var getDataFromClasses = function(elm, identifier){ | |
var classes = jQuery(elm).attr('class').split(' '), | |
data = '', | |
regex = new RegExp(identifier); | |
// Loop though classes | |
for(var i = 0; i < classes.length; i++){ | |
// If current class matches the identifier, extract data | |
if(regex.test(classes[i])){ | |
data = classes[i].replace(identifier, ''); | |
break; |
// onkeyup="restrictchars(this, someInteger)" | |
var restrictChars = function(elm, maxLen){ | |
var len = elm.value.length; | |
if(len >= maxLen){ | |
elm.value = elm.value.substring(0, maxLen); | |
} | |
}; |