Skip to content

Instantly share code, notes, and snippets.

View chriscooning's full-sized avatar
🛠️
Building cool stuff

Chris Cooning chriscooning

🛠️
Building cool stuff
View GitHub Profile
//Name: BurnRateProjectSummary.js
//Date: 7/7/2015
//Company: Paxton Tait
//Description: new burn rate section which pulls from latest project commitment and allows spreadsheet burn rate calculations for user
function Form_OnSave() {
}
function Form_OnLoad() {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace McKCO_Portal
{
html, body {
overflow: auto;
}
h4 a {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
html, body {
overflow: auto;
}
h4 a {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
@chriscooning
chriscooning / bsim.css
Created February 9, 2016 20:45
BSIM quicksite CSS
html, body {
overflow: auto;
}
h4 a {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
<?php
/*
Template Name: homePage
*/
?>
<?php get_header(); ?>
<?php $page_layout = of_get_option('ttrust_posts_home_layout'); ?>
<?php $content_width = ($page_layout=="masonry_no_sidebar") ? "full" : "threeFourths" ?>
<?php $posts_layout = ($page_layout!="normal") ? "masonry" : "" ?>
// add module - again
//var nfm = require("netfunctional.mapoverlay");
// set the window
var win = Titanium.UI.createWindow({
title : 'Map',
orientationModes: [
Ti.UI.LANDSCAPE_LEFT,
Ti.UI.LANDSCAPE_RIGHT,
<iframe frameborder='0' allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='500' height='300' src='//omg.digitalmediacenter.com/e/3bc0f418df60f8b3e9b7b70b0daf7c87?autoplay=false&sharing=' />
@chriscooning
chriscooning / static_controller_spec.rb
Created October 20, 2014 18:31
static_controller_spec.rb
require "spec_helper"
def check_page_availability(name)
get :show, format: :html, page: name
expect(response.status).to eq 200
end
describe StaticController do
render_views
a = {}
Day.all.map do |day|
a.merge!({day.date => []})
day.user_schedules.group(:user_id).count.each do |us|
if us[1] > 1
day.user_schedules.where("user_id = ?", us[0]).each do |uss|
if User.find(us[0]).department_blocks
.where(
"department_blocks.id != ?", uss.department_block.id
)