Skip to content

Instantly share code, notes, and snippets.

@barnettjw
barnettjw / Add-MemberToDistro.ps1
Created January 10, 2023 19:47
Migrate Distro List Members
function Format-Name(){
param($name)
$array = $name -split ' '
[pscustomobject]@{
FirstName = $array[0].t
LastName = $array[1]
DisplayName = "$($array[1]), $($array[0])"
}
@barnettjw
barnettjw / mail.html
Created September 20, 2022 21:29
HTML Email Template
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="format-detection" content="telephone=no" />
<!--[if mso]>
<style type="text/css">
table { border-collapse: collapse;}
</style>
@barnettjw
barnettjw / Is-the-localStorage-Data-Stale?.markdown
Created April 17, 2015 22:33
Is the localStorage Data Stale?
@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.