Skip to content

Instantly share code, notes, and snippets.

View amcdnl's full-sized avatar

Austin amcdnl

View GitHub Profile
'default': {
simpleSet: ['#5f8b95', '#ba4d51', '#af8a53', '#955f71', '#859666', '#7e688c'],
indicatingSet: ['#a3b97c', '#e1b676', '#ec7f83'],
gradientSet: ['#5f8b95', '#ba4d51']
},
'harmony light': {
simpleSet: ['#fcb65e', '#679ec5', '#ad79ce', '#7abd5c', '#e18e92', '#b6d623', '#b7abea', '#85dbd5'],
indicatingSet: ['#b6d623', '#fcb65e', '#e18e92'],
gradientSet: ['#7abd5c', '#fcb65e']
},
calcLayout: function (item, idx, col) {
// if we dont have anything or I'm the first
if (col.length === 1 || idx === 0) {
item.col = 1;
item.row = 1;
} else {
var sizeraoo = {
1: 4, // 100%
1.5: 3, // 75%
@amcdnl
amcdnl / route.js
Last active August 29, 2015 14:01
$stateProvider.state('search', {
url: '/search/{appId}/{reportId:[0-9a-fA-F]{10,24}}',
params: {
appId: { value: null }, // not conditional but not sure what to add here
reportId: { value: null } // conditional
},
views:{
'': {
controller: 'SearchCtrl',
templateUrl: 'app/search/search.tpl.html',
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.IdGenerators;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Driver.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
define(['angular',
'ngtable',
'common/services/search',
'common/utils/throttle',
'common/components/dd-checklist/dd-checklist',
'common/components/resizable/resizable',
'less!app/search/list/list'], function(angular){
var module = angular.module('search.list', ['utils.throttle', 'ngTable', 'components.ddChecklist', 'components.resizable', 'services.search']);
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.IdGenerators;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Driver.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
define(['angular',
'app/admin/admin',
'angularClassy',
'common/services/apps',
'common/utils/acronym',
'common/services/workspaces',
'common/components/toolbar/toolbar'], function (angular, admin) {
var module = angular.module('admin.apps',
['services.apps', 'utils.acronym',
{
"_id" : "536babb68ab8a607384ae521",
"_t" : "Application",
"Name" : "Feature Requests",
"Description" : "",
"Acronym" : "FR",
"TrackingFieldId" : "536babb68ab8a607384ae522",
"Layout" : [
{
"_t" : "SectionLayout",
using API.Models.Workspaces;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace API.Controllers
{
"_id" : "536a456f13202b0a6486d801",
"Name" : "Tester",
"Description" : "",
"Acronym" : "TES",
"TrackingFieldId" : "536a456f13202b0a6486d802",
"Layout" : [
{
"_t" : "SectionLayout",
"_id" : "536a5a9af2929fe41c9561e7",