Skip to content

Instantly share code, notes, and snippets.

View andrewconnell's full-sized avatar
🧰
Building

Andrew Connell andrewconnell

🧰
Building
View GitHub Profile
@andrewconnell
andrewconnell / BaseGulpTask.ts
Created October 31, 2015 12:50
Abstract base class for a gulp task with defaults set
'use strict';
/** @class */
export class BaseGulpTask {
/**
* @property {string} description - Help description for the task.
*/
public static description: string = '';
@andrewconnell
andrewconnell / Gulpfile.ts
Last active October 31, 2015 12:48
Dynamically loading gulp tasks with TypeScript
'use strict';
import * as fs from 'fs';
let gulp: any = require('gulp-help')(require('gulp'));
let gulpTaskPath: string = './build/gulp/tasks';
// refer to the following file for referenced interfaces
// https://github.com/andrewconnell/blog-gulpts-dynaload/blob/master/build/gulp/gulp.d.ts
// load all gulp tasks (located in ./build/gulp/tasks)
@andrewconnell
andrewconnell / OfficeUIFabric-PrimaryThemeSwatch.html
Created September 18, 2015 14:20
OfficeUIFabric-PrimaryThemeSwatch
<div style="border:1px gray solid; padding:10px; width:75%">
<div class="ms-fontColor-themePrimary">ms-fontColor-themePrimary</div>
<div class="ms-bgColor-themePrimary ms-fontColor-white"
style="width:90%; margin-top:5px; padding:10px;">ms-bgColor-themePrimary</div>
<div class="ms-borderColor-themePrimary ms-fontColor-themePrimary"
style="border-width:1px; border-style:solid; width:90%; margin-top:5px; padding:10px;">
ms-borderColor-themePrimary</div>
</div>
@andrewconnell
andrewconnell / OfficeUIFabric-AnimationDemo.html
Last active September 18, 2015 13:15
OfficeUIFabric-AnimationDemo
<!DOCTYPE html>
<html>
<head>
<link href="//appsforoffice.microsoft.com/fabric/1.0/fabric.min.css" rel="stylesheet" />
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.min.js" type="text/javascript"></script>
<style>
.animation-container {
position: relative;
width: 100%;
display: inline-block;
@andrewconnell
andrewconnell / OfficeUIFabric-GridPushPull.html
Created September 18, 2015 02:43
OfficeUIFabric-GridPushPull
<div width="100%">
<div class="ms-Grid">
<div class="ms-Grid-row">
<div class="ms-Grid-col ms-u-sm6 block">6</div>
<div class="ms-Grid-col ms-u-sm3 block">3</div>
<div class="ms-Grid-col ms-u-sm3 block">3</div>
</div>
<div class="ms-Grid-row">
<div class="ms-Grid-col ms-u-smPush6 block">6</div>
<div class="ms-Grid-col ms-u-sm3 block">3</div>
@andrewconnell
andrewconnell / OfficeUIFabric-Grid.html
Created September 18, 2015 02:34
OfficeUIFabric-Grid
<div width="100%">
<div class="ms-Grid">
<div class="ms-Grid-row">
<div class="ms-Grid-col ms-u-sm2 block">2</div>
<div class="ms-Grid-col ms-u-sm2 block">2</div>
<div class="ms-Grid-col ms-u-sm2 block">2</div>
<div class="ms-Grid-col ms-u-sm6 block">6</div>
</div>
<div class="ms-Grid-row">
<div class="ms-Grid-col ms-u-sm3 block">3</div>
@andrewconnell
andrewconnell / OfficeUIFabric-LanguageOptimizedFonts.html
Created September 17, 2015 21:10
OfficeUIFabric-LanguageOptimizedFonts
<html lang="th-TH">
...
<section lang="vi-VN">...</section>
</html>
@andrewconnell
andrewconnell / OfficeUIFabric-RightToLeftSupport.html
Created September 17, 2015 21:07
OfficeUIFabric-RightToLeftSupport
<html dir="rtl">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="fabric-[version].rtl.min.css">
</head>
...
</html>
@andrewconnell
andrewconnell / controller.js
Created September 9, 2015 13:04
Draft Player Function
function draftPlayer() {
// save draft pick
dataService.saveDraftPick($routeParams.leagueId, vm.pick.player, vm.pick.nflTeam, vm.pick.fflTeam, vm.pick.position, vm.pick.auctionPrice)
.then(function () {
var data = {
player : vm.pick.player,
nflTeam: vm.pick.nflTeam,
position: vm.pick.position,
auctionPrice: vm.pick.auctionPrice
};
@andrewconnell
andrewconnell / azure.appInsights.service.js
Last active September 9, 2015 10:51
azure.appInsights.service.js
(function () {
'use strict';
angular.module('appng-ffldraft-xlsaddin')
.service('azAppInsightService', [azAppInsightService]);
/**
* Custom Angular service.
*
*/