Skip to content

Instantly share code, notes, and snippets.

@danwoods
danwoods / less_than_zero.asm
Created November 17, 2010 15:56
Check if current number in ACC is negative
;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
@danwoods
danwoods / find_primes.asm
Created November 17, 2010 20:24
Computes all the prime numbers between 2 and a given number.
;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
@danwoods
danwoods / multimedia.css
Created November 21, 2010 22:49
Pulls the 7 most recent youtube videos from user and arranges them on the page
/*Standard Elements*/
hr{
width: 99%;
}
/*My Elements*/
#multimedia_container{
height: 700px;
}
#featured{
width: 475px;
@danwoods
danwoods / jQuery_slider(with_video).css
Created December 3, 2010 02:13
Basic jQuery image slider with support for videos
#slide_show{
background-color: black;
width: 605px;
height: 340px;
}
.slide_show_button{
position: relative;
border: 0px;
}
#slide{
@danwoods
danwoods / README.markdown
Created August 4, 2011 20:43
jQuery plugin to catch image load errors and re-direct src urls

jQuery plugin to catch image load errors and re-direct src urls. Allows for multiple fallback options.

Author: Dan Woodson

@danwoods
danwoods / .Xresources
Last active September 26, 2015 17:48
Personal config files
!! 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
@danwoods
danwoods / README.txt
Created August 15, 2011 03:23
Immediate, directing validation with jQuery
Immediate feedback validation
Author: Dan Woodson
Date: 2011-08-14
for ticket GRN-1833
@danwoods
danwoods / index.html
Created July 9, 2012 11:29
Simple Sound Cloud player
<!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> -->
@danwoods
danwoods / getDataFromClasses.js
Last active October 7, 2015 15:48
getDataFromClasses(elm, identifier)
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;
@danwoods
danwoods / restrictChars.js
Created September 24, 2012 17:55
Restrict the number of characters in an input/textarea
// onkeyup="restrictchars(this, someInteger)"
var restrictChars = function(elm, maxLen){
var len = elm.value.length;
if(len >= maxLen){
elm.value = elm.value.substring(0, maxLen);
}
};