Skip to content

Instantly share code, notes, and snippets.

View cmcculloh-kr's full-sized avatar

Christopher McCulloh cmcculloh-kr

View GitHub Profile
$(function() {
// define the columns in your datasource
var columns = [
{
label: 'Name & Description',
property: 'name',
sortable: true
},
{
label: 'Key',
@cmcculloh-kr
cmcculloh-kr / index.html
Created January 6, 2015 21:28
Bootstrap popover with button inside, triggered by hover and dismissed by either button or mouseleave (of both trigger and popover)
<!DOCTYPE html>
<html class="fuelux">
<head lang="en">
<!-- styles -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
<link href="http://www.fuelcdn.com/fuelux/3.3.0/css/fuelux.min.css" rel="stylesheet"/>
<link href="http://www.fuelcdn.com/fuelux-mctheme/1.1.0/css/fuelux-mctheme.min.css" rel="stylesheet"/>
<!-- scripts -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

Testing local fuelux changes in other projects

RIGHT NOW:
Create a symlinked folder of your local version of fuelux inside of another project (eg: mctheme):

  1. In fuelux project where you are making fuelux changes: * bower link * This creates a symlink target.
  2. In target project you want to test with fuelux changes: * bower link fuelux fuelux-local * This creates a symlink. You now have local fuelux changes in your other project.
  • changes will apear in: bower_components/fuelux-local
@cmcculloh-kr
cmcculloh-kr / headphones.user.js
Last active August 29, 2015 14:15
Sanitize Chatter for easier use
// ==UserScript==
// @name Headphones
// @namespace http://chomperstomp.com
// @version 0.1.3
// @description Cut out the useless Chatter
// @author Christopher McCulloh
// @match https://org62.my.salesforce.com/*
// @updateURL https://gist.github.com/cormacmccarthy/70f21760e43f45e7e2b9/raw/ae645135d637cf0fc8ca9076a8d69762476261d0/headphones.user.js
// @grant none
// @require http://code.jquery.com/jquery-latest.js
@cmcculloh-kr
cmcculloh-kr / repeat.html
Created August 21, 2015 14:48
different spinboxes for different repeat increments
<div class="form-group repeat-interval">
<div data-resize="auto" class="btn-group selectlist pull-left repeat-options">
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
<span class="selected-label">none</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li data-value="none"><a href="#">none</a></li>
<li data-value="minutely" data-text="minute(s)"><a href="#">minute(s)</a></li>
<li data-value="hourly" data-text="hour(s)"><a href="#">hours(s)</a></li>
@cmcculloh-kr
cmcculloh-kr / expanded
Created April 27, 2016 16:25
Get branch from JIRA
// This is the expanded code for the bookmarklet.
// Use the minified code for the actual bookmarklet
javascript:(function() {
var title = jQuery('title').text();
var ticket = title.match(/\[(.*)]/);
var title_no_ticket = title.replace(/\[.*]\ /, '');
var title_no_suffix = title_no_ticket.replace(/\ \-\ ExactTarget\ JIRA/, '');
var title_cleaned = title_no_suffix.replace(/ \& /g, '_and_');
title_cleaned = title_cleaned.replace(/\&/g, '/');
@cmcculloh-kr
cmcculloh-kr / GIF-Screencast-OSX.md
Last active July 8, 2016 19:15 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

{
"Profiles": [
{
"Badge Text" : "\\(user.gitBranch)",
"Working Directory" : "\/Users\/cmcculloh",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Red Component" : 0.8866617679595947,
"Color Space" : "Calibrated",
"Blue Component" : 0.9910151958465576,
javascript: (function() {
let repoName;
if (document.querySelectorAll('.public .author').length !== 0) {
repoName = document.querySelectorAll('.public .author')[0].textContent;
} else if (document.querySelectorAll('.private .author').length !== 0) {
repoName = document.querySelectorAll('.private .author')[0].textContent;
}
let repoAuthor = document.querySelectorAll('.gh-header-meta .author')[0].textContent;
let issueNumber = document.querySelectorAll('.gh-header-number')[0].textContent;