Skip to content

Instantly share code, notes, and snippets.

# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<?xml version="1.0" encoding="utf-8"?>
@tessalt
tessalt / dropdown.html
Created July 16, 2012 20:05
Screen-reader accessible responsive dropdown
<a class="toggleMenu" href="#">Menu</a>
<ul class="nav clearfix">
<li class="topLvlItem parent">
<a href="#">Item 1</a>
<ul class="subLvlNav">
<li class="subLvlItem subParent">
<a href="#">Browse by Interest</a>
<ul class="btmLvlNav">
<li><a href="#">Sports</a></li>
<li><a href="#">Academics</a></li>
<span class="okselect">
<span class="arrows"></span>
<select name="dietserious" onfocus="this.up().addClassName('focus');" onblur="this.up().removeClassName('focus');">
<option value="0">All Assets</option><option value="1">My Assets</option><option value="2">Strictly</option>
</select>
</span>
@tessalt
tessalt / index.html
Created September 26, 2012 03:12
#selects
<select>
<option>My Assets</option>
<option>All Assets</option>
<option>Other Things</option>
<option>Another really long option</option>
</select>
@tessalt
tessalt / accordions.js
Created November 6, 2012 03:50
PROPER FUCKING ACCORDIONS BITCHEZ
$(".accordion_toggle").live("click", function(e){
e.preventDefault();
$(".accordion_toggle").removeClass("active");
$(".accordion_content").slideUp();
if($(this).next().is(':hidden') == true) {
$(this).addClass("active");
$(this).next().slideDown();
}
});