Skip to content

Instantly share code, notes, and snippets.

@barnettjw
barnettjw / Ready-to-Launch.markdown
Last active December 25, 2015 05:49
Ready to Launch
@barnettjw
barnettjw / Change-font-size-using-JQuery.markdown
Created April 10, 2015 16:10
Change font size using JQuery
@barnettjw
barnettjw / index.html
Created April 10, 2015 16:09
rot13 encode/decode
<div class = "container">
<h1>Rot13</h1>
<fieldset>
<label>Encode Text:</label>
<input id = "encode-text" value="I'M TRYING TO TEACH THE CAVEMEN TO PLAY SCRABBLE. IT'S UPHILL WORK. THE ONLY WORD THEY KNOW IS 'UNH', AND THEY DON'T KNOW HOW TO SPELL IT.">
<button id = "encode">Encode</button>
</fieldset>
<fieldset>
<label>Decode Text:</label>
@barnettjw
barnettjw / index.html
Last active August 29, 2015 14:18
Treehouse Friends
<html>
<head>
<title>Bootstrap Sortable Tables</title>
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" />
<link rel="stylesheet" type="text/css" href="//rawgit.com/drvic10k/bootstrap-sortable/master/Contents/bootstrap-sortable.css" /></head>
<body>
<h1>Treehouse Friends</h1>
<table id="top10" class ="table table-bordered table-striped sortable">
<thead>
<tr>
@barnettjw
barnettjw / Terminal-Style-Loading-Screen.markdown
Created April 10, 2015 12:43
Terminal Style Loading Screen

Terminal Style Loading Screen

Loading screen, old school terminal style. Made with CSS for the Pattern Radio.

A Pen by James Barnett on CodePen.

License.

@barnettjw
barnettjw / Vertical-Rhythm-Check.markdown
Created April 10, 2015 12:43
Vertical Rhythm Check

Vertical Rhythm Check

Using line-height, margin-bottom & linear-gradient to create baselines to check vertical rhythm

A Pen by James Barnett on CodePen.

License.

Minimum Ping Time

Calculate minimum ping using speed of light and distance between two points. Uses Google Maps API to get coordinates and then calculate distance between pair of coordinates.

A Pen by James Barnett on CodePen.

License.

@barnettjw
barnettjw / Simple-Sliding-Accordion.markdown
Created April 10, 2015 12:42
Simple Sliding Accordion

Simple Sliding Accordion

A simple vertical accordion, it uses a bit of JQuery with help from some CSS triangles

A Pen by James Barnett on CodePen.

License.