Skip to content

Instantly share code, notes, and snippets.

View abitgone's full-sized avatar

Anthony Williams abitgone

View GitHub Profile
@abitgone
abitgone / index.html
Created November 29, 2017 09:24
Hero Options Example // source http://jsbin.com/pemuqih
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="http://abitgone.github.io/jQuery-Plugins/ClassToggle/abitgone-classtoggle.js"></scri

Keybase proof

I hereby claim:

  • I am abitgone on github.
  • I am abitgone (https://keybase.io/abitgone) on keybase.
  • I have a public key ASB2MIi5CDDGM0cghbwO7NmGq9oizJJlVkk4k2Xbd_Uexgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am abitgone on github.
  • I am abitgone (https://keybase.io/abitgone) on keybase.
  • I have a public key whose fingerprint is E819 3617 5ECD 4CD1 FF9B 722E 5C1B 6B46 2CF1 1CA8

To claim this, I am signing this object:

@abitgone
abitgone / generate_tokens.js
Last active August 29, 2015 14:05
Quick and Dirty Daily Analytics Dump into MongoDB
/*
// Token Generation Script
//
// This will require you to visit the Google Developer Console at https://console.developers.google.com and
// create an app. You'll want to create a web application client ID and grab the client key and secret.
//
// This will then take you through the process of generating the keys in a quick and dirty fashion.
//
// Usual npm install shenanigans apply -- you'll need moment, mongodb and googleapis for this.
*/
@abitgone
abitgone / Making-Odometers…-Made-Easier.markdown
Last active December 30, 2015 03:18
A Pen by Anthony Williams.

Making Odometers… Made Easier

You should go here to see what I'm talking about. But it includes Sass for loops and mixins and it's really rather good, I think you'll agree.

A Pen by Anthony Williams on CodePen.

License.

@abitgone
abitgone / usingmoment.js
Created September 9, 2013 16:50
This uses moment.js to select the date of the next Leamington Geeks meetup. It chooses either the 3rd Tuesday of the month if it's December or the last Tuesday of the month if it's any other month. If that date has passed, it adds a month and starts the process again. Is this the best way to do that?
var today = moment(new Date()),
monthEnd,
nextDate;
do {
if (monthEnd === undefined) {
monthEnd = moment(new Date());
}
else {
monthEnd = monthEnd.add('months', 1);
html, body {
margin: 0px;
}
p {
margin: 0.5em 2em;
}
.photo-gallery {
width: 100%;
@abitgone
abitgone / gist:5984959
Created July 12, 2013 14:39
expand("The Queen of England")
Her Majesty Elizabeth the Second, by the Grace of God, of Great Britain, Ireland and the British Dominions beyond the Seas Queen, Defender of the Faith, Duchess of Edinburgh, Countess of Merioneth, Baroness Greenwich, Duke of Lancaster, Lord of Mann, Duke of Normandy, Sovereign of the Most Honourable Order of the Garter, Sovereign of the Most Honourable Order of the Bath, Sovereign of the Most Ancient and Most Noble Order of the Thistle, Sovereign of the Most Illustrious Order of Saint Patrick, Sovereign of the Most Distinguished Order of Saint Michael and Saint George, Sovereign of the Most Excellent Order of the British Empire, Sovereign of the Distinguished Service Order, Sovereign of the Imperial Service Order, Sovereign of the Most Exalted Order of the Star of India, Sovereign of the Most Eminent Order of the Indian Empire, Sovereign of the Order of British India, Sovereign of the Indian Order of Merit, Sovereign of the Order of Burma, Sovereign of the Royal Order of Victoria and Albert, Sovereign of the
@abitgone
abitgone / dabblet.css
Created February 15, 2013 12:55
Untitled
.scroll {
width: 400px;
height: 200px;
line-height: 20px;
overflow: scroll;
overflow-x: hidden;
overflow-y: scroll;
border: 1px solid #ccc;
}
.scroll p {
@abitgone
abitgone / gist:4596468
Created January 22, 2013 17:25
JavaScript-less Sharing Links
<!-- Twitter -->
<a href="https://twitter.com/intent/tweet?original_referer=REFERRER_URL&source=tweetbutton&text=TWEET_TEXT&url=URL&via=USERNAME">Share on Twitter</a>
<!-- Facebook -->
<a href="http://www.facebook.com/share.php?u=URL&t=TITLE">Share on Facebook</a>
<!-- Google+ -->
<a href="https://m.google.com/app/plus/x/?content=URL&v=compose&hideloc=1">Share on Google+</a>
<!-- Instapaper -->