Skip to content

Instantly share code, notes, and snippets.

Andrew Gray agray

Block or report user

Report or block agray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@agray
agray / bb_repo_setup.sh
Created Sep 17, 2015
Setup a newly created BitBucket repository locally with content and a master branch ready to go
View bb_repo_setup.sh
#!/usr/bin/env bash
mkdir $1
cd $1
git init
git remote add origin https://$2@bitbucket.org/$2/$1.git
echo "Andrew Gray" >> contributors.txt
git add contributors.txt
git commit -m 'Initial commit with contributors'
git push -u origin master
@agray
agray / printDirective.js
Created Feb 27, 2015
A working angularJS print directive
View printDirective.js
(function (angular) {
"use strict";
function printDirective() {
var printSection = document.getElementById("printSection");
function printElement(elem) {
// clones the element you want to print
var domClone = elem.cloneNode(true);
if (!printSection) {
printSection = document.createElement("div");
@agray
agray / imagemetrouiaccordion
Created Jul 31, 2013
image in metroui accordion
View imagemetrouiaccordion
<li>
<a href="#">Product Suites</a>
<div>
<div class="preScrollable Homepage div-ss-background-img">
<h2>Standard Edition Suite 4.0</h2>
All the Standard Edition products offered as a bundle<br/><br/>
<button type="button" class="bg-color-maroon" onclick="window.open('https://sites.fastspring.com/fullcirclesolutions/instant/standardsuite40')">
<font color="white">Purchase</font>
</button><b>Enterprise Suite coming soon!</b>
<br/><br/>
You can’t perform that action at this time.