Skip to content

Instantly share code, notes, and snippets.

View michaeltroy's full-sized avatar

Michael michaeltroy

  • Newcastle, Australia
View GitHub Profile
@michaeltroy
michaeltroy / _.md
Last active November 20, 2015 13:44
test
/*
Using the current pattern library as a guide:
http://nib-pattern-library-staging.azurewebsites.net/pages/buttons.html
*/
.v2-button, .v2-button-secondary {color: White;}
.v2-button-tertiary {color: grey;}
.v2-button-supplementary {color: green;}
/* Modifiers */
@michaeltroy
michaeltroy / gist:7b21401a9b951fbcf793
Created September 11, 2014 22:54
Red payment amounts
var list = document.body.querySelectorAll('span[data-html="Amount"]');
for (i = 0; i < list.length; i++) {
var item = list[i];
var content = item.innerHTML;
var amount = content.match(/^-[$]?/);
// var done = amount.className += " red"
console.log(content);
/**
* grab your components.
*/
sass = require('gulp-ruby-sass'),
component = require('gulp-component');
/**
* Set your paths.
*/
var paths = {
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#mtr_hello_world {
left: 330px;
top: 250px;
position: absolute;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: absolute;
width: 300px;
height: 300px;
@michaeltroy
michaeltroy / package.json
Last active August 29, 2015 14:02
gulpfile.js
/*
* Require our plugins.
*/
var gulp = require('gulp'),
debug = require('gulp-debug'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),